mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: image rkey
This commit is contained in:
BIN
src/ntqqapi/external/moehook/MoeHoo-linux-x64.node
vendored
Normal file
BIN
src/ntqqapi/external/moehook/MoeHoo-linux-x64.node
vendored
Normal file
Binary file not shown.
BIN
src/ntqqapi/external/moehook/MoeHoo-win32-x64.node
vendored
Normal file
BIN
src/ntqqapi/external/moehook/MoeHoo-win32-x64.node
vendored
Normal file
Binary file not shown.
5
src/ntqqapi/external/moehook/hook.ts
vendored
5
src/ntqqapi/external/moehook/hook.ts
vendored
@@ -1,4 +1,5 @@
|
||||
import {log} from "../../../common/utils";
|
||||
import * as os from "os";
|
||||
|
||||
interface MoeHook {
|
||||
GetRkey: () => string, // Return '&rkey=xxx'
|
||||
@@ -11,7 +12,9 @@ class HookApi {
|
||||
|
||||
constructor() {
|
||||
try {
|
||||
this.moeHook = require('./MoeHook.node');
|
||||
const systemPlatform = os.platform();
|
||||
const cpuArch = os.arch();
|
||||
this.moeHook = require(`./MoeHoo-${systemPlatform}-${cpuArch}.node`);
|
||||
console.log("hook rkey地址", this.moeHook!.HookRkey());
|
||||
} catch (e) {
|
||||
console.log('加载 moehoo 失败', e);
|
||||
|
Reference in New Issue
Block a user