- Теперь после того как отправка конкретному пользователю произведена, дата...

- Теперь после того как отправка конкретному пользователю произведена, дата следующей рассылки сдвигается на 1 неделю
parent dc45e9c6
......@@ -139,6 +139,12 @@ class DefaultController extends BaseController
TriggerSchedule::sendMessage($email, $template_id, $templateData, null);
}
}
$updatedDate=new \DateTime();
$updatedDate->modify('+1 week');
/** @var User $user */
$user=User::findOne($this->id);
$user->delivery_date = $updatedDate->format('Y-m-d');
$user->save(false);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment