Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
goods
Commits
90f7f75b
Commit
90f7f75b
authored
Jun 17, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:审核接口
parent
f73c5222
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
GoodsAuditValidate.php
application/library/Validate/GoodsAuditValidate.php
+2
-2
GoodsService.php
application/services/goods/GoodsService.php
+4
-1
No files found.
application/library/Validate/GoodsAuditValidate.php
View file @
90f7f75b
...
...
@@ -13,14 +13,14 @@ class GoodsAuditValidate extends BaseValidate
{
protected
$rule
=
[
'goods_spu_id'
=>
'require'
,
'
online_
status'
=>
'require'
,
'status'
=>
'require'
,
'uid'
=>
'require'
,
'username'
=>
'require'
,
];
protected
$message
=
[
"goods_spu_id"
=>
"商品id不能为空"
,
"
online_status"
=>
"商品上下架
状态不能为空"
,
"
status"
=>
"商品审核
状态不能为空"
,
"uid"
=>
"用户id不能为空"
,
"username"
=>
"用户username不能为空"
,
];
...
...
application/services/goods/GoodsService.php
View file @
90f7f75b
...
...
@@ -220,7 +220,10 @@ class GoodsService
throw
new
GoodsException
([
"cus"
=>
10
]);
}
$goodsSkuId
=
$sku
[
"goods_sku_id"
];
GoodsSku
::
save
([
"status"
=>
$status
],
[
"goods_sku_id"
=>
$sku
[
"goods_sku_id"
]]);
GoodsSku
::
save
([
"status"
=>
$status
,
"rejected_reason"
=>
$params
[
"rejected_reason"
]
],
[
"goods_sku_id"
=>
$sku
[
"goods_sku_id"
]]);
//todo:: info to es
//商品操作记录
...
...
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