Commit dc1f99a9de95401f5a8bfc72adfaa4ed53fc7f53
1 parent
253dc21e
Exists in
master
提交
Showing
3 changed files
with
5 additions
and
5 deletions
Show diff stats
src/HttpServer/logic/datadef.go
| @@ -15,7 +15,7 @@ type UserLoginData struct { | @@ -15,7 +15,7 @@ type UserLoginData struct { | ||
| 15 | Jirednum int `json:"jirednum"` | 15 | Jirednum int `json:"jirednum"` |
| 16 | Randnum int `json:"randnum"` | 16 | Randnum int `json:"randnum"` |
| 17 | Speciallevel int `json:"speciallevel"` | 17 | Speciallevel int `json:"speciallevel"` |
| 18 | - Speciallevelnum int `json:"speciallevelnum"` | 18 | + Specialguannum int `json:"specialguannum"` |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | type UserLoginResp struct { | 21 | type UserLoginResp struct { |
| @@ -38,7 +38,7 @@ type GetuserdataData struct { | @@ -38,7 +38,7 @@ type GetuserdataData struct { | ||
| 38 | Jirednum int `json:"jirednum"` | 38 | Jirednum int `json:"jirednum"` |
| 39 | Randnum int `json:"randnum"` | 39 | Randnum int `json:"randnum"` |
| 40 | Speciallevel int `json:"speciallevel"` | 40 | Speciallevel int `json:"speciallevel"` |
| 41 | - Speciallevelnum int `json:"speciallevelnum"` | 41 | + Specialguannum int `json:"specialguannum"` |
| 42 | 42 | ||
| 43 | } | 43 | } |
| 44 | 44 |
src/HttpServer/logic/function.go
| @@ -110,7 +110,7 @@ func HandlerSyncuserdata(w http.ResponseWriter, data string, uuid int) { | @@ -110,7 +110,7 @@ func HandlerSyncuserdata(w http.ResponseWriter, data string, uuid int) { | ||
| 110 | resp.Data.Jirednum = data.JiRedNum | 110 | resp.Data.Jirednum = data.JiRedNum |
| 111 | resp.Data.Randnum = data.RandNum | 111 | resp.Data.Randnum = data.RandNum |
| 112 | resp.Data.Speciallevel = data.SpecialLevel | 112 | resp.Data.Speciallevel = data.SpecialLevel |
| 113 | - resp.Data.Speciallevelnum = data.SpecialNum | 113 | + resp.Data.Specialguannum = data.SpecialNum |
| 114 | SaveUserInfo(data, uniqueuuid) | 114 | SaveUserInfo(data, uniqueuuid) |
| 115 | 115 | ||
| 116 | resp.Code = 0 | 116 | resp.Code = 0 |
| @@ -199,7 +199,7 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int, uniqueuid s | @@ -199,7 +199,7 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int, uniqueuid s | ||
| 199 | resp.Data.Jirednum = initdata.JiRedNum | 199 | resp.Data.Jirednum = initdata.JiRedNum |
| 200 | resp.Data.Randnum = initdata.RandNum | 200 | resp.Data.Randnum = initdata.RandNum |
| 201 | resp.Data.Speciallevel = initdata.SpecialLevel | 201 | resp.Data.Speciallevel = initdata.SpecialLevel |
| 202 | - resp.Data.Speciallevelnum = initdata.SpecialNum | 202 | + resp.Data.Specialguannum = initdata.SpecialNum |
| 203 | 203 | ||
| 204 | err := SaveUserInfo(&initdata, uniqueuid) | 204 | err := SaveUserInfo(&initdata, uniqueuid) |
| 205 | logger.Info("InitUserInfoddddd uinfo=%+v", initdata) | 205 | logger.Info("InitUserInfoddddd uinfo=%+v", initdata) |
src/HttpServer/logic/logic.go
| @@ -656,7 +656,7 @@ func GetUserData(uuid int, uniqueuid string, req *UserLoginReq, resp *UserLoginR | @@ -656,7 +656,7 @@ func GetUserData(uuid int, uniqueuid string, req *UserLoginReq, resp *UserLoginR | ||
| 656 | resp.Data.Jirednum = data.JiRedNum | 656 | resp.Data.Jirednum = data.JiRedNum |
| 657 | resp.Data.Randnum = data.RandNum | 657 | resp.Data.Randnum = data.RandNum |
| 658 | resp.Data.Speciallevel = data.SpecialLevel | 658 | resp.Data.Speciallevel = data.SpecialLevel |
| 659 | - resp.Data.Speciallevelnum = data.SpecialNum | 659 | + resp.Data.Specialguannum = data.SpecialNum |
| 660 | 660 | ||
| 661 | return nil | 661 | return nil |
| 662 | } | 662 | } |
| 663 | \ No newline at end of file | 663 | \ No newline at end of file |