diff --git a/app/common/service/SysPortService.php b/app/common/service/SysPortService.php index a4ed6cd..530fcbf 100644 --- a/app/common/service/SysPortService.php +++ b/app/common/service/SysPortService.php @@ -28,7 +28,7 @@ class SysPortService if($params['scene'] == 'domestic'){ $where['country_id'] = 45; }else{ - $where['country_id'] = ['<>', 45]; + $where[] = ['country_id', '<>', 45]; } } return $this->logic->getList($where); diff --git a/app/common/utils/email/Emails.php b/app/common/utils/email/Emails.php index e910504..0742274 100644 --- a/app/common/utils/email/Emails.php +++ b/app/common/utils/email/Emails.php @@ -436,7 +436,7 @@ class Emails // 初始化 UID 轮询器 $uidRotator = new \app\common\utils\RedisUidRotator('email_parsed_result_20250804'); - $uidRotator->setUids([64, 63, 83, 93, 108, 132, 145, 150, 143, 156, 157, 158], false); + $uidRotator->setUids([64, 63, 93, 108, 132, 145, 150, 143, 156, 157, 158], false); EmailParsedResult::where('status', 0) ->chunkById($batchSize, function ($records) use ($delaySeconds, $throttleAfter, $throttleSeconds, $enterUser, $channelInfo, $uidRotator) { @@ -454,7 +454,7 @@ class Emails // 获取分配的用户信息 $recipientInfo = User::where('id', $assignedUid)->where('status', 1)->first(); if (!$recipientInfo) { - flg("用户ID=" . $assignedUid . " 不存在或已离职跳过分配,需要手动移除 UID"); + flg("用户ID=" . $assignedUid . " 已离职 跳过自动分配,需要手动移除 UID"); $assignedUid = $uidRotator->next(); $recipientInfo = User::where('id', $assignedUid)->where('status', 1)->first();