Commit c894da1d524b31e89af1dad2c1f1d4749f671af8

Authored by yvan.ni
1 parent 8b2816cb

调用接口的优化

pages/goods/goodsInfo/goodsInfo.js
... ... @@ -8490,7 +8490,7 @@ Page({
8490 8490 }
8491 8491 var url = "/api/ms/flash_sale/getNew/" + os.stoid + "/" + user_id + "/" + item.act_id;
8492 8492 await getApp().request.promiseGet(url, {}).then(rs => {
8493   - if (rs.data.code == 0) {
  8493 + if (rs.data.code == 0 && rs.data.data) {
8494 8494 f_more[i].price = rs.data.data.user_price;
8495 8495  
8496 8496 }
... ...