Authored by yyq

qs err

... ... @@ -50,10 +50,7 @@ module.exports = class extends global.yoho.BaseModel {
]).then(result => {
let resData = {};
if (_.get(result, '[0].code', '') !== 200) {
resData.errText = _.get(result, '[0].message', '哟,本次调研已经飞走了,请移步其他调研呗!');
}
if (_.get(result, '[0].code', '') === 200) {
let data = _.get(result, '[1].data', {});
if (data.questions) {
... ... @@ -67,6 +64,9 @@ module.exports = class extends global.yoho.BaseModel {
if (!_.isEmpty(data)) {
resData.detail = data;
}
} else {
resData.errText = _.get(result, '[0].message', '哟,本次调研已经飞走了,请移步其他调研呗!');
}
return resData;
});
... ...