lvhao hace 3 semanas
padre
commit
32a787253d
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. 2 5
      core/CoreApp/controllers/Systemprint.php

+ 2 - 5
core/CoreApp/controllers/Systemprint.php

@@ -597,11 +597,8 @@ class Systemprint extends Start_Controller {
 		    $this->data['warehouse'] = $warehouse;
 		}else{
 			//未登录不允许访问
-			//header("location:/");
-			$user = $this->user->get_api($_SESSION['api']);
-			if(empty($user)){
-				header("location:/");
-			}
+			header("location:/");
+			exit;
 		}
 		$this->_Template('systemprintmc',$this->data);
 	}