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