diff --git a/src/HttpServer/logic/constdef.go b/src/HttpServer/logic/constdef.go index 9190c86..6c6c5a8 100644 --- a/src/HttpServer/logic/constdef.go +++ b/src/HttpServer/logic/constdef.go @@ -42,10 +42,10 @@ const ( ) const ( - XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685" - //XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f" - XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" - //XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" + //XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685" + XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f" + //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" + XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" ) const ( diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index ba92c19..ff74e04 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -310,7 +310,7 @@ func GetTaskInfo(uuid int, tasktype int, channel string) (*TaskList, error) { if err == nil { //删除老的数据 以后都走新的数据 err = redishandler.GetRedisClient().HDel(redis.USER_TASKINFO_LIST, strconv.Itoa(uuid)) - + logger.Info("GetTaskInfo uuid=%v do set", uuid) } data, err = redishandler.GetRedisClient().HGet(redis.USER_TASKINFO_LIST, unqiueuuid) } @@ -326,7 +326,7 @@ func GetTaskInfo(uuid int, tasktype int, channel string) (*TaskList, error) { if err == nil { //删除老的数据 以后都走新的数据 err = redishandler.GetRedisClient().HDel(redis.USER_ACHIEVEMENTINFO_LIST, strconv.Itoa(uuid)) - + logger.Info("GetTaskInfo uuid=%v do set", uuid) } data, err = redishandler.GetRedisClient().HGet(redis.USER_ACHIEVEMENTINFO_LIST, unqiueuuid) } diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index f4dad4a..036d812 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -959,10 +959,12 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) { resp.Code = ERROR_SRV_ERROR break } + logger.Info("HandlerLogin uuid=%v do set oldstr=%v", uuid, oldstr) err = GetUserData(uuid, uniqueuuid, &rdata, &resp) if err == nil { //删除老的数据 redishandler.GetRedisClient().HDel(redis.USER_DATA_KEY, strconv.Itoa(uuid)) + logger.Info("HandlerLogin uuid=%v do set", uuid) } } else { //不存在老的数据 之间走新号流程 -- libgit2 0.21.0