正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -982,17 +982,17 @@ class RelayInquiry extends Command | @@ -982,17 +982,17 @@ class RelayInquiry extends Command | ||
| 982 | $inquiry_date = Carbon::make($inquiry_date); | 982 | $inquiry_date = Carbon::make($inquiry_date); |
| 983 | //当天的 | 983 | //当天的 |
| 984 | if($inquiry_date->isToday()){ | 984 | if($inquiry_date->isToday()){ |
| 985 | - //广告投放日(周一、二、三) 第一封询盘100%及时推送 | ||
| 986 | - $is_first = false; | ||
| 987 | - if(in_array($inquiry_date->weekday(), [1,2,3])) { | 985 | + //广告投放日(周一、二、三、四) 第一封询盘100%及时推送 |
| 986 | + $is_timely = true; //是否及时推送 | ||
| 987 | + if(in_array($inquiry_date->weekday(), [1,2,3,4])) { | ||
| 988 | //是否今天的第一封询盘 | 988 | //是否今天的第一封询盘 |
| 989 | $detail = ReInquiryDetail::where('re_website', $domain)->where('start_at', '>=', $inquiry_date->startOfDay()->toDatetimeString())->first(); | 989 | $detail = ReInquiryDetail::where('re_website', $domain)->where('start_at', '>=', $inquiry_date->startOfDay()->toDatetimeString())->first(); |
| 990 | - if(!$detail){ | ||
| 991 | - $is_first = true; | 990 | + if($detail){ |
| 991 | + $is_timely = false; //只有周一到周四的非第一封询盘 根据概率及时推送 | ||
| 992 | } | 992 | } |
| 993 | } | 993 | } |
| 994 | - //非广告投放日第一封询盘 | ||
| 995 | - if(!$is_first && $task->second_push_rate != 100){ | 994 | + //概率及时推送 |
| 995 | + if(!$is_timely && $task->second_push_rate != 100){ | ||
| 996 | //按概率 | 996 | //按概率 |
| 997 | $res = $this->get_rand([$task->second_push_rate, 100 - $task->second_push_rate]); | 997 | $res = $this->get_rand([$task->second_push_rate, 100 - $task->second_push_rate]); |
| 998 | if($res == 1){ | 998 | if($res == 1){ |
-
请 注册 或 登录 后发表评论