From 77a4587cf2f2abec6e78ad1cd4caca0177a88529 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Wed, 4 Dec 2024 17:37:48 +0800 Subject: [PATCH] update --- app/hdl/hdl_wallet.go | 12 ++++++++++++ go.mod | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/hdl/hdl_wallet.go b/app/hdl/hdl_wallet.go index 623af6a..b5a6c1e 100644 --- a/app/hdl/hdl_wallet.go +++ b/app/hdl/hdl_wallet.go @@ -307,6 +307,18 @@ func WithdrawApply(c *gin.Context) { //5、推入mq if isAuto { + //更改提现单记录状态 + finWithdrawApply.State = int(enum.FinWithdrawApplyStateForIng) + updateAffected, err1 := finWithdrawApplyDb.UpdateFinWithdrawApply(finWithdrawApply, "state") + if err1 != nil { + e.OutErr(c, e.ERR_DB_ORM, err1.Error()) + return + } + if updateAffected <= 0 { + e.OutErr(c, e.ERR_DB_ORM, "更新提现单状态失败") + return + } + ch, err1 := rabbit.Cfg.Pool.GetChannel() if err1 != nil { e.OutErr(c, e.ERR_INIT_RABBITMQ, err1.Error()) diff --git a/go.mod b/go.mod index 98922b3..2417eb5 100644 --- a/go.mod +++ b/go.mod @@ -32,7 +32,7 @@ require ( ) require ( - code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241203152302-b6aa8333c67e + code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241204091019-14b93d36ac8e code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241204070258-4712985349b4 code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5