This commit is contained in:
Your Name
2026-07-09 17:58:02 +08:00
parent a650747fd3
commit f5a89b4310
290 changed files with 478 additions and 332 deletions
@@ -759,8 +759,8 @@ class DiagnosisLogic extends BaseLogic
return false;
}
if ($offset < 1 || $offset > 20) {
self::setError('起始偏移须在 120 之间');
if ($offset < 0 || $offset > 20) {
self::setError('起始偏移须在 020 之间');
return false;
}
@@ -770,9 +770,12 @@ class DiagnosisLogic extends BaseLogic
return false;
}
$old = (int) ($diagnosis->revisit_slot_start_offset ?? 1);
if ($old < 1) {
$old = 1;
$old = (int) ($diagnosis->revisit_slot_start_offset ?? 0);
if ($old < 0) {
$old = 0;
}
if ($old > 20) {
$old = 20;
}
if ($old === $offset) {
return true;