diff --git a/app/db/model/ord_list.go b/app/db/model/ord_list.go index 4f3be06..65bd10d 100644 --- a/app/db/model/ord_list.go +++ b/app/db/model/ord_list.go @@ -53,4 +53,5 @@ type OrdList struct { FastSignId string `xorm:"not null default '' VARCHAR(100)" json:"fast_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"` + FastSuccess int `xorm:"not null default 0 INT(1)" json:"fast_success"` } diff --git a/consume/zhios_fast_return_order_success.go b/consume/zhios_fast_return_order_success.go index 4c4bf91..90aa97d 100644 --- a/consume/zhios_fast_return_order_success.go +++ b/consume/zhios_fast_return_order_success.go @@ -94,5 +94,7 @@ func handleZhiosFastReturnOrderSuccess(msg []byte) error { if finish.ZhimaCreditPayafteruseCreditbizorderFinishResponse.Code != "10000" { return errors.New("err") } + orderData.FastSuccess = 1 + eg.Where("ord_id=?", orderData.OrdId).Cols("fast_success").Update(&orderData) return nil }