更新 体检引导优化

main
鹿和sa0ChunLuyu 1 year ago
parent 03c4307f29
commit d670d86a13

@ -130,12 +130,14 @@ class FenzhenController extends Controller
} }
} }
$end_status = 0; $end_status = 0;
$tip_check_show = false;
foreach ($time_line as $time_line_item) { foreach ($time_line as $time_line_item) {
if ($time_line_item['status'] == 4) { if ($time_line_item['status'] == 4) {
$end_status += 1; $end_status += 1;
} }
} }
if (count($time_line) <= $end_status + 1) { if (count($time_line) <= $end_status + 1) {
$tip_check_show = true;
$time_line[count($time_line) - 1]['status'] = 4; $time_line[count($time_line) - 1]['status'] = 4;
} }
// -1 报告未出 不能预约 报告解读 不显示 // -1 报告未出 不能预约 报告解读 不显示
@ -254,10 +256,12 @@ class FenzhenController extends Controller
$res['data']['end_time'] = date('H:i', $last_time); $res['data']['end_time'] = date('H:i', $last_time);
$check_tip = false; $check_tip = false;
if ($error_day == -1) { if ($error_day == -1) {
$et = $info->appointment_date . ' ' . $res['data']['end_time'] . ':00'; if ($tip_check_show) {
// $et = '2024-10-10 00:00:00'; $et = $info->appointment_date . ' ' . $res['data']['end_time'] . ':00';
$check_tip = (time() - strtotime($et)) > (60 * 20); // $et = '2024-10-10 00:00:00';
$check_tip = json_encode([time() - strtotime($et), 60 * 20], JSON_UNESCAPED_UNICODE); $check_tip = (time() - strtotime($et)) > (60 * 20);
// $check_tip = json_encode([time() - strtotime($et), 60 * 20], JSON_UNESCAPED_UNICODE);
}
} }
return \Yz::Return(true, "获取成功", [ return \Yz::Return(true, "获取成功", [
'info' => [ 'info' => [

Loading…
Cancel
Save