Browse Source

秒返

three
huangjiajun 1 year ago
parent
commit
5e5791e71e
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      consume/zhios_fast_return_order_refund.go

+ 2
- 3
consume/zhios_fast_return_order_refund.go View File

@@ -129,10 +129,9 @@ func handleZhiosFastReturnOrderRefund(msg []byte) error {
orderData.IsWaitReduce = 1
if tradePay != nil && tradePay.AlipayTradePayResponse.Code == "10000" {
orderData.IsWaitReduce = 2
sql := "UPDATE user_alipay_info SET money=money-? WHERE uid=?"
db.QueryNativeString(eg, sql, money, orderData.Uid)

}
sql := "UPDATE user_alipay_info SET money=money-? WHERE uid=?"
db.QueryNativeString(eg, sql, money, orderData.Uid)
eg.Where("ord_id=?", oid).Cols("is_wait_reduce").Update(&orderData)
if orderData.IsWaitReduce == 2 {
args1 := map[string]string{


Loading…
Cancel
Save