Browse Source

提交数据

lvhao 5 months ago
parent
commit
d3654f7bb3
1 changed files with 4 additions and 1 deletions
  1. 4 1
      core/CoreApp/core/Lin_Controller.php

+ 4 - 1
core/CoreApp/core/Lin_Controller.php

@@ -45,7 +45,10 @@ abstract class Start_Controller extends Lin_Controller {
 			    header("Location:/user/");
 			}
 		}
-		$this->user->save(['lasttime'=>time()],$u['id']);
+		if(!empty($u)){
+			$this->user->save(['lasttime'=>time()],$u['id']);
+		}
+		
 		$this->load->library('template');
 		//设置前台模板路径
 		$this->template->_init($setting['theme']);