From 04b55eb6998c4316337b72ce07460c1d95c1ffbd Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Mon, 3 Aug 2026 18:06:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=9B=B4=E6=96=B0+=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8F=91=E9=82=AE=E4=BB=B6=E7=9A=84=E9=97=B4=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- application/api/controller/EmailClient.php | 4 ++-- application/api/controller/PromotionFactory.php | 5 ++++- application/api/job/FillExpertCountry.php | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 27d789fe..aa55d762 100644 --- a/.env +++ b/.env @@ -88,7 +88,7 @@ citation_chat_timeout = 120 [expert_country] chat_url_local = http://125.39.141.154:10002/v1/chat/completions chat_url_remote = http://chat.taimed.cn/v1/chat/completions -context_limit = 2000 +context_limit = 200 [scopus] api_key = 54f915fc96e86b94ae8722ce7fdd69c7 diff --git a/application/api/controller/EmailClient.php b/application/api/controller/EmailClient.php index 5d379ad6..45df02e3 100644 --- a/application/api/controller/EmailClient.php +++ b/application/api/controller/EmailClient.php @@ -2405,8 +2405,8 @@ class EmailClient extends Base 'bounce_count' => 0, 'state' => 0, 'smtp_ids' => $smtpIds, - 'min_interval' => 30, - 'max_interval' => 60, + 'min_interval' => max(intval($factory['min_interval']),30), + 'max_interval' => max(intval($factory['max_interval']),60), 'max_bounce_rate' => 5, 'no_repeat_days' => $noRepeatDays, 'send_start_hour' => 8, diff --git a/application/api/controller/PromotionFactory.php b/application/api/controller/PromotionFactory.php index 36f067c7..8aa293ab 100644 --- a/application/api/controller/PromotionFactory.php +++ b/application/api/controller/PromotionFactory.php @@ -128,6 +128,8 @@ class PromotionFactory extends Base 'fetch_ids' => trim(isset($data['fetch_ids']) ? (string)$data['fetch_ids'] : ''), 'target_partitions' => trim(isset($data['target_partitions']) ? (string)$data['target_partitions'] : ''), 'target_country_ids' => trim(isset($data['target_country_ids']) ? (string)$data['target_country_ids'] : ''), + 'min_interval' => intval(isset($data['min_interval']) ? $data['min_interval'] : 0), + 'max_interval' => intval(isset($data['max_interval']) ? $data['max_interval'] : 0), 'state' => 0, 'ctime' => $now, ]); @@ -185,9 +187,10 @@ class PromotionFactory extends Base $allowedFields = [ 'type', 'expert_type', 'email_ids', 'send_count', 'template_id', 'style_id', 'fetch_ids', + 'min_interval', 'max_interval', 'target_partitions', 'target_country_ids', ]; - $intFields = ['type', 'expert_type', 'send_count', 'template_id', 'style_id']; + $intFields = ['type', 'expert_type', 'send_count', 'template_id', 'style_id', 'min_interval', 'max_interval']; foreach ($allowedFields as $f) { if (isset($data[$f])) { diff --git a/application/api/job/FillExpertCountry.php b/application/api/job/FillExpertCountry.php index 5491c410..700824ec 100644 --- a/application/api/job/FillExpertCountry.php +++ b/application/api/job/FillExpertCountry.php @@ -34,6 +34,6 @@ class FillExpertCountry $job->delete(); // 链式:下一条也不透传固定 URL,继续按条动态选模型 - $service->enqueueNextCountryFill(1, $queue, ''); +// $service->enqueueNextCountryFill(5, $queue, ''); } }