neta0202
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user