|
...
|
...
|
@@ -128,13 +128,13 @@ class InquiryForwardLogic extends BaseLogic |
|
|
|
if ($area_hour < 18) {
|
|
|
|
//当地时间为18点前
|
|
|
|
$area_day = date('Y-m-d', $area_timestamp);
|
|
|
|
$area_start_hour = $area_hour < 10 ? 10 : $area_hour;
|
|
|
|
$area_start_time = $area_hour < 10 ? '10:00:00' : date('H:i:s', $area_timestamp);
|
|
|
|
} else {
|
|
|
|
//当地时间为18点后,顺延一天
|
|
|
|
$area_day = date('Y-m-d', strtotime($area_time . ' +1 day'));
|
|
|
|
$area_start_hour = 10;
|
|
|
|
$area_start_time = '10:00:00';
|
|
|
|
}
|
|
|
|
$start_time = strtotime($area_day . ' ' . $area_start_hour . ':00:00');
|
|
|
|
$start_time = strtotime($area_day . ' ' . $area_start_time);
|
|
|
|
$end_time = strtotime($area_day . ' 18:00:00');
|
|
|
|
$random_timestamp = mt_rand($start_time, $end_time);
|
|
|
|
$area_date = date('Y-m-d H:i:s', $random_timestamp);
|
...
|
...
|
|