...
|
...
|
@@ -14,7 +14,7 @@ const cheerio = require('cheerio'); |
|
|
const helpers = global.yoho.helpers;
|
|
|
const config = global.yoho.config;
|
|
|
const crypto = global.yoho.crypto;
|
|
|
|
|
|
const logger = global.yoho.logger;
|
|
|
const videoPlayerTpl = require('../helper/video-player-tpl');
|
|
|
|
|
|
const productAPI = require('./detail-product-api');
|
...
|
...
|
@@ -1520,6 +1520,7 @@ const showMainAsync = (data) => { |
|
|
let productData = yield productAPI.getProductAsync(data.pid, data.uid, data.isStudent, data.vipLevel);
|
|
|
|
|
|
if (_.isEmpty(productData.data)) {
|
|
|
logger.error('app.product.data api wrong');
|
|
|
return Promise.reject({
|
|
|
code: 404,
|
|
|
message: 'app.product.data api wrong'
|
...
|
...
|
|