Showing
3 changed files
with
4 additions
and
3 deletions
@@ -69,8 +69,8 @@ const productService = { | @@ -69,8 +69,8 @@ const productService = { | ||
69 | _.each(sizeInfo.sizeRelationsList, rela => { | 69 | _.each(sizeInfo.sizeRelationsList, rela => { |
70 | let references = _.split(rela.referenceName, '/'); | 70 | let references = _.split(rela.referenceName, '/'); |
71 | 71 | ||
72 | - rela.referenceNameA = references[0]; | ||
73 | - rela.referenceNameB = references[1]; | 72 | + rela.referenceNameA = references[0] || ''; |
73 | + rela.referenceNameB = references[1] || ''; | ||
74 | }); | 74 | }); |
75 | return result.data.data.list[0]; | 75 | return result.data.data.list[0]; |
76 | } | 76 | } |
@@ -51,6 +51,7 @@ module.exports = (req, res, next) => { | @@ -51,6 +51,7 @@ module.exports = (req, res, next) => { | ||
51 | if (channel === 'erp') { | 51 | if (channel === 'erp') { |
52 | baseParams = { | 52 | baseParams = { |
53 | pid: req.session.LOGIN_UID, | 53 | pid: req.session.LOGIN_UID, |
54 | + shopId: currentShop.shopsId, | ||
54 | platform_id: 2 | 55 | platform_id: 2 |
55 | }; | 56 | }; |
56 | } else if (channel === 'platform') { | 57 | } else if (channel === 'platform') { |
-
Please register or login to post a comment