mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 13:01:14 +00:00
feat: 加了一些暂时不能使用的代码
This commit is contained in:
parent
27fa319b2a
commit
ebf461f2fd
12
src/common/utils/Packet.ts
Normal file
12
src/common/utils/Packet.ts
Normal 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");
|
||||
}
|
||||
}
|
2
src/core
2
src/core
@ -1 +1 @@
|
||||
Subproject commit 4df3fea47c518eae6d9f91512f50e0c852a8b1ec
|
||||
Subproject commit 282fb21802c1abf196899d684468ee0cbf09dbec
|
@ -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);
|
Loading…
Reference in New Issue
Block a user