From b946da0f86e9e92b6c9e58704f766a859be71d0a Mon Sep 17 00:00:00 2001 From: wangmingqing Date: Tue, 20 Jun 2023 14:12:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ControllerBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ControllerBase.php b/app/controllers/ControllerBase.php index a5eeb14..5de87dc 100644 --- a/app/controllers/ControllerBase.php +++ b/app/controllers/ControllerBase.php @@ -225,7 +225,7 @@ class ControllerBase extends Phalcon\Mvc\Controller{ */ function __check_appid($appid=""){ //查询接口信息 - $AppInfo = AppInfo::findFirst("AppId = '$appid' AND Enable = 0"); + $AppInfo = AppInfo::findFirst("AppId = '$appid' AND Enable = 1"); //如果未查询到接口信息 if(empty($AppInfo)){ //告知用户"找不到app配置信息,appid无效,err detail:找不到app配置信息"