Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ff1fa8e0
authored
May 10, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
929b17cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
app/Http/Services/SkuService.php
app/Http/Services/SkuService.php
View file @
ff1fa8e0
...
...
@@ -35,6 +35,7 @@ class SkuService
$sku
[
'goods_id'
]
=
$goodsId
;
$sku
[
'update_time'
]
=
date
(
'Y-m-d H:i:s'
,
$sku
[
'update_time'
]);
$sku
[
'status_name'
]
=
Config
(
'field.GoodsStatus'
)[
$sku
[
'goods_status'
]];
if
(
!
empty
(
$auditData
[
$goodsId
]))
{
$sku
[
'audit_time'
]
=
date
(
'Y-m-d H:i:s'
,
$auditData
[
$goodsId
][
'audit_time'
]);
$sku
[
'audit_user'
]
=
$auditData
[
$goodsId
][
'audit_name'
];
...
...
@@ -47,10 +48,6 @@ class SkuService
$sku
[
'goods_name'
]
=
$spu
[
'spu_name'
];
}
$sku
[
'encap'
]
=
array_get
(
$spu
,
'encap'
,
''
);
if
(
array_get
(
$auditData
,
$sku
[
'goods_id'
]))
{
$sku
[
'audit_time'
]
=
$auditData
[
$sku
[
'goods_id'
]][
"audit_time"
];
$sku
[
'audit_user'
]
=
$auditData
[
$sku
[
'goods_id'
]][
"audit_user"
];
}
//制造商处理
if
(
empty
(
$sku
[
'brand_name'
])
&&!
empty
(
$spu
))
{
$brand
=
$redis
->
hget
(
'brand_id'
,
$spu
[
'brand_id'
]);
...
...
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