bug
This commit is contained in:
parent
0d16fe2c8d
commit
49ac39e908
@ -71,8 +71,6 @@ public class CardFavorableRecordServiceImpl extends ServiceImpl<CardFavorableRec
|
||||
*/
|
||||
@Override
|
||||
public IPage select(Page page, CardFavorableRecord cardFavorableRecord) {
|
||||
|
||||
|
||||
//构建查询条件
|
||||
LambdaQueryWrapper<CardFavorableRecord> queryWrapper = new LambdaQueryWrapper<>();
|
||||
if (ObjectUtils.isNotEmpty(cardFavorableRecord.getMobile())){
|
||||
|
@ -312,6 +312,45 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
if (_this.appltType == "ALIPAY") {
|
||||
my.tradePay({
|
||||
tradeNO: res.data.data.reservedTransactionId
|
||||
}, function(resp) {
|
||||
if (resp.resultCode == '9000') {
|
||||
console.log("支付成功")
|
||||
// 支付成功后调用修改使用后的优惠券情况
|
||||
/* _this.preferentialData.storeId = _this.oilOrder.storeId
|
||||
_this.preferentialData.orderAmount = _this.oilOrder.orderAmount
|
||||
_this.preferentialData.oilId = _this.oilOrder.oils
|
||||
_this.preferentialData.mtUserLevel = _this.user.gradeId
|
||||
request({
|
||||
url: "business/marketingActivity/cardFavorableRecord/updateCardAndActiveById",
|
||||
method: 'post',
|
||||
data: _this.preferentialData,
|
||||
}).then((res)=>{
|
||||
console.log(res);
|
||||
}) */
|
||||
uni.reLaunch({
|
||||
url: '/pagesRefuel/orderSuccess/index'
|
||||
})
|
||||
} else {
|
||||
request({
|
||||
url: "/business/allOrderInfo/orderStatus",
|
||||
method: 'post',
|
||||
data: {
|
||||
"orderNo": res.data.data.orderNo,
|
||||
"status": "payFail"
|
||||
},
|
||||
}).then((res) => {
|
||||
uni.showToast({
|
||||
title: "支付失败!",
|
||||
icon: "error"
|
||||
})
|
||||
})
|
||||
console.log('支付失败,' + resp.resultCode);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
@ -381,6 +420,45 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
if (_this.appltType == "ALIPAY") {
|
||||
my.tradePay({
|
||||
tradeNO: res.data.data.reservedTransactionId
|
||||
}, function(resp) {
|
||||
if (resp.resultCode == '9000') {
|
||||
console.log("支付成功")
|
||||
// 支付成功后调用修改使用后的优惠券情况
|
||||
/* _this.preferentialData.storeId = _this.oilOrder.storeId
|
||||
_this.preferentialData.orderAmount = _this.oilOrder.orderAmount
|
||||
_this.preferentialData.oilId = _this.oilOrder.oils
|
||||
_this.preferentialData.mtUserLevel = _this.user.gradeId
|
||||
request({
|
||||
url: "business/marketingActivity/cardFavorableRecord/updateCardAndActiveById",
|
||||
method: 'post',
|
||||
data: _this.preferentialData,
|
||||
}).then((res)=>{
|
||||
console.log(res);
|
||||
}) */
|
||||
uni.reLaunch({
|
||||
url: '/pagesRefuel/orderSuccess/index'
|
||||
})
|
||||
} else {
|
||||
request({
|
||||
url: "/business/allOrderInfo/orderStatus",
|
||||
method: 'post',
|
||||
data: {
|
||||
"orderNo": res.data.data.orderNo,
|
||||
"status": "payFail"
|
||||
},
|
||||
}).then((res) => {
|
||||
uni.showToast({
|
||||
title: "支付失败!",
|
||||
icon: "error"
|
||||
})
|
||||
})
|
||||
console.log('支付失败,' + resp.resultCode);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user