Commit 24820fcc authored by hangjun83's avatar hangjun83

百化产品接口更新

parent e90f2dad
...@@ -54,7 +54,7 @@ class BhuaProductsService ...@@ -54,7 +54,7 @@ class BhuaProductsService
if(!is_numeric($params['brand_id'])){ if(!is_numeric($params['brand_id'])){
throw new \Exception('品牌id类型错误',502); throw new \Exception('品牌id类型错误',502);
} }
$params = intval($params['brand_id']); $params['brand_id'] = intval($params['brand_id']);
if(!in_array($params['brand_id'],[40,1,10,108,42])){ if(!in_array($params['brand_id'],[40,1,10,108,42])){
throw new \Exception('品牌id不在授权范围之内',502); throw new \Exception('品牌id不在授权范围之内',502);
......
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