林琦海 před 5 roky
rodič
revize
2ad96d08d5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app-pt/controllers/BaseController.php

+ 1 - 1
app-pt/controllers/BaseController.php

@@ -31,7 +31,7 @@ class BaseController extends PublicController
             if (empty($staff)) {
             if (empty($staff)) {
                 util::logout();
                 util::logout();
             }
             }
-            if($staff->status==0){
+            if($staff['status']==0){
                 util::logout("账号已冻结");
                 util::logout("账号已冻结");
             }
             }
             $this->staff = $staff;
             $this->staff = $staff;