Commit 735f00b770e46725ec47bebaa5edd79a2607ca89

Authored by 陆恒
1 parent fd5b25be
Exists in master

提交

Showing 1 changed file with 1 additions and 16 deletions   Show diff stats
src/HttpServer/logic/logic.go
... ... @@ -475,16 +475,6 @@ func HandlerDoBuyCat(w http.ResponseWriter, data string, uuid int) {
475 475 break
476 476 }
477 477  
478   - //获取配置
479   - //获取最高猫
480   - _, higest := uinfo.CalcHigestCatName()
481   - highcfg := jsonconf.GetCatConfig(higest)
482   - if highcfg == nil {
483   - logger.Error("HandlerDoBuyCat get cat cfg failed=%v,lv=%v", err, rdata.CatId)
484   - resp.Code = 1
485   - resp.Message = "服务器错误"
486   - break
487   - }
488 478 catcfg := jsonconf.GetCatConfig(rdata.CatId)
489 479 if catcfg == nil {
490 480 logger.Error("HandlerDoBuyCat get cat cfg failed=%v,lv=%v", err, rdata.CatId)
... ... @@ -493,12 +483,7 @@ func HandlerDoBuyCat(w http.ResponseWriter, data string, uuid int) {
493 483 break
494 484 }
495 485  
496   - maxlv := highcfg.Level_buy
497   - if maxlv < 1 {
498   - //最小1j
499   - maxlv = 1
500   - }
501   - if rdata.CatId > maxlv || rdata.CatId < 1 || rdata.CatId > len(uinfo.BuyCatInfo) {
  486 + if rdata.CatId < 1 || rdata.CatId > len(uinfo.BuyCatInfo) {
502 487 logger.Error("HandlerDoBuyCat buy lv failed=%v", err)
503 488 resp.Code = 1
504 489 resp.Message = "buy lv invalid"
... ...