Merge branch 'hotfix/guangstatus' into 'gray'
status See merge request !1275
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -238,7 +238,7 @@ class DetailModel extends global.yoho.BaseModel { | @@ -238,7 +238,7 @@ class DetailModel extends global.yoho.BaseModel { | ||
238 | // 获取资讯 | 238 | // 获取资讯 |
239 | return this._getArticle(id).then(data => { | 239 | return this._getArticle(id).then(data => { |
240 | // 调用接口失败 | 240 | // 调用接口失败 |
241 | - if (!data || data.code !== 200) { | 241 | + if (!data || data.code !== 200 || _.get(data, 'data.status') !== 1) { |
242 | result.code = 400; | 242 | result.code = 400; |
243 | return result; | 243 | return result; |
244 | } | 244 | } |
-
Please register or login to post a comment