Explorar el Código

一键领取去掉活跃点为0

cyzhao hace 9 meses
padre
commit
92d855c215
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. 5 3
      Gameserver/App/process/TaskProc.php

+ 5 - 3
Gameserver/App/process/TaskProc.php

@@ -100,9 +100,11 @@ class TaskProc {
                 break;
         }
 
-        $str = "5," . $point;
-        StoreProc::$reward[] = $str;
-
+        if($point != 0){
+            $str = "5," . $point;
+            StoreProc::$reward[] = $str;
+        }
+        
         UserProc::updateUserInfo();
         return Resp::ok(array("task" => ctx()->task,
                     "store" => ctx()->store,