Skip to content

Commit

Permalink
fix: 修复线下支付弹窗问题,修复对话中断问题,修复余额不足的提示
Browse files Browse the repository at this point in the history
  • Loading branch information
0daynick committed Jul 26, 2023
1 parent 68b278d commit ac8660a
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 95 deletions.
4 changes: 0 additions & 4 deletions gptserver/app/Http/Control/Web/ChatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,9 @@ public function process(ChatRequest $request)
/* @var KeywordDto $keywordDto */
$keywordDto = Config::toDto(Config::KEYWORD);
if ($keywordDto->enable) {

$keywords = json_decode($keywordDto->keywords, true);

$pattern = "/".implode("|", $keywords)."/i";

preg_match_all($pattern, $request->input('message'), $matches);

throw_if($matches[0], LogicException::class, ErrCode::CHAT_CONTAINS_PROHIBITED_WORDS);
}

Expand Down
Loading

0 comments on commit ac8660a

Please sign in to comment.