Authored by zhangxiaoru

shop 报错

... ... @@ -89,9 +89,13 @@ const applysave = (req, res, next) => {
categoryInfo = [],
storeInfo = [];
for (let key in req.body) {
param[_.camelCase(key)] = req.body[key];
try {
for (let key in req.body) {
key = key + '';
param[_.camelCase(key)] = req.body[key];
}
} catch (e) {
console.log(e);
}
if (param.sellerRole === '') {
... ... @@ -138,7 +142,7 @@ const applysave = (req, res, next) => {
param.producer = param.originCountry + ' ' + param.originProvince + ' ' + param.originCity;
param.quarterNum = parseInt(param.quarterNum, 10);
param.haveStore = parseInt(param.haveStore, 10);
param.warehouseAddress = param.warehouseProvince + ' ' + param.warehouseCity;
param.warehouseAddress = param.warehouseProvince + ' ' + param.warehouseCity;
if (param.newCycle === '') {
param.newCycle = param.ortherNewCycle;
... ...