diff --git a/app/api/controller/v1/Playx.php b/app/api/controller/v1/Playx.php index 215f68d..047c5f5 100644 --- a/app/api/controller/v1/Playx.php +++ b/app/api/controller/v1/Playx.php @@ -545,6 +545,11 @@ class Playx extends Api } } + $asset = $this->ensureAssetForPlayx($userId, $username); + if ($asset === null) { + return $this->error(__('Failed to ensure PlayX user asset')); + } + $sessionId = bin2hex(random_bytes(16)); MallSession::create([ 'session_id' => $sessionId,