1、修复场景获客数据统计问题
2、修复默认头像破图问题 3、修复健康分展示问题 4、修复获客场景_好友迁移编辑会跳到其他类目问题
This commit is contained in:
@@ -216,7 +216,7 @@ class Adapter implements WeChatServiceInterface
|
||||
// 根据健康分判断24h内加的好友数量限制
|
||||
$healthScoreService = new WechatAccountHealthScoreService();
|
||||
$healthScoreInfo = $healthScoreService->getHealthScore($accountId);
|
||||
|
||||
|
||||
// 如果健康分记录不存在,先计算一次
|
||||
if (empty($healthScoreInfo)) {
|
||||
try {
|
||||
@@ -228,10 +228,10 @@ class Adapter implements WeChatServiceInterface
|
||||
$maxAddFriendPerDay = 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 获取每日最大加人次数(基于健康分)
|
||||
$maxAddFriendPerDay = $healthScoreInfo['maxAddFriendPerDay'] ?? 5;
|
||||
|
||||
|
||||
// 如果健康分为0或很低,不允许添加好友
|
||||
if ($maxAddFriendPerDay <= 0) {
|
||||
Log::info("账号健康分过低,不允许添加好友 (accountId: {$accountId}, wechatId: {$wechatId}, healthScore: " . ($healthScoreInfo['healthScore'] ?? 0) . ")");
|
||||
@@ -367,6 +367,10 @@ class Adapter implements WeChatServiceInterface
|
||||
if (!empty($wechatId)) {
|
||||
$isFriend = $this->checkIfIsWeChatFriendByPhone($wechatId, $task['phone']);
|
||||
if ($isFriend) {
|
||||
// 更新状态为5(已通过未发消息)
|
||||
Db::name('task_customer')
|
||||
->where('id', $task['id'])
|
||||
->update(['status' => 5,'passTime' => time(), 'updateTime' => time()]);
|
||||
$passedWeChatId = $wechatId;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user