diff --git a/app/controller/api/BuildToken.php b/app/controller/api/BuildToken.php index 3538ca4..706d214 100644 --- a/app/controller/api/BuildToken.php +++ b/app/controller/api/BuildToken.php @@ -26,6 +26,8 @@ class BuildToken extends Base { $appInfo = (new AdminApp())->where(['app_id' => $param['app_id'], 'app_status' => 1])->find(); if (empty($appInfo)) { return $this->buildFailed(ReturnCode::INVALID, '应用ID非法'); + } else { + $appInfo = $appInfo->toArray(); } $signature = $param['signature'];