Przeglądaj źródła

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

lvhao 5 miesięcy temu
rodzic
commit
52c0581e80
1 zmienionych plików z 1 dodań i 0 usunięć
  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']);