Commit 59cafb12f2b57cebd83189cc7b92d578ffda3d38

Authored by 陆恒
1 parent cdf96e2a

提交日志

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/HttpServer/logic/function.go
@@ -279,6 +279,7 @@ func SaveTaskInfo(uuid, tasktype int, list *TaskList) error { @@ -279,6 +279,7 @@ func SaveTaskInfo(uuid, tasktype int, list *TaskList) error {
279 err = redishandler.GetRedisClient().HSet(redis.USER_TASKINFO_LIST, strconv.Itoa(uuid), string(savestr)) 279 err = redishandler.GetRedisClient().HSet(redis.USER_TASKINFO_LIST, strconv.Itoa(uuid), string(savestr))
280 } else if tasktype == 2 { 280 } else if tasktype == 2 {
281 err = redishandler.GetRedisClient().HSet(redis.USER_ACHIEVEMENTINFO_LIST, strconv.Itoa(uuid), string(savestr)) 281 err = redishandler.GetRedisClient().HSet(redis.USER_ACHIEVEMENTINFO_LIST, strconv.Itoa(uuid), string(savestr))
  282 + logger.Info("SaveTaskInfo savestr=%v", string(savestr))
282 } else { 283 } else {
283 logger.Error("tasktype invalid") 284 logger.Error("tasktype invalid")
284 return errors.New("tasktype invalid") 285 return errors.New("tasktype invalid")
@@ -375,6 +376,7 @@ func (uinfo *UserData) HandleGetTaskReward(req *GettaskrewardReq, resp *Gettaskr @@ -375,6 +376,7 @@ func (uinfo *UserData) HandleGetTaskReward(req *GettaskrewardReq, resp *Gettaskr
375 } 376 }
376 377
377 func (uinfo *UserData) RewardUser(rtype int, num int, gameid string, channel string) (int, int, int, int, int, int, int) { 378 func (uinfo *UserData) RewardUser(rtype int, num int, gameid string, channel string) (int, int, int, int, int, int, int) {
  379 + logger.Info("RewardUser rtype=%v,num=%v", rtype, num)
378 switch rtype { 380 switch rtype {
379 case REWARDTYPE_STAR: 381 case REWARDTYPE_STAR:
380 return 0, num, 0, 0, 0, 0, 0 382 return 0, num, 0, 0, 0, 0, 0