소스 검색

添加最后一次操作时间记录

lvhao 5 달 전
부모
커밋
52c0581e80
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      core/CoreApp/core/Lin_Controller.php

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

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