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
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
8 years ago
Commit
515c3d83d7205d6bdf74d36f875f350fa93ec7fc
1 parent
2f3dada0
hotfix/guangNullGoods
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 @
515c3d8
...
...
@@ -363,7 +363,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