From a303444eaaffb5cdab5227b6cb6316f77af86c93 Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Wed, 24 Feb 2021 16:38:28 +0800 Subject: [PATCH] fixed #I2DP6X issue --- app/controller/api/BuildToken.php | 2 ++ 1 file changed, 2 insertions(+) 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'];