更新
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user