From d5a541611d1ceb278c595f6b80827aab0c8b8e5f Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Wed, 9 Jul 2025 15:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cunkebao/controller/ContentLibraryController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Server/application/cunkebao/controller/ContentLibraryController.php b/Server/application/cunkebao/controller/ContentLibraryController.php index 9b048c3f4..21389fc45 100644 --- a/Server/application/cunkebao/controller/ContentLibraryController.php +++ b/Server/application/cunkebao/controller/ContentLibraryController.php @@ -863,6 +863,7 @@ class ContentLibraryController extends Controller 'message' => '没有指定要采集的好友' ]; } + $friendData = []; try { $toAccountId = ''; $username = Env::get('api.username', ''); @@ -890,6 +891,7 @@ class ContentLibraryController extends Controller $totalMomentsCount = 0; foreach ($friends as $friend) { + $friendData = $friend; if (!empty($username) && !empty($password)) { //执行切换好友命令 $automaticAssign = new AutomaticAssign(); @@ -1013,6 +1015,12 @@ class ContentLibraryController extends Controller ]; } catch (\Exception $e) { + + $cacheFriend = $friendData; + $cacheFriend['friendId'] = $friend['id']; + artificialAllotWechatFriend($friend); + + return [ 'status' => 'error', 'message' => '采集过程发生错误: ' . $e->getMessage()