Jelajahi Sumber

更新用户访问时间

shish 6 tahun lalu
induk
melakukan
94d9e6fc35
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      app/mall/controllers/BaseController.php

+ 4 - 0
app/mall/controllers/BaseController.php

@@ -64,6 +64,10 @@ class BaseController extends PublicController
 			$this->userId = $userId;
 			$userInfo = UserService::getUserInfo($userId);
 			$this->user = $userInfo;
+
+			//更新用户访问时间
+			UserService::updateVisitTime($merchantId, $userId);
+			
 			//客户短时间访问二家商家的商城,登陆信息一致性问题
 			if ($userInfo['merchantId'] != $merchantId) {
 				util::logout();