lvhao il y a 3 semaines
Parent
commit
d3b8685e98
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      core/CoreApp/controllers/Systemprint.php

+ 4 - 0
core/CoreApp/controllers/Systemprint.php

@@ -595,6 +595,10 @@ class Systemprint extends Start_Controller {
 			$warehouse = $this->warehouse->find_all('1=1 and '.rtrim($wid,'or'),"*","px asc");
 		    $this->data['wlshop'] = $wlshop;
 		    $this->data['warehouse'] = $warehouse;
+		}else{
+			//未登录不允许访问
+			header("location:/");
+			
 		}
 		$this->_Template('systemprintmc',$this->data);
 	}