diff --git a/bundle_b/pages/local_shop/local_pay.vue b/bundle_b/pages/local_shop/local_pay.vue index dc4efc2..9afd468 100644 --- a/bundle_b/pages/local_shop/local_pay.vue +++ b/bundle_b/pages/local_shop/local_pay.vue @@ -419,10 +419,10 @@ local_goods_id: this.goods_id, } - if (this.lstore_id == 170) { + const acc_cust_id = parseInt(this.info.acc_cust_id) + if (acc_cust_id > 0) { gtpay(pay_data).then((result) => { if (result.code == 1) { - console.log('result=', result) const pay = { nonceStr: result.data.nonceStr, package: result.data.package, @@ -432,7 +432,7 @@ } pay_data.id = result.data.id - console.log('pay_data', pay_data) + pay_data.acc_cust_id = acc_cust_id this.handleWechatPay(pay, pay_data); } }) @@ -478,7 +478,7 @@ this.payMoney = this.money if (result === 'success') { - if (this.lstore_id == 170) { + if (data.acc_cust_id > 0) { checkOrder({ post: data })