Skip to content

Commit 268cbfc

Browse files
committed
fix(MagicFlowExecuteAppService): remove unnecessary operation validation in getFlow method
1 parent 254129c commit 268cbfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/magic-service/app/Application/Flow/Service/MagicFlowExecuteAppService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function apiChat(MagicFlowApiChatDTO $apiChatDTO): array
131131
$operator->setRealName($account?->getRealName());
132132
$operator->setSourceId($apiChatDTO->getShareOptions('source_id', 'sk_flow'));
133133

134-
$magicFlow = $this->getFlow($flowDataIsolation, $apiChatDTO->getFlowCode(), [Type::Main], operationValidate: 'read');
134+
$magicFlow = $this->getFlow($flowDataIsolation, $apiChatDTO->getFlowCode(), [Type::Main]);
135135
// 设置指令
136136
$messageEntity = new TextMessage(['content' => $apiChatDTO->getMessage()]);
137137
if (! empty($apiChatDTO->getInstruction())) {

0 commit comments

Comments
 (0)