From 5716f418873ed762c7bbdf3f63691d4b2343d090 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Wed, 17 Jun 2020 14:36:50 +0800 Subject: [PATCH] ti --- src/HttpServer/jsonconf/WithdrawConfig.json | 2 +- src/HttpServer/jsonconf/jsonconf.go | 1 + src/HttpServer/logic/datadef.go | 1 + src/HttpServer/logic/function.go | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/HttpServer/jsonconf/WithdrawConfig.json b/src/HttpServer/jsonconf/WithdrawConfig.json index ce2f2f2..cb6d681 100644 --- a/src/HttpServer/jsonconf/WithdrawConfig.json +++ b/src/HttpServer/jsonconf/WithdrawConfig.json @@ -1 +1 @@ -[{"id":1,"money":0.3,"coin":3000,"task":0,"level":2,"new":1},{"id":2,"money":0.5,"coin":5000,"task":1,"level":3,"new":1},{"id":3,"money":1.5,"coin":15000,"task":2,"level":4,"new":1},{"id":4,"money":5,"coin":50000,"task":3,"level":8,"new":1},{"id":5,"money":10,"coin":100000,"task":4,"level":16,"new":1},{"id":6,"money":20,"coin":200000,"task":5,"level":34,"new":1},{"id":7,"money":50,"coin":500000,"task":6,"level":68,"new":0},{"id":8,"money":100,"coin":1000000,"task":7,"level":136,"new":0}] \ No newline at end of file +[{"id":1,"money":0.5,"coin":5000,"task":0,"level":3,"new":0,"day":2},{"id":2,"money":1,"coin":10000,"task":1,"level":6,"new":0,"day":3},{"id":3,"money":1.5,"coin":15000,"task":2,"level":10,"new":0,"day":5},{"id":4,"money":2,"coin":20000,"task":3,"level":17,"new":0,"day":8},{"id":5,"money":3,"coin":30000,"task":4,"level":23,"new":0,"day":12},{"id":6,"money":10,"coin":100000,"task":5,"level":68,"new":0,"day":20},{"id":7,"money":20,"coin":200000,"task":6,"level":113,"new":0,"day":0},{"id":8,"money":50,"coin":500000,"task":7,"level":150,"new":0,"day":0},{"id":9,"money":100,"coin":10000000,"task":8,"level":150,"new":0,"day":0}] \ No newline at end of file diff --git a/src/HttpServer/jsonconf/jsonconf.go b/src/HttpServer/jsonconf/jsonconf.go index c2b4da6..95e3002 100644 --- a/src/HttpServer/jsonconf/jsonconf.go +++ b/src/HttpServer/jsonconf/jsonconf.go @@ -48,6 +48,7 @@ type WithDrawDesc struct { Task int `json:"task"` Level int `json:"level"` Isnew int `json:"new"` + Day int `json:"day"` } type SignRewardDetail struct { diff --git a/src/HttpServer/logic/datadef.go b/src/HttpServer/logic/datadef.go index 6cd91e9..d9d88aa 100644 --- a/src/HttpServer/logic/datadef.go +++ b/src/HttpServer/logic/datadef.go @@ -333,6 +333,7 @@ type WithDrawDesc struct { Isnew int `json:"isnew"` Limitlv int `json:"limitlv"` Preisfind int `json:"preisfind"` + Day int `json:"day"` } //玩家数据 diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index 9fd3dd1..a694aad 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -503,6 +503,7 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int, uniqueuid s } else { tmp.Preisfind = 0 } + tmp.Day = val.Day initdata.WithDraw.Cashdata = append(initdata.WithDraw.Cashdata, tmp) } -- libgit2 0.21.0