From 8017d1819a3564d8cbeadfe66a8730eeba005e94 Mon Sep 17 00:00:00 2001 From: zhenhui <1276357500@qq.com> Date: Thu, 23 Apr 2026 09:49:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=AA=8C=E8=AF=81token?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3-=E6=9A=82=E6=97=B6=E4=B8=8D=E9=AA=8C?= =?UTF-8?q?=E8=AF=81token=E6=9C=89=E6=95=88=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/v1/Playx.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/api/controller/v1/Playx.php b/app/api/controller/v1/Playx.php index 1205266..43a648d 100644 --- a/app/api/controller/v1/Playx.php +++ b/app/api/controller/v1/Playx.php @@ -480,6 +480,11 @@ class Playx extends Api 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)); $sessionId = bin2hex(random_bytes(16)); $now = time();