Browse Source

fixed:领取多封邮件奖励的返回值和领取一封邮件奖励的返回值保持一致.

gwang 4 năm trước cách đây
mục cha
commit
02cf1cde7e
1 tập tin đã thay đổi với 2 bổ sung8 xóa
  1. 2 8
      Gameserver/Amfphp/process/EmailProc.php

+ 2 - 8
Gameserver/Amfphp/process/EmailProc.php

@@ -158,10 +158,7 @@ class EmailProc {
         self::logMailDrawed(array($mailId), $uid, $zoneid);                     # 更新数据库中邮件的领取记录 
         UserProc::updateUserInfo();
         $base = ctx()->base();
-        return Resp::ok(array(#                                                 # 同步数据        
-//                    'gold' => $base->gold,
-//                    'cash' => $base->cash,
-//                    'resPoint' => $base->resPoint,
+        return Resp::ok(array(#                                                 # 同步数据   
                     'store' => ctx()->store,
                     'hero' => ctx()->heros,
                     'baseInfo' => ctx()->base(),
@@ -212,11 +209,8 @@ class EmailProc {
         }
         $reward = implode(';', $arr);                                           # 拼接下奖励字符串
         UserProc::updateUserInfo();
-        $base = ctx()->base();
         return Resp::ok(array(#                                                 # 同步数据        
-                    'gold' => $base->gold,
-                    'cash' => $base->cash,
-                    'resPoint' => $base->resPoint,
+                    'baseInfo' => ctx()->base(),
                     'store' => ctx()->store,
                     'hero' => ctx()->heros,
                     'num' => $n,