|
...
|
...
|
@@ -979,14 +979,13 @@ class RelayInquiry extends Command |
|
|
|
*/
|
|
|
|
public function delay_seconds($inquiry_date, $domain, $task)
|
|
|
|
{
|
|
|
|
$inquiry_date = Carbon::make($inquiry_date);
|
|
|
|
//当天的
|
|
|
|
if($inquiry_date->isToday()){
|
|
|
|
if(date('Y-m-d', strtotime($inquiry_date)) == date('Y-m-d')){
|
|
|
|
//广告投放日(周一、二、三、四) 第一封询盘100%及时推送
|
|
|
|
$is_timely = true; //是否及时推送
|
|
|
|
if(in_array($inquiry_date->weekday(), [1,2,3,4])) {
|
|
|
|
if(in_array(date('w'), [1,2,3,4])) {
|
|
|
|
//是否今天的第一封询盘
|
|
|
|
$detail = ReInquiryDetail::where('re_website', $domain)->where('start_at', '>=', $inquiry_date->startOfDay()->toDatetimeString())->first();
|
|
|
|
$detail = ReInquiryDetail::where('re_website', $domain)->where('start_at', '>=', date('Y-m-d 00:00:00'))->first();
|
|
|
|
if($detail){
|
|
|
|
$is_timely = false; //只有周一到周四的非第一封询盘 根据概率及时推送
|
|
|
|
}
|
...
|
...
|
|