Commit 7d17d3115ca41efb912947e07991b5a0965ab11f
1 parent
d3281af4
Exists in
master
and in
4 other branches
提交添加日志
Showing
3 changed files
with
8 additions
and
6 deletions
Show diff stats
src/HttpServer/logic/constdef.go
| @@ -42,10 +42,10 @@ const ( | @@ -42,10 +42,10 @@ const ( | ||
| 42 | ) | 42 | ) |
| 43 | 43 | ||
| 44 | const ( | 44 | const ( |
| 45 | - XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685" | ||
| 46 | - //XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f" | ||
| 47 | - XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" | ||
| 48 | - //XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" | 45 | + //XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685" |
| 46 | + XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f" | ||
| 47 | + //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" | ||
| 48 | + XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" | ||
| 49 | ) | 49 | ) |
| 50 | 50 | ||
| 51 | const ( | 51 | const ( |
src/HttpServer/logic/function.go
| @@ -310,7 +310,7 @@ func GetTaskInfo(uuid int, tasktype int, channel string) (*TaskList, error) { | @@ -310,7 +310,7 @@ func GetTaskInfo(uuid int, tasktype int, channel string) (*TaskList, error) { | ||
| 310 | if err == nil { | 310 | if err == nil { |
| 311 | //删除老的数据 以后都走新的数据 | 311 | //删除老的数据 以后都走新的数据 |
| 312 | err = redishandler.GetRedisClient().HDel(redis.USER_TASKINFO_LIST, strconv.Itoa(uuid)) | 312 | err = redishandler.GetRedisClient().HDel(redis.USER_TASKINFO_LIST, strconv.Itoa(uuid)) |
| 313 | - | 313 | + logger.Info("GetTaskInfo uuid=%v do set", uuid) |
| 314 | } | 314 | } |
| 315 | data, err = redishandler.GetRedisClient().HGet(redis.USER_TASKINFO_LIST, unqiueuuid) | 315 | data, err = redishandler.GetRedisClient().HGet(redis.USER_TASKINFO_LIST, unqiueuuid) |
| 316 | } | 316 | } |
| @@ -326,7 +326,7 @@ func GetTaskInfo(uuid int, tasktype int, channel string) (*TaskList, error) { | @@ -326,7 +326,7 @@ func GetTaskInfo(uuid int, tasktype int, channel string) (*TaskList, error) { | ||
| 326 | if err == nil { | 326 | if err == nil { |
| 327 | //删除老的数据 以后都走新的数据 | 327 | //删除老的数据 以后都走新的数据 |
| 328 | err = redishandler.GetRedisClient().HDel(redis.USER_ACHIEVEMENTINFO_LIST, strconv.Itoa(uuid)) | 328 | err = redishandler.GetRedisClient().HDel(redis.USER_ACHIEVEMENTINFO_LIST, strconv.Itoa(uuid)) |
| 329 | - | 329 | + logger.Info("GetTaskInfo uuid=%v do set", uuid) |
| 330 | } | 330 | } |
| 331 | data, err = redishandler.GetRedisClient().HGet(redis.USER_ACHIEVEMENTINFO_LIST, unqiueuuid) | 331 | data, err = redishandler.GetRedisClient().HGet(redis.USER_ACHIEVEMENTINFO_LIST, unqiueuuid) |
| 332 | } | 332 | } |
src/HttpServer/logic/logic.go
| @@ -959,10 +959,12 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) { | @@ -959,10 +959,12 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) { | ||
| 959 | resp.Code = ERROR_SRV_ERROR | 959 | resp.Code = ERROR_SRV_ERROR |
| 960 | break | 960 | break |
| 961 | } | 961 | } |
| 962 | + logger.Info("HandlerLogin uuid=%v do set oldstr=%v", uuid, oldstr) | ||
| 962 | err = GetUserData(uuid, uniqueuuid, &rdata, &resp) | 963 | err = GetUserData(uuid, uniqueuuid, &rdata, &resp) |
| 963 | if err == nil { | 964 | if err == nil { |
| 964 | //删除老的数据 | 965 | //删除老的数据 |
| 965 | redishandler.GetRedisClient().HDel(redis.USER_DATA_KEY, strconv.Itoa(uuid)) | 966 | redishandler.GetRedisClient().HDel(redis.USER_DATA_KEY, strconv.Itoa(uuid)) |
| 967 | + logger.Info("HandlerLogin uuid=%v do set", uuid) | ||
| 966 | } | 968 | } |
| 967 | } else { | 969 | } else { |
| 968 | //不存在老的数据 之间走新号流程 | 970 | //不存在老的数据 之间走新号流程 |