fix: 修复日志中显示ip地理位置信息

This commit is contained in:
Yuanzhe Liu
2022-12-26 13:55:49 +08:00
parent df6eb882ac
commit 39875a81f8

View File

@@ -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)){