This commit is contained in:
Your Name
2026-08-20 17:56:08 +08:00
parent 5794f60c5d
commit cc6173e5b0
393 changed files with 1320 additions and 1041 deletions
@@ -447,11 +447,18 @@ class DiagnosisController extends BaseAdminController
set_time_limit(120);
$diagnosisId = (int)$this->request->get('diagnosis_id', 0);
if ($diagnosisId <= 0) {
return $this->fail('诊单ID不能为空');
}
$onlyArchived = (int)$this->request->get('only_archived', 0) === 1;
$result = DiagnosisLogic::getImChatMessagesForDiagnosis($diagnosisId, $onlyArchived);
if ($diagnosisId <= 0) {
return $this->fail('诊单ID不能为空');
}
if (!DiagnosisLogic::canViewReadonlyDiagnosis(
$diagnosisId,
(int) $this->adminId,
$this->adminInfo
)) {
return $this->fail(DiagnosisLogic::getError() ?: '诊单不存在或无权访问');
}
$onlyArchived = (int)$this->request->get('only_archived', 0) === 1;
$result = DiagnosisLogic::getImChatMessagesForDiagnosis($diagnosisId, $onlyArchived);
if ($result === false) {
return $this->fail(DiagnosisLogic::getError());
}
@@ -468,11 +475,18 @@ class DiagnosisController extends BaseAdminController
if ($diagnosisId <= 0) {
$diagnosisId = (int)$this->request->get('diagnosis_id', 0);
}
if ($diagnosisId <= 0) {
return $this->fail('诊单ID不能为空');
}
register_shutdown_function(function () use ($diagnosisId) {
if ($diagnosisId <= 0) {
return $this->fail('诊单ID不能为空');
}
if (!DiagnosisLogic::canViewReadonlyDiagnosis(
$diagnosisId,
(int) $this->adminId,
$this->adminInfo
)) {
return $this->fail(DiagnosisLogic::getError() ?: '诊单不存在或无权访问');
}
register_shutdown_function(function () use ($diagnosisId) {
try {
@set_time_limit(300);
ignore_user_abort(true);