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
1baeece6
authored
Jul 26, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
品牌显示
parent
65ee9685
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
app/Http/Transformers/SupplierTransformer.php
app/Http/Transformers/SupplierTransformer.php
View file @
1baeece6
...
@@ -166,9 +166,13 @@ class SupplierTransformer
...
@@ -166,9 +166,13 @@ class SupplierTransformer
{
{
$mainBrandsIds
=
explode
(
','
,
$mainBrandsIds
);
$mainBrandsIds
=
explode
(
','
,
$mainBrandsIds
);
$redis
=
new
RedisModel
();
$redis
=
new
RedisModel
();
$brands
=
$redis
->
hmget
(
'brand'
,
$mainBrandsIds
);
$brands
=
$redis
->
hmget
(
'standard_brand'
,
$mainBrandsIds
);
$brands
=
implode
(
','
,
$brands
);
$brandNames
=
''
;
return
$brands
;
foreach
(
$brands
as
$brand
)
{
$brand
=
json_decode
(
$brand
,
true
);
$brandNames
=
$brandNames
.
$brand
[
'brand_name'
];
}
return
$brandNames
;
}
}
public
function
transformStockupTypeData
(
$stockupType
)
public
function
transformStockupTypeData
(
$stockupType
)
...
...
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