优化验证token接口-暂时不验证token有效性

This commit is contained in:
2026-04-23 09:49:58 +08:00
parent 3b687489a0
commit 8017d1819a

View File

@@ -480,6 +480,11 @@ class Playx extends Api
return $this->error(__('PlayX API not configured')); return $this->error(__('PlayX API not configured'));
} }
$asset = $this->ensureAssetForPlayx($playxUserId, $username);
if ($asset === null) {
return $this->error(__('Failed to ensure PlayX user asset'));
}
$expireAt = time() + intval(config('playx.session_expire_seconds', 3600)); $expireAt = time() + intval(config('playx.session_expire_seconds', 3600));
$sessionId = bin2hex(random_bytes(16)); $sessionId = bin2hex(random_bytes(16));
$now = time(); $now = time();