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
2ea977fd
Commit
2ea977fd
authored
Nov 22, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加修改金币以及获取用户信息的api
parent
c21dee43
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
ucenter_basic.php
example/ucenter_basic.php
+1
-1
User.php
src/bbs/User.php
+11
-0
Member.php
src/ucenter/Member.php
+10
-0
No files found.
example/ucenter_basic.php
View file @
2ea977fd
...
@@ -12,7 +12,7 @@ require __DIR__.'/_init.php';
...
@@ -12,7 +12,7 @@ require __DIR__.'/_init.php';
Member
::
setDebug
();
Member
::
setDebug
();
$info
=
Member
::
get
MemberInfo
(
2
);
$info
=
Member
::
get
InfoByMobile
(
'15395081586'
);
//$info = Member::getSyncByMobile('13000000002');
//$info = Member::getSyncByMobile('13000000002');
//$info = Member::getSyncByUid(514);
//$info = Member::getSyncByUid(514);
print_r
(
$info
);
print_r
(
$info
);
src/bbs/User.php
View file @
2ea977fd
...
@@ -35,4 +35,15 @@ class User extends Client
...
@@ -35,4 +35,15 @@ class User extends Client
{
{
return
self
::
call
(
'user.getGoldCoin'
,
compact
(
'uid'
));
return
self
::
call
(
'user.getGoldCoin'
,
compact
(
'uid'
));
}
}
/**
* @param $telephone 手机号
* @param $num 加减的数量 +-num
* @param $title 记录标题 例如 完工奖励
* @param $text 记录内容 例如 完成工单奖励金钱+<span>5<span>
* @return mixed
*/
public
static
function
updateGoldCoin
(
$telephone
,
$num
,
$title
,
$text
){
return
self
::
call
(
'user.updateGoldCoin'
,
compact
(
'telephone'
,
'num'
,
'title'
,
'text'
));
}
}
}
\ No newline at end of file
src/ucenter/Member.php
View file @
2ea977fd
...
@@ -19,6 +19,16 @@ class Member extends Client
...
@@ -19,6 +19,16 @@ class Member extends Client
return
self
::
call
(
'member.getInfo'
,
compact
(
'uid'
));
return
self
::
call
(
'member.getInfo'
,
compact
(
'uid'
));
}
}
/**
* 根据手机获取用户信息
* @param $mobile
* @return mixed
*/
public
static
function
getInfoByMobile
(
$mobile
)
{
return
self
::
call
(
'member.getInfoByMobile'
,
compact
(
'mobile'
));
}
/**
/**
* 根据手机号获取用户数据并触发用户中心同步
* 根据手机号获取用户数据并触发用户中心同步
*
*
...
...
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