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
1bff106a
Commit
1bff106a
authored
Dec 11, 2018
by
杨培
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
591e9efe
8f89ba21
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
73 additions
and
1 deletion
+73
-1
Task.php
src/bbs/Task.php
+1
-1
User.php
src/code/User.php
+12
-0
Member.php
src/ucenter/Member.php
+24
-0
Order.php
src/ucenter/Order.php
+24
-0
User.php
src/xue/User.php
+12
-0
No files found.
src/bbs/Task.php
View file @
1bff106a
...
...
@@ -27,7 +27,7 @@ class Task extends Client
return
self
::
call
(
'task.trigger'
,
[
'scriptname'
=>
$scriptName
,
'ucid'
=>
$uid
,
'auto
A
pply'
=>
$autoApply
'auto
a
pply'
=>
$autoApply
]);
}
...
...
src/code/User.php
View file @
1bff106a
...
...
@@ -30,4 +30,16 @@ class User extends Client
return
self
::
call
(
'user.updateSync'
,
compact
(
'uid'
,
'data'
));
}
/**
* 获取我的验证码数量
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
getMyCodeNum
(
$uid
)
{
return
self
::
call
(
'user.getMyCodeNum'
,
compact
(
'uid'
));
}
}
\ No newline at end of file
src/ucenter/Member.php
View file @
1bff106a
...
...
@@ -118,4 +118,28 @@ class Member extends Client
return
self
::
call
(
'member.getWechatInfoFromCode'
,
compact
(
'code'
));
}
/**
* 获取用户扩展信息
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
getExt
(
$uid
)
{
return
self
::
call
(
'member.getExt'
,
compact
(
'uid'
));
}
/**
* 更新用户扩展选项
* @param $uid
* @param string $option 选项 {share: '分享', comment: '评论', error_code: '故障码', course: '课程', worker_diary: '维修日记', like: '点赞'}
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
updateExtOption
(
$uid
,
$option
)
{
return
self
::
call
(
'member.updateExtOption'
,
compact
(
'uid'
,
'option'
));
}
}
\ No newline at end of file
src/ucenter/Order.php
View file @
1bff106a
...
...
@@ -94,4 +94,28 @@ class Order extends Client
return
self
::
call
(
'order.verifyNotifyCode'
,
compact
(
'oid'
,
'code'
));
}
/**
* 获取用户的消费金额
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
getMonetary
(
$uid
)
{
return
self
::
call
(
'order.getMonetary'
,
compact
(
'uid'
));
}
/**
* 获取用户购买课程的数量
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
getBuyCourseTotal
(
$uid
)
{
return
self
::
call
(
'order.getBuyCourseTotal'
,
compact
(
'uid'
));
}
}
\ No newline at end of file
src/xue/User.php
View file @
1bff106a
...
...
@@ -41,4 +41,16 @@ class User extends Client
return
self
::
call
(
'user.updateSync'
,
compact
(
'uid'
,
'data'
));
}
/**
* 获取用户扩展信息
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
getExt
(
$uid
)
{
return
self
::
call
(
'user.getExt'
,
compact
(
'uid'
));
}
}
\ No newline at end of file
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