Commit c894da1d524b31e89af1dad2c1f1d4749f671af8
1 parent
8b2816cb
调用接口的优化
Showing
1 changed file
with
1 additions
and
1 deletions
pages/goods/goodsInfo/goodsInfo.js
@@ -8490,7 +8490,7 @@ Page({ | @@ -8490,7 +8490,7 @@ Page({ | ||
8490 | } | 8490 | } |
8491 | var url = "/api/ms/flash_sale/getNew/" + os.stoid + "/" + user_id + "/" + item.act_id; | 8491 | var url = "/api/ms/flash_sale/getNew/" + os.stoid + "/" + user_id + "/" + item.act_id; |
8492 | await getApp().request.promiseGet(url, {}).then(rs => { | 8492 | await getApp().request.promiseGet(url, {}).then(rs => { |
8493 | - if (rs.data.code == 0) { | 8493 | + if (rs.data.code == 0 && rs.data.data) { |
8494 | f_more[i].price = rs.data.data.user_price; | 8494 | f_more[i].price = rs.data.data.user_price; |
8495 | 8495 | ||
8496 | } | 8496 | } |