1、暂时屏蔽发放尊享会员优惠券逻辑;
This commit is contained in:
parent
452a7d54d9
commit
01ace1c5fa
|
@ -289,7 +289,7 @@ func ErpOrderAudit(c *gin.Context) {
|
||||||
|
|
||||||
if req.State == 1 && (nPayStatus == model.HavePaid || erpOrder.RetailType == model.RetailTypeRejected) { // 已完成支付的零售订单判断是否发优惠券
|
if req.State == 1 && (nPayStatus == model.HavePaid || erpOrder.RetailType == model.RetailTypeRejected) { // 已完成支付的零售订单判断是否发优惠券
|
||||||
// 发放尊享会员优惠券
|
// 发放尊享会员优惠券
|
||||||
model.UpdateSwitchUserCoupon(erpOrder.ID, erpOrder.Uid, erpOrder.RetailType)
|
//model.UpdateSwitchUserCoupon(erpOrder.ID, erpOrder.Uid, erpOrder.RetailType)
|
||||||
}
|
}
|
||||||
|
|
||||||
app.OK(c, nil, "")
|
app.OK(c, nil, "")
|
||||||
|
|
|
@ -2603,7 +2603,7 @@ func ErpOrderPay(req *ErpOrderPayReq, c *gin.Context) (*ErpOrderPayResp, error)
|
||||||
|
|
||||||
if payStatus == PayOk { // 已完成支付的订单判断是否发优惠券
|
if payStatus == PayOk { // 已完成支付的订单判断是否发优惠券
|
||||||
// 发放尊享会员优惠券
|
// 发放尊享会员优惠券
|
||||||
UpdateSwitchUserCoupon(orderInfo.ID, orderInfo.Uid, orderInfo.RetailType)
|
//UpdateSwitchUserCoupon(orderInfo.ID, orderInfo.Uid, orderInfo.RetailType)
|
||||||
}
|
}
|
||||||
|
|
||||||
return resp, nil
|
return resp, nil
|
||||||
|
@ -2713,7 +2713,7 @@ func QueryErpOrderPayStatus(billSn string) (*ErpOrderPayResp, error) {
|
||||||
|
|
||||||
if payStatus == PayOk { // 已完成支付的订单判断是否发优惠券
|
if payStatus == PayOk { // 已完成支付的订单判断是否发优惠券
|
||||||
// 发放尊享会员优惠券
|
// 发放尊享会员优惠券
|
||||||
UpdateSwitchUserCoupon(orderInfo.ID, orderInfo.Uid, orderInfo.RetailType)
|
//UpdateSwitchUserCoupon(orderInfo.ID, orderInfo.Uid, orderInfo.RetailType)
|
||||||
}
|
}
|
||||||
|
|
||||||
resp.Status = payStatus
|
resp.Status = payStatus
|
||||||
|
|
Loading…
Reference in New Issue
Block a user