...
|
...
|
@@ -11,6 +11,7 @@ const helpers = global.yoho.helpers; |
|
|
const api = global.yoho.API;
|
|
|
const searchModel = require('./search');
|
|
|
const productProcess = require(`${utils}/product-process`);
|
|
|
const stringProcess = require(`${global.utils}/string-process`);
|
|
|
|
|
|
/**
|
|
|
* 频道
|
...
|
...
|
@@ -127,7 +128,7 @@ const _getShopInfo = (shopId, uid) => { |
|
|
shop_id: shopId,
|
|
|
};
|
|
|
|
|
|
if (!shopId || !_.isNumber(shopId)) {
|
|
|
if (!shopId || !stringProcess.isNumeric(shopId)) {
|
|
|
return Promise.resolve({});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -152,7 +153,7 @@ const getShopIntro = (shopId, uid) => { |
|
|
shop_id: shopId
|
|
|
};
|
|
|
|
|
|
if (!shopId || !_.isNumber(shopId)) {
|
|
|
if (!shopId || !stringProcess.isNumeric(shopId)) {
|
|
|
return Promise.resolve({});
|
|
|
}
|
|
|
|
...
|
...
|
|