更新
This commit is contained in:
@@ -18,7 +18,7 @@ use think\facade\Log;
|
||||
* php think qywx:sync-customer --force --today # 仅落库「今日首次加为外部联系人」的客户(app.default_timezone)
|
||||
* php think qywx:sync-customer --force --today --today-any-follow # 任一条跟进在今天即落库(旧逻辑,命中多)
|
||||
*
|
||||
* 说明:企微「客户列表」API 不支持按时间筛选;--today 只减少写库条数。拉取侧默认用 batch/get_by_user 批量详情(project.qywx_sync_use_batch_detail)加速。
|
||||
* 说明:企微无「只拉今日客户」接口,--today 仍需翻完各成员 batch 分页;开启后会流式筛候选 id,只对候选 get+写库(省内存与 UPSERT)。增量实时请配客户联系回调。
|
||||
*
|
||||
* 配置crontab(每小时执行一次):
|
||||
* 0 * * * * cd /path/to/project && php think qywx:sync-customer >> /dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user