From c777b13e15537f3c2b6413df8ddac521659050a5 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 11 Oct 2024 09:35:02 +0800 Subject: [PATCH] 1 --- go.mod | 2 +- go.sum | 2 ++ rule/service_award_dividend/return.go | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 471d528..3ce54a8 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ go 1.15 require ( code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 - code.fnuoos.com/go_rely_warehouse/zyos_model.git v0.0.4-0.20241010102102-5676d4b8436f + code.fnuoos.com/go_rely_warehouse/zyos_model.git v0.0.4-0.20241011013237-040263075a38 github.com/gin-gonic/gin v1.9.1 github.com/go-redis/redis v6.15.9+incompatible github.com/gomodule/redigo v1.8.9 diff --git a/go.sum b/go.sum index e707cfe..684f27a 100644 --- a/go.sum +++ b/go.sum @@ -14,6 +14,8 @@ code.fnuoos.com/go_rely_warehouse/zyos_model.git v0.0.4-0.20240830093306-94cbf0d code.fnuoos.com/go_rely_warehouse/zyos_model.git v0.0.4-0.20240830093306-94cbf0dfb7bd/go.mod h1:nT2x13YFgrS3tS1fDyUR6q/GNIK+hPw7bdzZXz99SM0= code.fnuoos.com/go_rely_warehouse/zyos_model.git v0.0.4-0.20241010102102-5676d4b8436f h1:hllCUup8mVTllbA9afbtdRLKy1rektV8mccWqfyTpJQ= code.fnuoos.com/go_rely_warehouse/zyos_model.git v0.0.4-0.20241010102102-5676d4b8436f/go.mod h1:nT2x13YFgrS3tS1fDyUR6q/GNIK+hPw7bdzZXz99SM0= +code.fnuoos.com/go_rely_warehouse/zyos_model.git v0.0.4-0.20241011013237-040263075a38 h1:UdYxMWbzUYbIX8YkrWHLFioWvkd7YsVNWHpAovlRkDE= +code.fnuoos.com/go_rely_warehouse/zyos_model.git v0.0.4-0.20241011013237-040263075a38/go.mod h1:nT2x13YFgrS3tS1fDyUR6q/GNIK+hPw7bdzZXz99SM0= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a h1:lSA0F4e9A2NcQSqGqTOXqu2aRi/XEQxDCBwM8yJtE6s= diff --git a/rule/service_award_dividend/return.go b/rule/service_award_dividend/return.go index 1c38299..9c22e94 100644 --- a/rule/service_award_dividend/return.go +++ b/rule/service_award_dividend/return.go @@ -198,6 +198,21 @@ func AddPeriodEg(eg *xorm.Engine, req map[string]string) int { if update == 0 || err != nil { return 3 } + data1 := models.ServiceAwardReturnFlowHand{ + Uid: zhios_order_relate_utils.StrToInt(req["uid"]), + Time: time.Now(), + UpdateTime: time.Now(), + Sum: req["amount"], + Type: 1, + HasReturnMoney: "0", + Price: req["price"], + Pvd: zhios_order_relate_utils.StrToInt(req["pvd"]), + CoinId: base.CoinId, + Date: zhios_order_relate_utils.StrToInt(date["now"]), + LastDate: zhios_order_relate_utils.StrToInt(date["last"]), + Oid: zhios_order_relate_utils.StrToInt64(req["oid"]), + } + eg.Insert(&data1) return 1 } period := 0