fix sync wechat login

This commit is contained in:
xavier
2025-05-14 11:19:19 +08:00
parent bd5d2570df
commit 2d60f23806
2 changed files with 94 additions and 101 deletions

View File

@@ -43,10 +43,14 @@ class SyncWechatDataToCkbTask extends Command
file_put_contents($this->lockFile, time());
try {
$output->writeln("同步任务 sync_wechat_to_ckb 开始");
$ChuKeBaoAdapter = new ChuKeBaoAdapter();
$this->syncWechatAccount($ChuKeBaoAdapter);
$this->syncWechatFriend($ChuKeBaoAdapter);
$this->syncWechatDeviceLoginLog($ChuKeBaoAdapter);
$output->writeln("同步任务 sync_wechat_to_ckb 已结束");
return true;
} catch (\Exception $e) {
Log::error('微信好友同步任务异常:' . $e->getMessage());