diff --git a/src/HttpServer/logic/constdef.go b/src/HttpServer/logic/constdef.go index 3fa1677..1616769 100644 --- a/src/HttpServer/logic/constdef.go +++ b/src/HttpServer/logic/constdef.go @@ -2,7 +2,8 @@ package logic //任务成就类型枚举 协议上报用 const ( - TASKTYPE_WATCHADS = 3 //表示管看广告次数 + TASKTYPE_CORRECT = 1 //答对哥 + TASKTYPE_WATCHADS = 2 //表示管看广告次数 ) diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index cd38825..07e325b 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -1143,6 +1143,8 @@ func HandlerUpdatetaskandachieve(w http.ResponseWriter, data string, uuid int) { } switch rdata.Tasktype { + case TASKTYPE_CORRECT: + uinfo.Task.GuessSong += rdata.Value case TASKTYPE_WATCHADS: uinfo.Task.WatchAds += rdata.Value } -- libgit2 0.21.0