|
@@ -53,7 +53,7 @@ module.exports = (req, res, next) => { |
|
@@ -53,7 +53,7 @@ module.exports = (req, res, next) => { |
53
|
founder: req.session.LOGIN_UID,
|
53
|
founder: req.session.LOGIN_UID,
|
54
|
shopId: currentShop.shopsId,
|
54
|
shopId: currentShop.shopsId,
|
55
|
supplierId: currentShop.shopsBrands.length ? _.first(currentShop.shopsBrands).supplierId : 0,
|
55
|
supplierId: currentShop.shopsBrands.length ? _.first(currentShop.shopsBrands).supplierId : 0,
|
56
|
- platform_id: 2
|
56
|
+ platform_id: config.platform
|
57
|
};
|
57
|
};
|
58
|
} else if (channel === 'platform') {
|
58
|
} else if (channel === 'platform') {
|
59
|
baseParams = {
|
59
|
baseParams = {
|
|
@@ -62,7 +62,7 @@ module.exports = (req, res, next) => { |
|
@@ -62,7 +62,7 @@ module.exports = (req, res, next) => { |
62
|
userId: req.session.LOGIN_UID
|
62
|
userId: req.session.LOGIN_UID
|
63
|
};
|
63
|
};
|
64
|
}
|
64
|
}
|
65
|
- let params = Object.assign(req.query, req.body, baseParams);
|
65
|
+ let params = Object.assign(baseParams, req.query, req.body);
|
66
|
|
66
|
|
67
|
return api.proxy(apiUrl, params, {
|
67
|
return api.proxy(apiUrl, params, {
|
68
|
method: req.method.toLowerCase(),
|
68
|
method: req.method.toLowerCase(),
|