mirror of
https://github.com/lyz05/danmaku.git
synced 2026-04-27 12:19:56 +08:00
fix: 修复一处腾讯视频、爱奇艺解析错误
fix: 错误日志返回Object
This commit is contained in:
@@ -51,13 +51,15 @@ async function danmakuQuery(date) {
|
||||
}
|
||||
|
||||
function danmakuErrorAdd(obj) {
|
||||
const {ip, url, error} = obj;
|
||||
let {ip, url, err} = obj;
|
||||
const DanmakuErrorObject = AV.Object.extend('DanmakuError');
|
||||
const record = new DanmakuErrorObject();
|
||||
record.set('remoteIP', ip);
|
||||
record.set('url', url);
|
||||
//TODO: 转换成object
|
||||
record.set('error', JSON.stringify(error));
|
||||
err = JSON.stringify(err, Object.getOwnPropertyNames(err))
|
||||
err = JSON.parse(err)
|
||||
record.set('err', err);
|
||||
record.save().then()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user