mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 03:32:20 +08:00
feat(core): pass apiData
in onDanmakuHandshake
This commit is contained in:
parent
8a81450d80
commit
efd3ac2b47
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using Jint;
|
||||
using Jint.Native.Json;
|
||||
using Jint.Native.Object;
|
||||
using Jint.Runtime.Descriptors;
|
||||
|
||||
|
@ -18,6 +19,9 @@ namespace BililiveRecorder.Core.Scripting.Runtime
|
|||
this.FastSetProperty("areaParent", new PropertyDescriptor(room.AreaNameParent, false, true, false));
|
||||
this.FastSetProperty("areaChild", new PropertyDescriptor(room.AreaNameChild, false, true, false));
|
||||
this.FastSetProperty("objectId", new PropertyDescriptor(room.ObjectId.ToString(), false, true, false));
|
||||
|
||||
var apiData = new JsonParser(engine).Parse(room.RawBilibiliApiJsonData?.ToString() ?? "{}");
|
||||
this.FastSetProperty("apiData", new PropertyDescriptor(apiData, false, true, false));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user