This commit is contained in:
Your Name
2026-06-03 11:39:36 +08:00
parent a3bae1555a
commit ec4e0b9f29
22 changed files with 1353 additions and 646 deletions
@@ -457,6 +457,10 @@ class TcmController extends BaseApiController
return ['ok' => false, 'error' => '诊单不存在'];
}
if ((int) ($diagnosis['show_card'] ?? 1) !== 1) {
return ['ok' => false, 'error' => '该就诊卡已在统计端隐藏'];
}
// 通过 diagnosis_view_records 校验当前小程序用户与该诊单的归属关系
// 该表是「就诊卡列表」的来源(参考 DiagnosisLogic::getCardList
$owned = \think\facade\Db::name('diagnosis_view_records')