全局配置服务功能提交
This commit is contained in:
@@ -179,17 +179,14 @@ class FriendTransferService
|
||||
'alive' => 1
|
||||
])
|
||||
->column('id');
|
||||
|
||||
if (empty($accountIds)) {
|
||||
Log::warning("批量迁移失败:没有可用的在线账号,账号ID={$currentAccountId}");
|
||||
return ['transferred' => 0, 'failed' => count($friends)];
|
||||
}
|
||||
|
||||
// 排除当前账号,选择其他账号
|
||||
$availableAccountIds = array_filter($accountIds, function($id) use ($currentAccountId) {
|
||||
return $id != $currentAccountId;
|
||||
});
|
||||
|
||||
if (empty($availableAccountIds)) {
|
||||
Log::warning("批量迁移失败:没有其他可用的在线账号,账号ID={$currentAccountId}");
|
||||
return ['transferred' => 0, 'failed' => count($friends)];
|
||||
@@ -440,7 +437,6 @@ class FriendTransferService
|
||||
}
|
||||
$friendsByAccount[$accountId][] = $friend;
|
||||
}
|
||||
|
||||
// 按账号分组批量处理
|
||||
foreach ($friendsByAccount as $accountId => $accountFriends) {
|
||||
$batchResult = $this->transferFriendsBatch(
|
||||
|
||||
Reference in New Issue
Block a user