@napuketto/loader 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/host/self-host.cjs +15 -0
- package/package.json +1 -1
package/dist/host/self-host.cjs
CHANGED
|
@@ -1489,6 +1489,21 @@ async function createKernelServices(kernel, ctx, loginResult) {
|
|
|
1489
1489
|
const groupApi = new kernel.GroupApi(session);
|
|
1490
1490
|
const util = ctx.exports?.NodeQQNTWrapperUtil;
|
|
1491
1491
|
const msgApi = new kernel.MsgApi(session, channel, util);
|
|
1492
|
+
try {
|
|
1493
|
+
await msgApi.setOnlineStatus({
|
|
1494
|
+
status: 10,
|
|
1495
|
+
extStatus: 0,
|
|
1496
|
+
batteryStatus: 0,
|
|
1497
|
+
customStatus: {
|
|
1498
|
+
faceId: "",
|
|
1499
|
+
wording: "",
|
|
1500
|
+
faceType: "1"
|
|
1501
|
+
}
|
|
1502
|
+
});
|
|
1503
|
+
log("bootstrap: 在线状态已注册(setStatus status=10)");
|
|
1504
|
+
} catch (statusErr) {
|
|
1505
|
+
log(`bootstrap: 在线状态注册失败(实时消息推送可能不可用): ${errMsg(statusErr)}`);
|
|
1506
|
+
}
|
|
1492
1507
|
const friendApi = new kernel.FriendApi(session, { uidToUin: (uids) => groupApi.uidToUin(uids) });
|
|
1493
1508
|
const groupChannel = new kernel.NTEventChannel("Group");
|
|
1494
1509
|
const groupBridge = new kernel.GroupBridge(session, groupChannel);
|