Commit 86158c539cbc92fc33ff333cd557cb799fb86ec7

Authored by vking
1 parent 9cd1647d

seller-do

Showing 1 changed file with 15 additions and 7 deletions
@@ -152,13 +152,21 @@ Page({ @@ -152,13 +152,21 @@ Page({
152 App.PayOnline.CombineTransactions({ 152 App.PayOnline.CombineTransactions({
153 rid:this.data.checkout.rid, 153 rid:this.data.checkout.rid,
154 }).then(res=>{ 154 }).then(res=>{
155 - res.data.timeStamp+=""  
156 - wx.requestPayment({  
157 - ...res.data,  
158 - success:res=>{  
159 - this.GetCheckout()  
160 - },  
161 - }) 155 + if(res.ret==200){
  156 + res.data.timeStamp+=""
  157 + wx.requestPayment({
  158 + ...res.data,
  159 + success:res=>{
  160 + this.GetCheckout()
  161 + },
  162 + })
  163 + }else{
  164 + util.toast('已付款,请勿重复付款','none')
  165 + this.GetCheckout()
  166 + }
  167 + }).catch(()=>{
  168 + util.toast('已付款,请勿重复付款','none')
  169 + this.GetCheckout()
162 }) 170 })
163 }, 171 },
164 displayOrderImages(){ 172 displayOrderImages(){