Commit 8d1c8357 authored by 夏彬's avatar 夏彬

添加获取标签的internelapi

parent 4406394e
<?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);
<?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