From 39875a81f89fb8a1a08b177b587a716d688985f9 Mon Sep 17 00:00:00 2001 From: Yuanzhe Liu Date: Mon, 26 Dec 2022 13:55:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E4=B8=AD=E6=98=BE=E7=A4=BAip=E5=9C=B0=E7=90=86=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/leancloud.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/leancloud.js b/utils/leancloud.js index 1f05812..13c18d3 100644 --- a/utils/leancloud.js +++ b/utils/leancloud.js @@ -42,7 +42,7 @@ async function danmakuQuery(date) { function add(className,obj) { if (obj.ip || obj.remoteIP) - obj.ipCountry = getipCountry(obj.ip | obj.remoteIP); + obj.ipCountry = getipCountry(obj.ip || obj.remoteIP); const classInstance = AV.Object.extend(className); const record = new classInstance(); for (const key of Object.keys(obj)){