Commit e90f2dad authored by hangjun83's avatar hangjun83

百化产品接口更新

parent 256d212e
...@@ -51,6 +51,9 @@ class BhuaProductsService ...@@ -51,6 +51,9 @@ class BhuaProductsService
if(!isset($params['brand_id']) || empty($params['brand_id'])){ if(!isset($params['brand_id']) || empty($params['brand_id'])){
throw new \Exception('品牌id必传',502); throw new \Exception('品牌id必传',502);
} }
if(!is_numeric($params['brand_id'])){
throw new \Exception('品牌id类型错误',502);
}
$params = intval($params['brand_id']); $params = 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])){
......
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