소스 검색

浏览记录调整

zhangxiaobin 1 년 전
부모
커밋
97c6ff3c7a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      application/common/model/User.php

+ 2 - 2
application/common/model/User.php

@@ -89,8 +89,8 @@ class User extends Model
         $value = $value ? $value : (isset($data['id']) ? $data['id'] : 0);
         $num = 0;
         if (!empty($value)) {
-            $where['user_id'] = $value;
-            $num = db('look_log')->where($where)->count();
+            $where['visit_user_id'] = $value;
+            $num = db('user_visitlist')->where($where)->count();
         }
         return $num;
     }