更新 体检引导优化

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

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

Loading…
Cancel
Save