diff --git a/consume/egg_fin_withdraw_apply_consume.go b/consume/egg_fin_withdraw_apply_consume.go index f291388..39f562a 100644 --- a/consume/egg_fin_withdraw_apply_consume.go +++ b/consume/egg_fin_withdraw_apply_consume.go @@ -145,7 +145,7 @@ func handleEggFinWithdrawApplyDataConsume(msgData []byte, client *alipay.Client, _, err = client.FundTransUniTransfer(context.Background(), bm) if err != nil { //TODO::处理提现失败 - err11 := dealFinWithdrawApplyStateForBad(apply) + err11 := dealFinWithdrawApplyStateForBad(apply, err.Error()) if err11 != nil { return errors.New("处理提现失败:" + err11.Error()) } @@ -158,14 +158,15 @@ func handleEggFinWithdrawApplyDataConsume(msgData []byte, client *alipay.Client, return nil } -func dealFinWithdrawApplyStateForBad(finWithdrawApply *model.FinWithdrawApply) error { +func dealFinWithdrawApplyStateForBad(finWithdrawApply *model.FinWithdrawApply, errmsg string) error { session := db.Db.NewSession() defer session.Close() session.Begin() finWithdrawApplyDb := implement.NewFinWithdrawApplyDb(db.Db) finWithdrawApply.State = int(enum.FinWithdrawApplyStateForBad) - updateAffected, err1 := finWithdrawApplyDb.UpdateFinWithdrawApplyBySession(session, finWithdrawApply, "state") + finWithdrawApply.ErrorMsg = errmsg + updateAffected, err1 := finWithdrawApplyDb.UpdateFinWithdrawApplyBySession(session, finWithdrawApply, "state", "error_msg") if err1 != nil { return err1 } diff --git a/go.mod b/go.mod index 9efcbd8..f0150c3 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ go 1.19 // replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules require ( - code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20250106115148-27e932d9ac3d + code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20250109083235-1c6d2d06b622 code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20250104230219-410c5822c551 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