rabin 2 年之前
父节点
当前提交
627346082c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      service/agent/lib/Core.php

+ 2 - 1
service/agent/lib/Core.php

@@ -13,8 +13,9 @@ class Core
 
     public function __construct()
     {
+        $test = Dever::input('test');
         $config = Dever::db('setting/base')->one();
-        if($config['type'] == 2){
+        if($config['type'] == 2 || $test == 1){
             Dever::alert($config['type_desc'], -4);
         }
         $this->uid = Dever::load('passport/user')->check(false);