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();