流量池添加及场景获客统计数据

This commit is contained in:
wong
2025-08-15 15:37:00 +08:00
parent e53f31487e
commit 25ae2458f0
6 changed files with 351 additions and 70 deletions

View File

@@ -240,8 +240,9 @@ class Adapter implements WeChatServiceInterface
->where('id', $task['id'])
->update([
'status' => $friendAddTaskCreated ? 1 : 3,
'fail_reason' => $friendAddTaskCreated ? '' : '已经是好友了',
'fail_reason' => '',
'processed_wechat_ids' => $task['processed_wechat_ids'],
'addTime' => time(),
'updateTime' => time()
]);
// ~~不用管,回头再添加再判断即可~~
@@ -298,7 +299,7 @@ class Adapter implements WeChatServiceInterface
Db::name('task_customer')
->where('id', $task['id'])
->update(['status' => 4, 'updateTime' => time()]);
->update(['status' => 4,'passTime' => time(), 'updateTime' => time()]);
$wechatFriendRecord = $this->getWeChatAccoutIdAndFriendIdByWeChatIdAndFriendPhone($passedWeChatId, $task['phone']);
$msgConf = is_string($task_info['msgConf']) ? json_decode($task_info['msgConf'], 1) : $task_info['msgConf'];