This commit is contained in:
xiaoyu
2024-02-02 17:40:34 +08:00
parent efab20db98
commit 4b41cd4e04
2 changed files with 5 additions and 7 deletions
-2
View File
@@ -146,7 +146,6 @@ abstract class Wxapp extends HD_Controller{
}
if(!method_exists($this, $method)){
echo $method;exit;
debug_log("[fail]". __FUNCTION__ . ": request not allow; method:{$method}", $this->log_file);
throw new Exception('非法请求', API_CODE_NONE);
}
@@ -154,7 +153,6 @@ abstract class Wxapp extends HD_Controller{
//某个方法或者整个ct在白名单里无需校验
$session = $this->session;
if(!in_array($name, $this->login_white) && 'all' != $this->login_white){
print_r($this->login_white);exit;
if(!$session){
throw new Exception('还未登录', API_CODE_LOGOUT);
}