rabin 3 vuotta sitten
vanhempi
commit
627346082c
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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);