作者 刘锟

update

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