Commit 92529de4 by 杨树贤

类型添加新的枚举值

parent 29595f12
...@@ -47,11 +47,16 @@ class SupplierTagService ...@@ -47,11 +47,16 @@ class SupplierTagService
//获取供应商对应的标签 //获取供应商对应的标签
public function getTagsBySupplierId($supplierId, $type) public function getTagsBySupplierId($supplierId, $type)
{ {
//1是系统标签,2是自定义标签 try {
$tagUse = $type == 1 ? self::TAG_TYPE_SYSTEM : self::TAG_TYPE_CUSTOMER; //1是系统标签,2是自定义标签
$response = $this->client->get('/get?tag_use=' . $tagUse . '&req_id=' . $supplierId); $tagUse = $type == 1 ? self::TAG_TYPE_SYSTEM : self::TAG_TYPE_CUSTOMER;
$data = json_decode($response->getBody()->getContents(), true); $response = $this->client->get('/get?tag_use=' . $tagUse . '&req_id=' . $supplierId);
return !empty($data['data']) ? $data['data'] : []; $data = json_decode($response->getBody()->getContents(), true);
return !empty($data['data']) ? $data['data'] : [];
} catch (\Exception $exception) {
return [];
}
} }
public function getSystemTagsBySupplierId($supplierId) public function getSystemTagsBySupplierId($supplierId)
......
...@@ -80,6 +80,7 @@ return [ ...@@ -80,6 +80,7 @@ return [
], ],
'StockupType' => [ 'StockupType' => [
9 => '原厂授权',
1 => '国内现货', 1 => '国内现货',
6 => '猎芯期货', 6 => '猎芯期货',
3 => '国际现货', 3 => '国际现货',
......
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 sign in to comment