From 68643a6cb892e91517fd8c8247c9866aece8dfee Mon Sep 17 00:00:00 2001 From: Fang_Zhijian Date: Sat, 18 May 2024 17:42:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=A7=E8=88=AA=E6=B5=B7?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/socket/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket/index.ts b/src/socket/index.ts index 4ff0f17..8eb1911 100644 --- a/src/socket/index.ts +++ b/src/socket/index.ts @@ -57,7 +57,7 @@ function createSocket(authBody: string, wssLinks: string[]) { settings = window.localStorage.getItem("settings") ? ref(JSON.parse(window.localStorage.getItem("settings") || '{}')) : null - if (res.cmd == "LIVE_OPEN_PLATFORM_SEND_GIFT" && res.data.guard_level > settings.value.guardLevel) { + if (res.cmd == "LIVE_OPEN_PLATFORM_SEND_GIFT" && res.data.guard_level >= settings.value.guardLevel) { if (settings && res.data.gift_id.toString() === settings.value.strengthData[0]) { // 牛哇牛哇:加强度1 try {