Commit 5eb9e2542a25ab15f99ffcb3e50890b84dc95c64
1 parent
537fe5ca
接口优化
Showing
2 changed files
with
3 additions
and
3 deletions
packageC/pages/presell/cart/cart.js
@@ -3830,14 +3830,14 @@ Page({ | @@ -3830,14 +3830,14 @@ Page({ | ||
3830 | user_id:(getApp().globalData.userInfo.user_id || 0), | 3830 | user_id:(getApp().globalData.userInfo.user_id || 0), |
3831 | order_id:this.data.order_id, | 3831 | order_id:this.data.order_id, |
3832 | } | 3832 | } |
3833 | - awaitgetApp().request.promisePost("/api/weshop/order/updateOrderCoupon",{ | 3833 | + await getApp().request.promisePost("/api/weshop/order/updateOrderCoupon",{ |
3834 | is_json:1, | 3834 | is_json:1, |
3835 | data:req_data | 3835 | data:req_data |
3836 | }).then(res=>{ | 3836 | }).then(res=>{ |
3837 | console.log(111) | 3837 | console.log(111) |
3838 | }) | 3838 | }) |
3839 | }catch(error){ | 3839 | }catch(error){ |
3840 | - | 3840 | + console.log(error) |
3841 | } | 3841 | } |
3842 | } | 3842 | } |
3843 | 3843 |
packageE/pages/cart/cart_wk/cart_wk.js
@@ -2266,7 +2266,7 @@ Page({ | @@ -2266,7 +2266,7 @@ Page({ | ||
2266 | user_id:(getApp().globalData.userInfo.user_id || 0), | 2266 | user_id:(getApp().globalData.userInfo.user_id || 0), |
2267 | order_id:this.data.order_id, | 2267 | order_id:this.data.order_id, |
2268 | } | 2268 | } |
2269 | - awaitgetApp().request.promisePost("/api/weshop/order/updateOrderCoupon",{ | 2269 | + await getApp().request.promisePost("/api/weshop/order/updateOrderCoupon",{ |
2270 | is_json:1, | 2270 | is_json:1, |
2271 | data:req_data | 2271 | data:req_data |
2272 | }).then(res=>{ | 2272 | }).then(res=>{ |