This commit is contained in:
Your Name
2026-10-22 11:02:57 +08:00
parent d61bb3e117
commit 7982aab721
88 changed files with 9426 additions and 615 deletions
@@ -80,6 +80,16 @@ class AuthMiddleware
// 当前访问路径
$accessUri = strtolower($request->controller() . '/' . $request->action());
// 面诊回放与文字共用读取权限;未登记该接口时也不能走历史放行分支。
if ($accessUri === 'tcm.diagnosis/getcallrecords') {
$uris = $this->formatUrl($adminAuthCache->getAdminUri() ?? []);
if (in_array('tcm.diagnosis/huifang', $uris, true)
|| in_array('tcm.diagnosis/getcallrecords', $uris, true)) {
return $next($request); // 控制器还会校验当前诊单的数据域。
}
return JsonService::fail('权限不足,无法查看面诊记录');
}
// This group must never use the legacy unregistered-route bypass.
if (str_starts_with($accessUri, 'tcm.followupaudio/')) {
$allowed = ['capabilities', 'uploadsession', 'uploadchunk', 'uploadcomplete',