Commit 19154a3b authored by 杨培's avatar 杨培

增加了添加待处理服务星等级数据接口

parent 09c3c13b
<?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');
<?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
...@@ -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',
......
...@@ -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',
......
...@@ -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',
......
<?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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment