Compare commits
2 Commits
963721e00b
...
a3a0ceef17
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3a0ceef17 | ||
|
|
04b55eb699 |
2
.env
2
.env
@@ -90,7 +90,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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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])) {
|
||||
|
||||
@@ -34,6 +34,6 @@ class FillExpertCountry
|
||||
$job->delete();
|
||||
|
||||
// 链式:下一条也不透传固定 URL,继续按条动态选模型
|
||||
$service->enqueueNextCountryFill(1, $queue, '');
|
||||
// $service->enqueueNextCountryFill(5, $queue, '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user