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