Commit c84f5db282d52ceb49dac04e89e540a90981079b
1 parent
9db3e47e
Exists in
master
提交
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/HttpServer/logic/logic.go
| @@ -497,7 +497,7 @@ func HandlerDoBuyCat(w http.ResponseWriter, data string, uuid int) { | @@ -497,7 +497,7 @@ func HandlerDoBuyCat(w http.ResponseWriter, data string, uuid int) { | ||
| 497 | if rdata.CatId < 1 || rdata.CatId > len(uinfo.BuyCatInfo) { | 497 | if rdata.CatId < 1 || rdata.CatId > len(uinfo.BuyCatInfo) { |
| 498 | logger.Error("HandlerDoBuyCat buy lv failed=%v", err) | 498 | logger.Error("HandlerDoBuyCat buy lv failed=%v", err) |
| 499 | resp.Code = 1 | 499 | resp.Code = 1 |
| 500 | - resp.Message = "buy lv invalid" | 500 | + resp.Message = "请求购买的猫等级不正确" |
| 501 | break | 501 | break |
| 502 | } | 502 | } |
| 503 | 503 | ||
| @@ -514,7 +514,7 @@ func HandlerDoBuyCat(w http.ResponseWriter, data string, uuid int) { | @@ -514,7 +514,7 @@ func HandlerDoBuyCat(w http.ResponseWriter, data string, uuid int) { | ||
| 514 | if catpos < 0 { | 514 | if catpos < 0 { |
| 515 | logger.Error("HandlerDoBuyCat not enough place failed=%v", err) | 515 | logger.Error("HandlerDoBuyCat not enough place failed=%v", err) |
| 516 | resp.Code = 1 | 516 | resp.Code = 1 |
| 517 | - resp.Message = "not enough place" | 517 | + resp.Message = "没有空位置了,购买失败!" |
| 518 | break | 518 | break |
| 519 | } | 519 | } |
| 520 | //扣钱 | 520 | //扣钱 |