王刚 3 vuotta sitten
vanhempi
commit
44dca7a926

+ 1 - 2
Gameserver/Amfphp/main.php

@@ -104,8 +104,7 @@ function req() {
 }
 
 /**
- * 
- * @param type $game
+ * @param type $game 用参数更新 ctx
  * @return \loyalsoft\Data_UserGame 玩家数据
  */
 function ctx($game = null) {

+ 1 - 1
Gameserver/Amfphp/process/PayProc.php

@@ -138,7 +138,7 @@ class PayProc {
                 break;
         }
 
-        req()->userInfo->game = $user;
+        ctx($user);
 
         UserProc::updateUserInfo();
         return Resp::ok(array(

+ 1 - 1
Gameserver/Amfphp/process/UserProc.php

@@ -253,7 +253,7 @@ class UserProc {
             StatisticsProc::TargetStatistics(Enum_TargetStatistics::comNewGuide_UserNum);
         }
 
-        req()->userInfo->game = $user;
+        ctx($user);
         UserProc::updateUserInfo();                                             # 回写数据
         return Resp::ok(array(
                     "store" => $user->store, #                                  # 目前来看只涉及到items变化