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
70be81ad
authored
May 11, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
紧急修复
parent
6c981f17
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
app/Http/Services/SkuService.php
app/Http/Services/SkuService.php
View file @
70be81ad
...
@@ -106,7 +106,10 @@ class SkuService
...
@@ -106,7 +106,10 @@ class SkuService
$goodsTag
=
$redis
->
hget
(
'goods_tag'
,
$item
[
'goods_id'
]);
$goodsTag
=
$redis
->
hget
(
'goods_tag'
,
$item
[
'goods_id'
]);
$goodsTag
=
$goodsTag
?
json_decode
(
$goodsTag
,
true
)
:
''
;
$goodsTag
=
$goodsTag
?
json_decode
(
$goodsTag
,
true
)
:
''
;
$item
[
'sku_tags'
]
=
$goodsTag
?
array_get
(
$goodsTag
,
'customer_tag'
)
:
''
;
$item
[
'sku_tags'
]
=
$goodsTag
?
array_get
(
$goodsTag
,
'customer_tag'
)
:
''
;
$item
[
'source_name'
]
=
''
;
if
(
!
empty
(
$item
[
'source'
]))
{
$item
[
'source_name'
]
=
array_get
(
config
(
'field.SkuSource'
),
$item
[
'source'
],
''
);
$item
[
'source_name'
]
=
array_get
(
config
(
'field.SkuSource'
),
$item
[
'source'
],
''
);
}
return
$item
;
return
$item
;
},
$list
);
},
$list
);
$list
=
$this
->
transformInvalidSkuTag
(
$list
);
$list
=
$this
->
transformInvalidSkuTag
(
$list
);
...
...
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