xieruidong 2 년 전
부모
커밋
791b494681
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/admin/controller/Auth.php

+ 1 - 1
app/admin/controller/Auth.php

@@ -92,7 +92,7 @@ class Auth extends Controller
      */
     public function apply()
     {
-        $map = $this->_vali(['id.require' => '权限ID不能为空!']);
+        $map = $this->_vali(['id.require' => '权限ID不能为空!'],$this->request->method());
         if (input('action') === 'get') {
             if ($this->app->isDebug()) AdminService::clearCache();
             $nodes = SystemNode::mk()->where($map)->column('node');