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
fdbabd00
Commit
fdbabd00
authored
Jun 24, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:商品编辑调整
parent
44a31a45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
GoodsEditValidate.php
application/library/Validate/GoodsEditValidate.php
+6
-4
GoodsService.php
application/services/goods/GoodsService.php
+1
-1
No files found.
application/library/Validate/GoodsEditValidate.php
View file @
fdbabd00
...
...
@@ -14,22 +14,24 @@ class GoodsEditValidate extends BaseValidate
protected
$rule
=
[
'category_1_id'
=>
'require'
,
'category_2_id'
=>
'require'
,
'name'
=>
'require'
,
'url'
=>
'require'
,
'
goods_
name'
=>
'require'
,
'
desc_pic_
url'
=>
'require'
,
'expiration_time'
=>
'require'
,
'rule_desc'
=>
'require'
,
'price'
=>
'require'
,
'inventory_add'
=>
'require'
,
'sub_shop_ids'
=>
'require'
,
];
protected
$message
=
[
'category_1_id'
=>
'请选择所属类目'
,
'category_2_id'
=>
'请选择所属类目'
,
'name'
=>
'商品名称不能为空'
,
'url'
=>
'请上传商品图片'
,
'
goods_
name'
=>
'商品名称不能为空'
,
'
desc_pic_
url'
=>
'请上传商品图片'
,
'expiration_time'
=>
'请填写到期时间'
,
'rule_desc'
=>
'请填写使用规则'
,
'price'
=>
'请填写售价'
,
'inventory_add'
=>
'请填写库存'
,
'sub_shop_ids'
=>
'门店id不能为空'
,
];
}
\ No newline at end of file
application/services/goods/GoodsService.php
View file @
fdbabd00
...
...
@@ -583,7 +583,7 @@ class GoodsService
"goods_operation_record_id"
=>
$res
[
0
],
"goods_spu_id"
=>
$skuData
[
"goods_spu_id"
],
"goods_sku_id"
=>
$goodsSkuId
,
"operator_id"
=>
empty
(
$params
[
"
user_id"
])
?
0
:
$params
[
"
user_id"
],
//op后台操作没有记录user_id
"operator_id"
=>
empty
(
$params
[
"
publish_user_id"
])
?
0
:
$params
[
"publish_
user_id"
],
//op后台操作没有记录user_id
"operator_name"
=>
$params
[
"user_name"
],
"goods_status"
=>
GoodsSku
::
STATUS_AUDIT
,
"online_status"
=>
GoodsSku
::
ONLINE_STATUS_NO_ONLINE
,
...
...
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