Browse Source

更新

three
huangjiajun 11 months ago
parent
commit
b1bca6dfac
2 changed files with 3 additions and 0 deletions
  1. +1
    -0
      app/db/model/ord_list.go
  2. +2
    -0
      consume/zhios_fast_return_order_success.go

+ 1
- 0
app/db/model/ord_list.go View File

@@ -53,4 +53,5 @@ type OrdList struct {
FastSignId string `xorm:"not null default '' VARCHAR(100)" json:"fast_sign_id"` FastSignId string `xorm:"not null default '' VARCHAR(100)" json:"fast_sign_id"`
TransferSignId string `xorm:"not null default '' VARCHAR(100)" json:"transfer_sign_id"` TransferSignId string `xorm:"not null default '' VARCHAR(100)" json:"transfer_sign_id"`
IsTransfer int `xorm:"not null default 0 INT(1)" json:"is_transfer"` IsTransfer int `xorm:"not null default 0 INT(1)" json:"is_transfer"`
FastSuccess int `xorm:"not null default 0 INT(1)" json:"fast_success"`
} }

+ 2
- 0
consume/zhios_fast_return_order_success.go View File

@@ -94,5 +94,7 @@ func handleZhiosFastReturnOrderSuccess(msg []byte) error {
if finish.ZhimaCreditPayafteruseCreditbizorderFinishResponse.Code != "10000" { if finish.ZhimaCreditPayafteruseCreditbizorderFinishResponse.Code != "10000" {
return errors.New("err") return errors.New("err")
} }
orderData.FastSuccess = 1
eg.Where("ord_id=?", orderData.OrdId).Cols("fast_success").Update(&orderData)
return nil return nil
} }

Loading…
Cancel
Save