Commit 7b3a9e40b288e8b968f8674a80c28c877aeaf5db
1 parent
602b05a9
Exists in
master
提交
Showing
2 changed files
with
3 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/datadef.go
@@ -25,6 +25,7 @@ type UserLoginData struct { | @@ -25,6 +25,7 @@ type UserLoginData struct { | ||
25 | Shakeleftcnt int `json:"shakeleftcnt"` | 25 | Shakeleftcnt int `json:"shakeleftcnt"` |
26 | IsNew int `json:"isnew"` | 26 | IsNew int `json:"isnew"` |
27 | Issignshow int `json:"issignshow"` | 27 | Issignshow int `json:"issignshow"` |
28 | + Curtime int `json:"curtime"` | ||
28 | } | 29 | } |
29 | 30 | ||
30 | type UserLoginResp struct { | 31 | type UserLoginResp struct { |
src/HttpServer/logic/function.go
@@ -675,6 +675,7 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int, uniqueuid s | @@ -675,6 +675,7 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int, uniqueuid s | ||
675 | initdata.Nickname = data.Nickname | 675 | initdata.Nickname = data.Nickname |
676 | initdata.HeadUrl = data.Headurl | 676 | initdata.HeadUrl = data.Headurl |
677 | resp.Data.Issignshow = initdata.SignShow | 677 | resp.Data.Issignshow = initdata.SignShow |
678 | + resp.Data.Curtime = int(time.Now().Unix()) | ||
678 | 679 | ||
679 | for _, val := range jsonconf.GetJsonConf().WithDrawConfig { | 680 | for _, val := range jsonconf.GetJsonConf().WithDrawConfig { |
680 | var tmp WithDrawDesc | 681 | var tmp WithDrawDesc |
@@ -1010,6 +1011,7 @@ func GetUserData(uuid int, uniqueuid string, req *UserLoginReq, resp *UserLoginR | @@ -1010,6 +1011,7 @@ func GetUserData(uuid int, uniqueuid string, req *UserLoginReq, resp *UserLoginR | ||
1010 | resp.Data.Shakeleftcnt = data.ShakeTime | 1011 | resp.Data.Shakeleftcnt = data.ShakeTime |
1011 | resp.Data.IsNew = data.IsNew | 1012 | resp.Data.IsNew = data.IsNew |
1012 | resp.Data.Issignshow = data.SignShow | 1013 | resp.Data.Issignshow = data.SignShow |
1014 | + resp.Data.Curtime = int(time.Now().Unix()) | ||
1013 | return nil | 1015 | return nil |
1014 | } | 1016 | } |
1015 | 1017 |