Authored by htoooth

代码健壮性。

... ... @@ -611,7 +611,7 @@ const _detailDataPkg = (origin, uid, vipLevel) => {
let consultComment = _getConsultCommentDataByProductInfo(origin);
// 品牌信息
let banner = null;
let banner = {};
if (origin.brand) {
result.brandImg = helpers.image(origin.brand.brandIco, 47, 47);
... ...
... ... @@ -82,7 +82,7 @@ const _signboard = data => {
*/
exports.basisTemplateAsync = shopId => {
return co(function * () {
let data = {signboard: {}};
let data = {signboard: {},shopTopBanner:{}};
const ResourceHandler = {
shopTopBanner: _shopTopBanner,
signboard: _signboard
... ...