From dc1f99a9de95401f5a8bfc72adfaa4ed53fc7f53 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Sat, 25 Jul 2020 16:37:19 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/logic/datadef.go | 4 ++-- src/HttpServer/logic/function.go | 4 ++-- src/HttpServer/logic/logic.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/HttpServer/logic/datadef.go b/src/HttpServer/logic/datadef.go index c376233..2f497f3 100644 --- a/src/HttpServer/logic/datadef.go +++ b/src/HttpServer/logic/datadef.go @@ -15,7 +15,7 @@ type UserLoginData struct { Jirednum int `json:"jirednum"` Randnum int `json:"randnum"` Speciallevel int `json:"speciallevel"` - Speciallevelnum int `json:"speciallevelnum"` + Specialguannum int `json:"specialguannum"` } type UserLoginResp struct { @@ -38,7 +38,7 @@ type GetuserdataData struct { Jirednum int `json:"jirednum"` Randnum int `json:"randnum"` Speciallevel int `json:"speciallevel"` - Speciallevelnum int `json:"speciallevelnum"` + Specialguannum int `json:"specialguannum"` } diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index fedda13..47378ca 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -110,7 +110,7 @@ func HandlerSyncuserdata(w http.ResponseWriter, data string, uuid int) { resp.Data.Jirednum = data.JiRedNum resp.Data.Randnum = data.RandNum resp.Data.Speciallevel = data.SpecialLevel - resp.Data.Speciallevelnum = data.SpecialNum + resp.Data.Specialguannum = data.SpecialNum SaveUserInfo(data, uniqueuuid) resp.Code = 0 @@ -199,7 +199,7 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int, uniqueuid s resp.Data.Jirednum = initdata.JiRedNum resp.Data.Randnum = initdata.RandNum resp.Data.Speciallevel = initdata.SpecialLevel - resp.Data.Speciallevelnum = initdata.SpecialNum + resp.Data.Specialguannum = initdata.SpecialNum err := SaveUserInfo(&initdata, uniqueuid) logger.Info("InitUserInfoddddd uinfo=%+v", initdata) diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index b924304..e0fb6cf 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -656,7 +656,7 @@ func GetUserData(uuid int, uniqueuid string, req *UserLoginReq, resp *UserLoginR resp.Data.Jirednum = data.JiRedNum resp.Data.Randnum = data.RandNum resp.Data.Speciallevel = data.SpecialLevel - resp.Data.Speciallevelnum = data.SpecialNum + resp.Data.Specialguannum = data.SpecialNum return nil } \ No newline at end of file -- libgit2 0.21.0