浏览代码

浏览记录调整

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;
     }