feat: 加了一些暂时不能使用的代码

This commit is contained in:
手瓜一十雪 2024-06-16 16:35:09 +08:00
parent 27fa319b2a
commit ebf461f2fd
3 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,12 @@
// 方案一 MiniApp发包方案
// 前置条件: 处于GUI环境 存在MiniApp
import { NTQQSystemApi } from "@/core";
// 前排提示: 开发验证仅Win平台开展 Linux平台可行 但需要适配
export class MiniAppUtil {
static async RunMiniAppWithGUI() {
process.env.ELECTRON_RUN_AS_NODE = "1";//没用还是得自己用cpp之类的语言写个程序转发参数
return NTQQSystemApi.BootMiniApp(process.execPath, "miniapp://open/1007?url=https%3A%2F%2Fm.q.qq.com%2Fa%2Fs%2Fedd0a83d3b8afe233dfa07adaaf8033f%3Fscene%3D1007%26min_refer%3D10001");
}
}

@ -1 +1 @@
Subproject commit 4df3fea47c518eae6d9f91512f50e0c852a8b1ec
Subproject commit 282fb21802c1abf196899d684468ee0cbf09dbec

View File

@ -37,7 +37,7 @@ import { Data as SysData } from '@/proto/SysMessage';
import { Data as DeviceData } from '@/proto/SysMessage.DeviceChange';
import { OB11FriendPokeEvent, OB11GroupPokeEvent } from './event/notice/OB11PokeEvent';
import { isEqual } from '@/common/utils/helper';
import e from 'express';
import { MiniAppUtil } from '@/common/utils/Packet'
//下面几个其实应该移进Core-Data 缓存实现 但是现在在这里方便
//
@ -571,3 +571,6 @@ export class NapCatOnebot11 {
}
// export const napCatOneBot11 = new NapCatOnebot11();
// setTimeout(() => {
// MiniAppUtil.RunMiniAppWithGUI();
// }, 20000);