Authored by hongyong.zhao

修改供应商逻辑

@@ -51,7 +51,7 @@ module.exports = (req, res, next) => { @@ -51,7 +51,7 @@ module.exports = (req, res, next) => {
51 shopsId: currentShop.shopsId, 51 shopsId: currentShop.shopsId,
52 shopId: currentShop.shopsId, 52 shopId: currentShop.shopsId,
53 shop: currentShop.shopsId, 53 shop: currentShop.shopsId,
54 - supplierId: currentShop.shopsBrands.length ? _.first(currentShop.shopsBrands).supplierId : 0, 54 + supplierId: currentShop.shopsBrands.length ? (req.user.supplier_id ? req.user.supplier_id : _.first(currentShop.shopsBrands).supplierId) : 0,
55 platform_id: config.platform, 55 platform_id: config.platform,
56 userId: req.user.uid 56 userId: req.user.uid
57 }; 57 };