Commit 81fbcf37 authored by 杨培's avatar 杨培

Merge remote-tracking branch 'origin/master'

parents f0abd244 5a928a52
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2019-03-05
* Time: 11:32
*/
use internalApi\ucenter\Label;
require __DIR__.'/_init.php';
Label::setDebug();
//$info = Group::getPotentialGroupMemberList('worker-71318');
$info = Label::getLabels(Label::TYPE_BRAND);
print_r($info);
......@@ -15,9 +15,16 @@ use internalApi\base\Client;
class Customer extends Client
{
public static function updateSync($uid,$data){
return self::call('customer.updateSync',compact('uid','data'));
}
/**
* 同步用户中心数据
* @param int $uid 用户中心uid
* @param array $data 用户数据
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public static function updateSync($uid, $data)
{
return self::call('customer.updateSync', compact('uid', 'data'));
}
}
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2019-03-05
* Time: 11:25
*/
namespace internalApi\ucenter;
use internalApi\base\Client;
class Label extends Client
{
//类型 1=>认证 2=>品类 3=>品牌
const TYPE_AUTH = 1; //认证
const TYPE_CATEGORY = 2; //品类
const TYPE_BRAND = 3; //品牌
/**
* @param array/int $type 1=>认证 2=>品类 3=>品牌
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public static function getLabels($type = null)
{
return self::call('label.getLabels', compact('type'));
}
}
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