Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
1b692ef2
Commit
1b692ef2
authored
Sep 23, 2019
by
谈海涛
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
82ef6310
feb658ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
1 deletion
+59
-1
ucenter_task.php
example/ucenter_task.php
+25
-0
Member.php
src/ucenter/Member.php
+1
-1
Task.php
src/ucenter/Task.php
+33
-0
No files found.
example/ucenter_task.php
0 → 100644
View file @
1b692ef2
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2019-08-12
* Time: 17:02
*/
/**
* Created by PhpStorm.
* User: xiabin
* Date: 11/09/2017
* Time: 11:54 AM
*/
use
internalApi\ucenter\Member
;
require
__DIR__
.
'/_init.php'
;
\internalApi\ucenter\Task
::
setDebug
(
true
);
\internalApi\ucenter\Task
::
trigger
(
1
,
43
);
//$data = User::canAddGoldCoin(13739230723);
print_r
(
$data
);
src/ucenter/Member.php
View file @
1b692ef2
...
@@ -26,7 +26,7 @@ class Member extends Client
...
@@ -26,7 +26,7 @@ class Member extends Client
* other 其它信息
* other 其它信息
* verify 基本认证信息,例如姓名、地区等
* verify 基本认证信息,例如姓名、地区等
* 如指定 ['basic', 'vip'] 即代表取基本信息与服务星等级信息
* 如指定 ['basic', 'vip'] 即代表取基本信息与服务星等级信息
* 当指定 vip 时,返回 vip_complete 表示是否完善资料
。
* 当指定 vip 时,返回 vip_complete 表示是否完善资料
,special 表示是否特殊等级
* @return array|null
* @return array|null
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
* @throws \internalApi\base\ClientException
...
...
src/ucenter/Task.php
0 → 100644
View file @
1b692ef2
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2019-08-12
* Time: 16:59
*/
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
class
Task
extends
Client
{
const
IDENFITY_AUTH
=
1
;
//身份认证
const
SHOP_DECORATION
=
2
;
//店铺装修
const
SHARE_SHOP
=
3
;
//分享店铺
const
SHARE_PRODUCTION
=
4
;
//分享商品
/**
* @param $taskId 1:身份认证 2:店铺装修 3:分享店铺 4:分享商品
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
trigger
(
$taskId
,
$uid
){
return
self
::
call
(
'task.trigger'
,
compact
(
'taskId'
,
'uid'
));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment