huangjiajun 2 months ago
parent
commit
c777b13e15
3 changed files with 18 additions and 1 deletions
  1. +1
    -1
      go.mod
  2. +2
    -0
      go.sum
  3. +15
    -0
      rule/service_award_dividend/return.go

+ 1
- 1
go.mod View File

@@ -7,7 +7,7 @@ go 1.15


require ( require (
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 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/gin-gonic/gin v1.9.1
github.com/go-redis/redis v6.15.9+incompatible github.com/go-redis/redis v6.15.9+incompatible
github.com/gomodule/redigo v1.8.9 github.com/gomodule/redigo v1.8.9


+ 2
- 0
go.sum View File

@@ -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.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 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.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 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a h1:lSA0F4e9A2NcQSqGqTOXqu2aRi/XEQxDCBwM8yJtE6s= gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a h1:lSA0F4e9A2NcQSqGqTOXqu2aRi/XEQxDCBwM8yJtE6s=


+ 15
- 0
rule/service_award_dividend/return.go View File

@@ -198,6 +198,21 @@ func AddPeriodEg(eg *xorm.Engine, req map[string]string) int {
if update == 0 || err != nil { if update == 0 || err != nil {
return 3 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 return 1
} }
period := 0 period := 0


Loading…
Cancel
Save