feat: add scoped read-only audio preview and isolated Dify transport
This commit is contained in:
@@ -40,8 +40,9 @@ final class FollowupAudioAccess
|
||||
return in_array(strtolower($permission), array_map('strtolower', $permissions), true);
|
||||
}
|
||||
|
||||
public static function diagnosis(int $diagnosisId, int $actor, array $info, bool $daily = false): array
|
||||
public static function diagnosis(int $diagnosisId, int $actor, array $info, bool $daily = false, bool $enforcePreviewScope = true): array
|
||||
{
|
||||
if ($enforcePreviewScope) { FollowupAudioGate::assertScope($diagnosisId, $actor); }
|
||||
if ($diagnosisId <= 0) {
|
||||
throw new DomainException('诊单不存在或无权操作');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user