推广频率更改,半个月发一封是可行的
This commit is contained in:
@@ -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']);
|
||||||
|
|||||||
Reference in New Issue
Block a user