Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
毕凯
2017-05-24 15:31:25 +0800
Commit
9e73e33f50cb24c7275e39a6106c72c449d6b07a
2 parents
a377c567
515c3d83
Merge branch 'hotfix/guangNullGoods' into 'gray'
hotfix/guangNullGoods See merge request
!606
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
utils/guang-process.js
utils/guang-process.js
View file @
9e73e33
...
...
@@ -381,7 +381,12 @@ const pushGoodsInfo = (finalDetail, goodsList, isApp) => {
_
.
forEach
(
finalDetail
,
(
value
,
key
)
=>
{
if
(
value
.
relatedReco
)
{
_
.
forEach
(
value
.
relatedReco
.
goods
,
(
item
,
subKey
)
=>
{
finalDetail
[
key
].
relatedReco
.
goods
[
subKey
]
=
goodsObj
[
item
.
id
];
if
(
goodsObj
[
item
.
id
])
{
finalDetail
[
key
].
relatedReco
.
goods
[
subKey
]
=
goodsObj
[
item
.
id
];
}
else
{
delete
finalDetail
[
key
].
relatedReco
.
goods
[
subKey
];
finalDetail
[
key
].
relatedReco
.
moreNum
--
;
}
});
}
...
...
Please
register
or
login
to post a comment