Commit f7fc4f39 authored by hj's avatar hj

更新提交

parent f46cffe0
......@@ -55,23 +55,29 @@ class ProductsController extends Controller
* path="/openapi/bhua/products/getProductsByBrandId",
* tags={"百化 - 产品相关接口"},
* summary="获取品牌产品列表",
* description="获取品牌产品列表 品牌id 允许范围
* description="获取品牌产品列表 品牌id 允许范围
罗恩:40
阿拉丁:1
毕得:10
乐研 :108
九鼎 :42】",
源叶 :161
韶远 : 7
阿拉丁(生物): 188
* ",
* @RequestBody(
* @MediaType(
* mediaType="application/json",
* @Schema(
* required={"brandId","pageSize", "pageNo"},
* @Property(property="brandId", @Schema(type="integer"),description="品牌id 允许范围
* @Property(property="brandId", @Schema(type="integer"),description="品牌id 允许范围
罗恩:40
阿拉丁:1
毕得:10
乐研 :108
九鼎 :42】"),
源叶 :161
韶远 : 7
阿拉丁(生物): 188
* "),
* @Property(property="pageSize", @Schema(type="integer"),description="返回数据集数量"),
* @Property(property="pageNo", @Schema(type="integer"),description="当前页数"),
* example={"brandId" : 1,"pageSize" : 100, "pageNo" : 1}
......
......@@ -56,7 +56,7 @@ class BhuaProductsService
}
$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,161,7,188])){
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