Commit 92529de4 by 杨树贤

类型添加新的枚举值

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