推广频率更改,半个月发一封是可行的

This commit is contained in:
wangjinlei
2026-06-11 14:51:13 +08:00
parent 249a04c109
commit 60c8b7d532

View File

@@ -2282,7 +2282,7 @@ class EmailClient extends Base
set_time_limit(120); set_time_limit(120);
$sendDate = date('Y-m-d', strtotime('+1 day')); $sendDate = date('Y-m-d', strtotime('+1 day'));
$noRepeatDaysDefault = 30; $noRepeatDaysDefault = 15;
$factories = Db::name('promotion_factory') $factories = Db::name('promotion_factory')
->alias('f') ->alias('f')
@@ -2354,7 +2354,7 @@ class EmailClient extends Base
$expertType = intval($factory['expert_type']); $expertType = intval($factory['expert_type']);
// 内部受众type∈{1..4}):默认 60 天频次(约稿场景);外部 expert 库type=5沿用 30 天 // 内部受众type∈{1..4}):默认 60 天频次(约稿场景);外部 expert 库type=5沿用 30 天
$noRepeatDays = $expertType === 5 ? $noRepeatDaysDefault : 60; $noRepeatDays = $expertType === 5 ? $noRepeatDaysDefault : 20;
if ($expertType === 5) { if ($expertType === 5) {
$fields = $this->resolveFieldsByFetchIds($factory['fetch_ids']); $fields = $this->resolveFieldsByFetchIds($factory['fetch_ids']);