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
19154a3b
Commit
19154a3b
authored
Feb 28, 2019
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了添加待处理服务星等级数据接口
parent
09c3c13b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
4 deletions
+60
-4
ucenter_notice.php
example/ucenter_notice.php
+14
-0
ucenter_vip.php
example/ucenter_vip.php
+13
-0
client_config_dev.php
src/client_config_dev.php
+0
-1
client_config_prod.php
src/client_config_prod.php
+0
-1
client_config_test.php
src/client_config_test.php
+1
-2
Vip.php
src/ucenter/Vip.php
+32
-0
No files found.
example/ucenter_notice.php
0 → 100644
View file @
19154a3b
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2018/12/12
* Time: 16:22
*/
use
internalApi\ucenter\Notice
;
require
__DIR__
.
'/_init.php'
;
Notice
::
setDebug
();
Notice
::
addToast
(
12
,
'test'
);
example/ucenter_vip.php
0 → 100644
View file @
19154a3b
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2019/2/28
* Time: 15:28
*/
use
internalApi\ucenter\Vip
;
require
__DIR__
.
'/_init.php'
;
Vip
::
addPending
(
12
,
123
,
1
);
\ No newline at end of file
src/client_config_dev.php
View file @
19154a3b
...
@@ -37,7 +37,6 @@ return [
...
@@ -37,7 +37,6 @@ return [
'apiUrl'
=>
'http://sv.yunya.com/api/server'
,
'apiUrl'
=>
'http://sv.yunya.com/api/server'
,
'clientId'
=>
'common'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'6A23057D233DA902B5D603A758B0438E'
'clientSecret'
=>
'6A23057D233DA902B5D603A758B0438E'
]
],
],
'shop'
=>
[
'shop'
=>
[
'apiUrl'
=>
'http://appapi.fecshoptest.com/v1/internalapi'
,
'apiUrl'
=>
'http://appapi.fecshoptest.com/v1/internalapi'
,
...
...
src/client_config_prod.php
View file @
19154a3b
...
@@ -36,7 +36,6 @@ return [
...
@@ -36,7 +36,6 @@ return [
'apiUrl'
=>
'http://sv.ibanshou.cn/api/server'
,
'apiUrl'
=>
'http://sv.ibanshou.cn/api/server'
,
'clientId'
=>
'common'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'6A23057D233DA902B5D603A758B0438E'
'clientSecret'
=>
'6A23057D233DA902B5D603A758B0438E'
]
],
],
'shop'
=>
[
'shop'
=>
[
'apiUrl'
=>
'http://api-shop.banshouhui.com/internalapi/api'
,
'apiUrl'
=>
'http://api-shop.banshouhui.com/internalapi/api'
,
...
...
src/client_config_test.php
View file @
19154a3b
...
@@ -36,8 +36,7 @@ return [
...
@@ -36,8 +36,7 @@ return [
'apiUrl'
=>
'http://api-shop.test.yunyamooc.com/internalapi/api'
,
'apiUrl'
=>
'http://api-shop.test.yunyamooc.com/internalapi/api'
,
'clientId'
=>
'common'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
'clientSecret'
=>
'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
]
],
],
'sv'
=>
[
'sv'
=>
[
'apiUrl'
=>
'http://sv.test.yunyamooc.com/api/server'
,
'apiUrl'
=>
'http://sv.test.yunyamooc.com/api/server'
,
'clientId'
=>
'common'
,
'clientId'
=>
'common'
,
...
...
src/ucenter/Vip.php
0 → 100644
View file @
19154a3b
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2019/2/28
* Time: 15:24
*/
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
class
Vip
extends
Client
{
/**
* 添加待处理的服务星等级升级信息
*
* @param int|string $uid
* @param float $performance 添加的业绩金额
* @param int $type 添加的业绩类型,完工业绩:0,销售业绩:1,自己平台购买业绩:2
* @param bool $byWxhUid uid 参数是否是维修汇 SSO UID,默认 false
* @return void
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
addPending
(
$uid
,
$performance
,
$type
,
$byWxhUid
=
false
)
{
return
self
::
call
(
'vip.addPending'
,
compact
(
'uid'
,
'performance'
,
'type'
,
'byWxhUid'
));
}
}
\ 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