|
...
|
...
|
@@ -63,10 +63,10 @@ class MessagePush extends Base |
|
|
|
$model->type = self::TYPE_INQUIRY;
|
|
|
|
$model->ref_ids = $id;
|
|
|
|
$model->content = '[' . date('H:i', strtotime($submit_at)) . '] 您的全球搜网站收到来自【' . $country . $name . '】的询盘信息,请登录后台或APP进行查看!';
|
|
|
|
$model->send_time = $submit_at;
|
|
|
|
}else{
|
|
|
|
//定时发送时间
|
|
|
|
$send_time = $hour >= 9 ? date('Y-m-d 09:00:00', strtotime('+1 day')) : date('Y-m-d 09:00:00');
|
|
|
|
|
|
|
|
$send_time = $hour >= 9 ? date('Y-m-d 09:00:00', strtotime($submit_at . '+1 day')) : date('Y-m-d 09:00:00', strtotime($submit_at));
|
|
|
|
$model = self::where('project_id', $project_id)->where('type', self::TYPE_INQUIRY)->where('send_time', $send_time)->first();
|
|
|
|
if(!$model){
|
|
|
|
$model = new self();
|
...
|
...
|
|