mirror of
https://github.com/Simplxss/SignerServer.git
synced 2024-11-21 00:37:53 +08:00
fix: extra
This commit is contained in:
parent
788cb31c00
commit
a91e64a51b
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
.vscode
|
.vscode
|
||||||
build
|
build
|
||||||
install
|
*.so
|
||||||
|
*.dll
|
61
load.js
61
load.js
@ -1,13 +1,64 @@
|
|||||||
const path = require('node:path');
|
const path = require('node:path');
|
||||||
const fs = require('node:fs');
|
|
||||||
const os = require('node:os');
|
const os = require('node:os');
|
||||||
|
|
||||||
const exePath = path.dirname(process.execPath);
|
const exePath = path.dirname(process.execPath);
|
||||||
|
|
||||||
|
var QQWrapper;
|
||||||
|
const qqPkgInfo = require(path.join(exePath, "resources/app/package.json"));
|
||||||
|
var appid;
|
||||||
|
var qua;
|
||||||
if (os.platform() === "win32") {
|
if (os.platform() === "win32") {
|
||||||
let configVersionInfoPath = path.join(exePath, "resources/app/versions/config.json");
|
QQWrapper = require(path.join(exePath, "resources/app/versions", qqPkgInfo.version, "wrapper.node"));
|
||||||
const qqVersionConfigInfo = JSON.parse(fs.readFileSync(configVersionInfoPath).toString());
|
appid = "537213803";
|
||||||
require(path.join(exePath, "resources/app/versions", qqVersionConfigInfo.curVersion, "wrapper.node"));
|
qua = `V1_WIN_NQ_${qqVersionConfigInfo.curVersion.replace("-", "_")}_GW_B`;
|
||||||
} else {
|
} else {
|
||||||
require(path.join(exePath, "resources/app/wrapper.node"));
|
QQWrapper = require(path.join(exePath, "resources/app/wrapper.node"));
|
||||||
|
appid = "537213827";
|
||||||
|
qua = qqPkgInfo.qua;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class GlobalAdapter {
|
||||||
|
onLog(...args) {
|
||||||
|
}
|
||||||
|
onGetSrvCalTime(...args) {
|
||||||
|
}
|
||||||
|
onShowErrUITips(...args) {
|
||||||
|
}
|
||||||
|
fixPicImgType(...args) {
|
||||||
|
}
|
||||||
|
getAppSetting(...args) {
|
||||||
|
}
|
||||||
|
onInstallFinished(...args) {
|
||||||
|
}
|
||||||
|
onUpdateGeneralFlag(...args) {
|
||||||
|
}
|
||||||
|
onGetOfflineMsg(...args) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const dataPathGlobal = "/root"
|
||||||
|
|
||||||
|
const engine = new QQWrapper.NodeIQQNTWrapperEngine();
|
||||||
|
engine.initWithDeskTopConfig({
|
||||||
|
base_path_prefix: "",
|
||||||
|
platform_type: 3,
|
||||||
|
app_type: 4,
|
||||||
|
app_version: qqPkgInfo.version,
|
||||||
|
os_version: os.release(),
|
||||||
|
use_xlog: true,
|
||||||
|
qua: qua,
|
||||||
|
global_path_config: {
|
||||||
|
desktopGlobalPath: dataPathGlobal
|
||||||
|
},
|
||||||
|
thumb_config: { maxSide: 324, minSide: 48, longLimit: 6, density: 2 }
|
||||||
|
}, new QQWrapper.NodeIGlobalAdapter(new GlobalAdapter()));
|
||||||
|
|
||||||
|
const loginService = new QQWrapper.NodeIKernelLoginService();
|
||||||
|
loginService.initConfig({
|
||||||
|
machineId: "",
|
||||||
|
appid: appid,
|
||||||
|
platVer: os.release(),
|
||||||
|
commonPath: dataPathGlobal,
|
||||||
|
clientVer: qqPkgInfo.version,
|
||||||
|
hostName: os.hostname()
|
||||||
|
});
|
@ -27,7 +27,8 @@
|
|||||||
#if defined(_X64_ARCH_)
|
#if defined(_X64_ARCH_)
|
||||||
std::map<std::string, uint64_t> addrMap = {
|
std::map<std::string, uint64_t> addrMap = {
|
||||||
{"9.9.2-16183", 0x2E0D0},
|
{"9.9.2-16183", 0x2E0D0},
|
||||||
{"9.9.9-23361", 0x2EB50}};
|
{"9.9.9-23361", 0x2EB50},
|
||||||
|
{"9.9.9-23424", 0x2EB50}};
|
||||||
#elif defined(_X86_ARCH_)
|
#elif defined(_X86_ARCH_)
|
||||||
std::map<std::string, uint64_t> addrMap = {
|
std::map<std::string, uint64_t> addrMap = {
|
||||||
{"9.9.2-15962", 0x2BD70},
|
{"9.9.2-15962", 0x2BD70},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user