Commit 7b3a9e40b288e8b968f8674a80c28c877aeaf5db

Authored by 陆恒
1 parent 602b05a9
Exists in master

提交

src/HttpServer/logic/datadef.go
... ... @@ -25,6 +25,7 @@ type UserLoginData struct {
25 25 Shakeleftcnt int `json:"shakeleftcnt"`
26 26 IsNew int `json:"isnew"`
27 27 Issignshow int `json:"issignshow"`
  28 + Curtime int `json:"curtime"`
28 29 }
29 30  
30 31 type UserLoginResp struct {
... ...
src/HttpServer/logic/function.go
... ... @@ -675,6 +675,7 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int, uniqueuid s
675 675 initdata.Nickname = data.Nickname
676 676 initdata.HeadUrl = data.Headurl
677 677 resp.Data.Issignshow = initdata.SignShow
  678 + resp.Data.Curtime = int(time.Now().Unix())
678 679  
679 680 for _, val := range jsonconf.GetJsonConf().WithDrawConfig {
680 681 var tmp WithDrawDesc
... ... @@ -1010,6 +1011,7 @@ func GetUserData(uuid int, uniqueuid string, req *UserLoginReq, resp *UserLoginR
1010 1011 resp.Data.Shakeleftcnt = data.ShakeTime
1011 1012 resp.Data.IsNew = data.IsNew
1012 1013 resp.Data.Issignshow = data.SignShow
  1014 + resp.Data.Curtime = int(time.Now().Unix())
1013 1015 return nil
1014 1016 }
1015 1017  
... ...