私域操盘手 - 微信号列表加友限制长度使用权重数据

This commit is contained in:
柳清爽
2025-05-15 17:10:51 +08:00
parent b55f999de8
commit 2a3abe593f
3 changed files with 20 additions and 7 deletions

View File

@@ -23,9 +23,7 @@ class ActivityWeigth implements WechatAccountWeightResultSetInterface
)
->value('activity');
$activity = json_decode($activity, true);
return $activity->yesterdayMsgCount ?? 0;
return json_decode($activity)->yesterdayMsgCount ?? 0;
}
/**

View File

@@ -23,7 +23,7 @@ class AgeWeight implements WechatAccountWeightResultSetInterface
)
->value('basic');
$basic = json_decode($basic, true);
$basic = json_decode($basic);
// 如果没有设置账号注册时间则默认今天即账号年龄为0
return $basic && isset($basic->registerDate) ? $basic->registerDate : date('Y-m-d', time());