合并分支 'zhl' 到 'master'
询盘消息推送时间调整到8点 查看合并请求 !2313
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -66,7 +66,7 @@ class MessagePush extends Base | @@ -66,7 +66,7 @@ class MessagePush extends Base | ||
| 66 | //9-21 点,每条消息及时通知 | 66 | //9-21 点,每条消息及时通知 |
| 67 | //21-第二天 9 点,整合一起通知 | 67 | //21-第二天 9 点,整合一起通知 |
| 68 | $hour = date('H', strtotime($submit_at)); | 68 | $hour = date('H', strtotime($submit_at)); |
| 69 | - if(($hour >= 9 && $hour < 21) || in_array($project_id, $special_project_ids)) { | 69 | + if(($hour >= 8 && $hour < 21) || in_array($project_id, $special_project_ids)) { |
| 70 | $model = new self(); | 70 | $model = new self(); |
| 71 | $model->project_id = $project_id; | 71 | $model->project_id = $project_id; |
| 72 | $model->friend_id = $friend_id; | 72 | $model->friend_id = $friend_id; |
| @@ -76,7 +76,7 @@ class MessagePush extends Base | @@ -76,7 +76,7 @@ class MessagePush extends Base | ||
| 76 | $model->send_time = $submit_at; | 76 | $model->send_time = $submit_at; |
| 77 | }else{ | 77 | }else{ |
| 78 | //定时发送时间 | 78 | //定时发送时间 |
| 79 | - $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)); | 79 | + $send_time = $hour >= 8 ? date('Y-m-d 08:00:00', strtotime($submit_at . '+1 day')) : date('Y-m-d 08:00:00', strtotime($submit_at)); |
| 80 | $model = self::where('project_id', $project_id)->where('type', self::TYPE_INQUIRY)->where('send_time', $send_time)->first(); | 80 | $model = self::where('project_id', $project_id)->where('type', self::TYPE_INQUIRY)->where('send_time', $send_time)->first(); |
| 81 | if(!$model){ | 81 | if(!$model){ |
| 82 | $model = new self(); | 82 | $model = new self(); |
| @@ -86,7 +86,7 @@ class MessagePush extends Base | @@ -86,7 +86,7 @@ class MessagePush extends Base | ||
| 86 | $model->ref_ids = $id; | 86 | $model->ref_ids = $id; |
| 87 | $model->countries = $country; | 87 | $model->countries = $country; |
| 88 | $model->send_time = $send_time; | 88 | $model->send_time = $send_time; |
| 89 | - $model->content = '[09:00] 您的全球搜网站收到来自【' . $country . $name . '】的询盘信息,请登录后台或APP进行查看!'; | 89 | + $model->content = '[08:00] 您的全球搜网站收到来自【' . $country . $name . '】的询盘信息,请登录后台或APP进行查看!'; |
| 90 | }else{ | 90 | }else{ |
| 91 | $ref_ids = explode(',', $model->ref_ids); | 91 | $ref_ids = explode(',', $model->ref_ids); |
| 92 | $ref_ids[] = $id; | 92 | $ref_ids[] = $id; |
| @@ -105,7 +105,7 @@ class MessagePush extends Base | @@ -105,7 +105,7 @@ class MessagePush extends Base | ||
| 105 | $country = implode(',', $countries); | 105 | $country = implode(',', $countries); |
| 106 | } | 106 | } |
| 107 | } | 107 | } |
| 108 | - $model->content = '[09:00] 您的全球搜网站收到来自【' . $country . '】'.$count.'条询盘信息,请登录后台或APP进行查看!'; | 108 | + $model->content = '[08:00] 您的全球搜网站收到来自【' . $country . '】'.$count.'条询盘信息,请登录后台或APP进行查看!'; |
| 109 | } | 109 | } |
| 110 | } | 110 | } |
| 111 | $model->save(); | 111 | $model->save(); |
-
请 注册 或 登录 后发表评论