Commit 2ec689740836c514c571b5ebed0e9abb355ff8d0
1 parent
fd785f9a
Exists in
master
and in
4 other branches
提交测试接口
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/httpserver.go
... | ... | @@ -159,6 +159,13 @@ func Testapi(w http.ResponseWriter, r *http.Request) { |
159 | 159 | if rdata.Type == 4 { |
160 | 160 | uinfo.Lv += rdata.Value |
161 | 161 | } |
162 | + if rdata.Type == 5 { | |
163 | + uinfo.IsSignToday = 0 | |
164 | + if uinfo.SignSum == 7 { | |
165 | + uinfo.SignSum = 0 | |
166 | + uinfo.SignRound++ | |
167 | + } | |
168 | + } | |
162 | 169 | err = SaveUserInfo(uinfo) |
163 | 170 | if err != nil { |
164 | 171 | logger.Error("SaveUserInfo err=%v", err) | ... | ... |