From 7664e2e4d31fbbcc01ebc3a09f007164a41fa4c3 Mon Sep 17 00:00:00 2001 From: chenjing <28122123@qq.com> Date: Mon, 25 Sep 2023 13:01:13 +0800 Subject: [PATCH] update response for checkkeyword --- app/controllers/accounts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 63918232a..ea26f1bd5 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -362,7 +362,7 @@ class AccountsController < ApplicationController def check_keywords text = params[:text].to_s.each_char.select { |c| c.bytes.first < 240 }.join('') - data = ReversedKeyword.check_exists?(text) + data = ! ReversedKeyword.check_exists?(text) result = { status: 0, data: data,