From b1bca6dfac4b91dfa7f8ed6c5a22ccc57ae5092f Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 29 Nov 2023 16:22:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db/model/ord_list.go | 1 + consume/zhios_fast_return_order_success.go | 2 ++ 2 files changed, 3 insertions(+) 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 }