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
bfafa997
Commit
bfafa997
authored
Mar 03, 2019
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加一下接口,虽然自己用不到。
parent
06f44271
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ucenter_vip.php
example/ucenter_vip.php
+1
-1
Vip.php
src/ucenter/Vip.php
+7
-1
No files found.
example/ucenter_vip.php
View file @
bfafa997
...
@@ -12,7 +12,7 @@ require __DIR__.'/_init.php';
...
@@ -12,7 +12,7 @@ require __DIR__.'/_init.php';
Vip
::
setDebug
();
Vip
::
setDebug
();
$ret
=
Vip
::
getGrades
();
$ret
=
Vip
::
getGrades
();
$ret
=
Vip
::
setInviter
(
'844184b4016810002cde5254007c97eb'
,
'0e150e59016910003f4c525400781c54'
);
//
$ret = Vip::setInviter('844184b4016810002cde5254007c97eb', '0e150e59016910003f4c525400781c54');
print_r
(
$ret
);
print_r
(
$ret
);
//Vip::addPending(12, 123, 1);
//Vip::addPending(12, 123, 1);
\ No newline at end of file
src/ucenter/Vip.php
View file @
bfafa997
...
@@ -18,6 +18,12 @@ use internalApi\base\Client;
...
@@ -18,6 +18,12 @@ use internalApi\base\Client;
class
Vip
extends
Client
class
Vip
extends
Client
{
{
const
REASON_TYPE_BUY
=
0
;
//付费购买0星
const
REASON_TYPE_AUTH
=
1
;
//通过师傅认证成为服务星
const
REASON_TYPE_UPGRADE
=
2
;
//业绩升级
const
REASON_TYPE_MANUAL
=
3
;
//手动调整
const
REASON_TYPE_EXPIRE
=
4
;
//未达标过期
/**
/**
* 获取服务星特级列表
* 获取服务星特级列表
*
*
...
@@ -53,7 +59,7 @@ class Vip extends Client
...
@@ -53,7 +59,7 @@ class Vip extends Client
*
*
* @param int|string|Member $uid 用户UID,维修汇UID或成员对象
* @param int|string|Member $uid 用户UID,维修汇UID或成员对象
* @param int $gradeId 要设置成为的等级
* @param int $gradeId 要设置成为的等级
* @param int $reason 修改原因类型,参照
\common\models\VipGradeLog
::REASON_TYPE_* 常量
* @param int $reason 修改原因类型,参照
Vip
::REASON_TYPE_* 常量
* @param bool $byWxhUid uid 参数是否是维修汇 SSO UID,默认 false
* @param bool $byWxhUid uid 参数是否是维修汇 SSO UID,默认 false
* @return bool 用户组等级是否有变更,如果设置的值与当前等级一致,则无变更返回false,否则变更成功则返回 true
* @return bool 用户组等级是否有变更,如果设置的值与当前等级一致,则无变更返回false,否则变更成功则返回 true
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ApiException
...
...
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