Browse Source

fixed: 领取邮件奖励时同步言力结晶数据.

gwang 4 years ago
parent
commit
7ecfc1ab39
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Gameserver/Amfphp/process/EmailProc.php

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

@@ -166,6 +166,7 @@ class EmailProc {
         return Resp::ok(array(#                                                 # 同步数据        
                     'gold' => $req->userInfo->game->baseInfo->gold,
                     'cash' => $req->userInfo->game->baseInfo->cash,
+                    'resPoint' => $req->userInfo->game->baseInfo->resPoint,
                     'store' => $req->userInfo->game->store,
                     'hero' => $req->userInfo->game->heros,
                     'num' => 1,
@@ -541,7 +542,7 @@ class EmailProc {
         $mem = gMem();
         $key = MemKey_User::Mail_Queue_hash($zoneid, $uid);
         $arr = $mem->hgetall($key);                                             # 所有邮件
-        $del = array_filter((array) $arr, function($v) use($ts) {
+        $del = array_filter((array) $arr, function ($v) use ($ts) {
             $email = new Ins_Email($v);
             return $email->ExpireTs() < $ts;                                    # 选出过期邮件
         });
@@ -564,7 +565,7 @@ class EmailProc {
         $mkeys = array_slice($keys, 0, self::MaxMailContent);                   # 取固定数量100
 //        var_dump($mkeys);
         $mails = (array) gMem()->hmget($key, $mkeys);                           # mget
-        $ret = array_map(function($v) {
+        $ret = array_map(function ($v) {
             return new Ins_Email($v);                                           # 装箱
         }, $mails);
         return array_values($ret);