lvhao 3 주 전
부모
커밋
eae6043d45
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      core/CoreApp/controllers/Systemprint.php

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

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