Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
LC_api_news
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
b2661ccc
authored
Dec 19, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复
parent
952f81ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
app/Services/CaseService.php
app/Services/CaseService.php
View file @
b2661ccc
...
...
@@ -69,7 +69,10 @@ class CaseService extends BaseService
unset
(
$item
[
'writer'
]);
$item
[
'tags'
]
=
array_column
(
$item
[
'article_tag'
],
'tag'
);
unset
(
$item
[
'article_tag'
]);
$goodsInfo
=
$this
->
getGoodsInfo
(
$item
[
'goods_id'
]);
$goodsInfo
=
[];
if
(
$item
[
'goods_id'
])
{
$goodsInfo
=
$this
->
getGoodsInfo
(
$item
[
'goods_id'
]);
}
if
(
$goodsInfo
)
{
$item
[
'goods_info'
]
=
[
'class_id1'
=>
$goodsInfo
[
'class_id1'
],
...
...
@@ -83,7 +86,7 @@ class CaseService extends BaseService
'ladder_price'
=>
$goodsInfo
[
'ladder_price'
],
'sku_name'
=>
$goodsInfo
[
'sku_name'
],
];
}
else
{
}
else
{
$item
[
'goods_info'
]
=
[];
}
...
...
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