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
194f3769
authored
Jul 24, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
18e1195c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app/Http/Services/SkuService.php
app/Http/Services/SkuService.php
View file @
194f3769
...
...
@@ -46,9 +46,9 @@ class SkuService extends BaseService
if
(
isset
(
$data
[
'error_code'
])
&&
$data
[
'error_code'
]
==
0
)
{
$url
=
config
(
'website.GoodsServerUrl'
)
.
'/synchronization?goods_id='
.
implode
(
','
,
$data
[
'data'
][
'goods_id'
]);
$return
=
curl
(
$url
,
$map
,
1
);
$
goods
Data
=
json_decode
(
$return
,
true
);
if
(
isset
(
$
goodsData
[
'error_code'
])
&&
$goodsData
[
'error_
code'
]
==
0
)
{
$
goodsData
=
collect
(
$goods
Data
[
'data'
])
->
keyBy
(
'goods_id'
)
->
toArray
();
$
skuList
Data
=
json_decode
(
$return
,
true
);
if
(
isset
(
$
skuListData
[
'errcode'
])
&&
$skuListData
[
'err
code'
]
==
0
)
{
$
skuListData
=
collect
(
$skuList
Data
[
'data'
])
->
keyBy
(
'goods_id'
)
->
toArray
();
}
$redis
=
new
RedisModel
;
//处理供应商
...
...
@@ -104,7 +104,7 @@ class SkuService extends BaseService
$standardBrand
=
json_decode
(
$standardBrand
,
true
);
$sku
[
'standard_brand_name'
]
=
$standardBrand
[
'brand_name'
];
}
$skuData
=
array_get
(
$
goods
Data
,
$sku
[
'goods_id'
],
[]);
$skuData
=
array_get
(
$
skuList
Data
,
$sku
[
'goods_id'
],
[]);
$sku
[
'goods_tag_names'
]
=
''
;
if
(
!
empty
(
$skuData
[
'goods_tag'
][
'goods_tag_names'
]))
{
$sku
[
'goods_tag_names'
]
=
implode
(
','
,
$skuData
[
'goods_tag'
][
'goods_tag_names'
]);
...
...
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