Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hj
openApi
Commits
f7fc4f39
Commit
f7fc4f39
authored
Mar 14, 2025
by
hj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新提交
parent
f46cffe0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
server/app/Http/Controllers/V1/Bhua/ProductsController.php
server/app/Http/Controllers/V1/Bhua/ProductsController.php
+10
-4
server/app/Services/Api/BhuaProductsService.php
server/app/Services/Api/BhuaProductsService.php
+1
-1
No files found.
server/app/Http/Controllers/V1/Bhua/ProductsController.php
View file @
f7fc4f39
...
@@ -55,23 +55,29 @@ class ProductsController extends Controller
...
@@ -55,23 +55,29 @@ class ProductsController extends Controller
* path="/openapi/bhua/products/getProductsByBrandId",
* path="/openapi/bhua/products/getProductsByBrandId",
* tags={"百化 - 产品相关接口"},
* tags={"百化 - 产品相关接口"},
* summary="获取品牌产品列表",
* summary="获取品牌产品列表",
* description="获取品牌产品列表 品牌id 允许范围
【
* description="获取品牌产品列表 品牌id 允许范围
罗恩:40
罗恩:40
阿拉丁:1
阿拉丁:1
毕得:10
毕得:10
乐研 :108
乐研 :108
九鼎 :42】",
源叶 :161
韶远 : 7
阿拉丁(生物): 188
* ",
* @RequestBody(
* @RequestBody(
* @MediaType(
* @MediaType(
* mediaType="application/json",
* mediaType="application/json",
* @Schema(
* @Schema(
* required={"brandId","pageSize", "pageNo"},
* required={"brandId","pageSize", "pageNo"},
* @Property(property="brandId", @Schema(type="integer"),description="品牌id 允许范围
【
* @Property(property="brandId", @Schema(type="integer"),description="品牌id 允许范围
罗恩:40
罗恩:40
阿拉丁:1
阿拉丁:1
毕得:10
毕得:10
乐研 :108
乐研 :108
九鼎 :42】"),
源叶 :161
韶远 : 7
阿拉丁(生物): 188
* "),
* @Property(property="pageSize", @Schema(type="integer"),description="返回数据集数量"),
* @Property(property="pageSize", @Schema(type="integer"),description="返回数据集数量"),
* @Property(property="pageNo", @Schema(type="integer"),description="当前页数"),
* @Property(property="pageNo", @Schema(type="integer"),description="当前页数"),
* example={"brandId" : 1,"pageSize" : 100, "pageNo" : 1}
* example={"brandId" : 1,"pageSize" : 100, "pageNo" : 1}
...
...
server/app/Services/Api/BhuaProductsService.php
View file @
f7fc4f39
...
@@ -56,7 +56,7 @@ class BhuaProductsService
...
@@ -56,7 +56,7 @@ class BhuaProductsService
}
}
$params
[
'brand_id'
]
=
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
,
161
,
7
,
188
])){
throw
new
\Exception
(
'品牌id不在授权范围之内'
,
502
);
throw
new
\Exception
(
'品牌id不在授权范围之内'
,
502
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment