Parcourir la source

主线关卡奖励同步

cyzhao il y a 8 mois
Parent
commit
1daa00483f
2 fichiers modifiés avec 5 ajouts et 2 suppressions
  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();
     
     /**
      * 具体奖励存入背包