修改埋点

This commit is contained in:
lccsw
2025-11-08 23:41:05 +08:00
parent b677653340
commit 0895cf366c
3 changed files with 15 additions and 2 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ class Vlog extends HD_Controller
$this->load->model('biz/biz_visit_log_model');
$this->load->model('biz/biz_model');
$this->load->model("sys/sys_admin_model");
$this->load->model('app/licheb/app_licheb_users_model', 'app_user_model');
}
public function index()
@@ -55,7 +56,7 @@ class Vlog extends HD_Controller
$userIds = implode(',', array_unique(array_column($rows, 'uid')));
!$userIds && $userIds = 0;
$users = $this->sys_admin_model->map('id', 'username', ["id in ({$userIds})" => null]);
$users = $this->app_user_model->map('id', 'uname', ["id in ({$userIds})" => null]);
foreach ($rows as $v) {
$v['url'] = explode('?', $v['url'])[0];
$v['biz_name'] = $bizs[$v['biz_id']] ?: '';
+5 -1
View File
@@ -53,8 +53,10 @@
<tr>
<th width="15%"><span>门店</span></th>
<th width="10%"><span>用户</span></th>
<th width="12%"><span>名称</span></th>
<th width="12%"><span>访问接口</span></th>
<!--
<th width=""><span>访问接口</span></th>
-->
<th width="15%"><span>访问时间</span></th>
</tr>
</thead>
@@ -64,8 +66,10 @@
<td style="vertical-align: middle;">{{ item.biz_name }}</td>
<td style="vertical-align: middle;">{{ item.username }}</td>
<td style="vertical-align: middle;">{{ item.title }}</td>
<!--
<td style="vertical-align: middle;overflow: hidden;text-overflow: ellipsis;">{{ item.url }}
</td>
-->
<td style="vertical-align: middle;">{{ item.createTime}}</td>
</tr>
</template>
+8
View File
@@ -16,6 +16,7 @@ class Clues extends Wxapp
$this->load->model('receiver/receiver_clues_model', 'clues_model');
$this->load->model('receiver/receiver_clue_oplogs_model', 'clue_oplogs_model');
$this->load->model('area_model', 'mdArea');
$this->load->model('biz/biz_visit_log_model');
}
public function get()
@@ -61,6 +62,13 @@ class Clues extends Wxapp
$lists[] = $item;
}
}
//增加埋点
$logData = [
'uid' => $this->session['uid'],
'biz_id' => $this->get_biz_id(),
'title' => '线索列表'
];
$this->biz_visit_log_model->addDataPushQueue($logData);
return ['list' => $lists, 'total' => $total];
}