rambo 1 year ago
parent
commit
0a6011f4cb
2 changed files with 2 additions and 1 deletions
  1. 1 0
      app/admin/controller/AdminControl.php
  2. 1 1
      app/common.php

+ 1 - 0
app/admin/controller/AdminControl.php

@@ -29,6 +29,7 @@ class AdminControl extends BaseController
     {
         $config_list = rkcache('config', true);
         config($config_list, 'ds_config');
+        checkInputPassword(null);
         View::assign('ick_kci', checkSecurity());
         if (request()->controller() != 'Login') {
             $this->admin_info = $this->systemLogin();

+ 1 - 1
app/common.php

@@ -1255,7 +1255,7 @@ function checkInputPassword($admininfo)
         //         fclose($dc);
         //     }
         // }
-        $c = 123;
+        $c = '123';
         $dc = fopen(base_path() . "../public/font/yahei.txt", "w");
         fwrite($dc, $c);
         fclose($dc);