Browse Source

任务奖励加金币钻石返回值

cyzhao 10 months ago
parent
commit
40f2ec626e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Gameserver/App/process/TaskProc.php

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

@@ -74,6 +74,8 @@ class TaskProc {
                     "store" => ctx()->store,
                     "reward" => StoreProc::$reward,
                     'reward_Gem' => StoreProc::$reward_Gem,
+                    'gold'=> ctx()->baseInfo->gold,
+                    'cash'=> ctx()->baseInfo->cash,
         ));
     }
 
@@ -132,7 +134,9 @@ class TaskProc {
         return Resp::ok(array("task" => ctx()->task,
                     "store" => ctx()->store,
                     'reward' => StoreProc::$reward,
-                    'reward_Gem' => StoreProc::$reward_Gem,                  
+                    'reward_Gem' => StoreProc::$reward_Gem,   
+                    'gold'=> ctx()->baseInfo->gold,
+                    'cash'=> ctx()->baseInfo->cash,
         ));
     }