Commit 9d038db1474c325141e5bf56fffa524e51649712

Authored by 陆恒
1 parent 56a4608f
Exists in ver2.3.0 and in 1 other branch ver2.2.8

提交

Showing 1 changed file with 11 additions and 1 deletions   Show diff stats
src/HttpServer/logic/logic.go
... ... @@ -757,6 +757,16 @@ func HandlerUpdatetaskandachieve(w http.ResponseWriter, data string, uuid int) {
757 757 uinfo.Task.PassLevel += rdata.Value
758 758 case TASKTYPE_GETREDBAG:
759 759 uinfo.Task.GetRedbagCnt += rdata.Value
  760 + if uinfo.LeftFreeRB > 0 {
  761 + uinfo.LeftFreeRB--
  762 + }
  763 + if uinfo.WatchAddsTime > 0 {
  764 + uinfo.WatchAddsTime--
  765 + }
  766 + case TASKTYPE_WATCHADS:
  767 + uinfo.Achieve.WatchAdsCnt += rdata.Value
  768 + /*case TASKTYPE_GETREDBAG:
  769 + uinfo.Task.GetRedbagCnt += rdata.Value
760 770 case TASKTYPE_WATCHADS:
761 771 uinfo.Achieve.WatchAdsCnt += rdata.Value
762 772 if uinfo.LeftFreeRB > 0 {
... ... @@ -764,7 +774,7 @@ func HandlerUpdatetaskandachieve(w http.ResponseWriter, data string, uuid int) {
764 774 }
765 775 if uinfo.WatchAddsTime > 0 {
766 776 uinfo.WatchAddsTime--
767   - }
  777 + }*/
768 778 case TASKTYPE_KILLSTAR:
769 779 uinfo.Achieve.KillStar += rdata.Value
770 780 case TASKTYPE_USEITEM:
... ...