From f33f96916626a28bd087bf45bc18d159216bd80a Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Thu, 26 Feb 2026 12:02:06 +0800 Subject: [PATCH] jsapi --- app/common/controller/AuthController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/common/controller/AuthController.php b/app/common/controller/AuthController.php index bd14627..80ab94e 100644 --- a/app/common/controller/AuthController.php +++ b/app/common/controller/AuthController.php @@ -4,6 +4,7 @@ namespace app\common\controller; use app\common\service\AuthService; use app\common\validate\UserValidate; +use Exception; use support\Request; class AuthController extends BaseController @@ -119,6 +120,9 @@ class AuthController extends BaseController { try { $url = $request->get('url'); + if(empty($url)){ + throw new Exception("url不能为空"); + } $result = (new AuthService())->getJsApiConfig($request->corp_abbr, $request->system_code,$url); return $this->success($result); } catch (\Throwable $e) {