gwang 4 жил өмнө
parent
commit
a0d6a65fc5

+ 1 - 1
Gameserver/Amfphp/model/Const/GameConfig.php

@@ -4,7 +4,7 @@
  // 由CodeGenerator创建。
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
  // author: gwang 
- // 日期: 2020-08-20 19:57:41
+ // 日期: 2020-08-21 08:55:03
 ////////////////////
 ////////////////////
 
 
 /**
 /**

+ 2 - 0
Gameserver/Amfphp/process/ActiveProc.php

@@ -141,6 +141,8 @@ class ActiveProc {
      * @param req $req
      * @param req $req
      */
      */
     static function getTotayOnlineInfos($req) {
     static function getTotayOnlineInfos($req) {
+        $req->userInfo->game->privateState->onlineGiftts = now() - $req->userInfo->game->baseInfo->lastLogin;
+        UserProc::updateUserInfo();
         return Resp::ok(array(
         return Resp::ok(array(
                     "onlineGiftIDs" => $req->userInfo->game->privateState->onlineGiftIDs,
                     "onlineGiftIDs" => $req->userInfo->game->privateState->onlineGiftIDs,
                     "onlineGiftts" => $req->userInfo->game->privateState->onlineGiftts
                     "onlineGiftts" => $req->userInfo->game->privateState->onlineGiftts