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