* [frankenphp] refactor isClient

This commit is contained in:
朱金勇
2025-12-25 09:00:18 +08:00
committed by Gitfox
parent dd0659eb81
commit 4e8936623d
+2 -2
View File
@@ -84,8 +84,8 @@ $handler = static function ()
$common->checkPriv();
$common->checkIframe();
$isClient = strpos($_SERVER['HTTP_USER_AGENT'], 'xuanxuan') === false && strpos($_SERVER['HTTP_USER_AGENT'], 'uni-app') === false;
if($app->getViewType() != 'json' && (session_id() != $app->sessionID && $isClient)) helper::restartSession($app->sessionID);
$isClient = strpos($_SERVER['HTTP_USER_AGENT'], 'xuanxuan') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'uni-app') !== false;
if($app->getViewType() != 'json' && session_id() != $app->sessionID && !$isClient) helper::restartSession($app->sessionID);
$app->loadModule();
}