소스 검색

主线关卡奖励同步

cyzhao 8 달 전
부모
커밋
1daa00483f
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 1
      Gameserver/App/process/FightProc.php
  2. 1 1
      Gameserver/App/process/StoreProc.php

+ 4 - 1
Gameserver/App/process/FightProc.php

@@ -161,7 +161,10 @@ class FightProc {
         $mo = GameConfig::gate_getItem($gateId);
         StoreProc::AddMultiItemInStore($mo->$prize);
         UserProc::updateUserInfo();
-        return Resp::ok();
+        return Resp::ok(array(
+                    'reward' => StoreProc::$reward,
+                    'reward_Gem' => StoreProc::$reward_Gem,
+        ));
     }
 
     /**

+ 1 - 1
Gameserver/App/process/StoreProc.php

@@ -753,7 +753,7 @@ class StoreProc {
     
     static $reward = array();
     static $reward_Gem = array();
-    static $reward_hero = array();
+    //static $reward_hero = array();
     
     /**
      * 具体奖励存入背包