mirror of
https://github.com/Simplxss/SignerServer.git
synced 2024-11-21 00:37:53 +08:00
fix load.js
This commit is contained in:
parent
2c39499736
commit
57fc689784
@ -1,4 +1,4 @@
|
|||||||
# v2.0.0
|
# SignerServer
|
||||||
|
|
||||||
QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
|
QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
|
||||||
|
|
||||||
|
12
load.js
12
load.js
@ -3,16 +3,18 @@ const os = require('node:os');
|
|||||||
|
|
||||||
const exePath = path.dirname(process.execPath);
|
const exePath = path.dirname(process.execPath);
|
||||||
|
|
||||||
let QQWrapper, appid, qua;
|
let QQWrapper, version, appid, qua;
|
||||||
|
|
||||||
if (os.platform() === "win32") {
|
if (os.platform() === "win32") {
|
||||||
const versionConfig = require(path.join(exePath, "resources/app/versions/config.json"));
|
const versionConfig = require(path.join(exePath, "resources/app/versions/config.json"));
|
||||||
QQWrapper = require(path.join(exePath, "resources/app/versions", versionConfig.curVersion, "wrapper.node"));
|
version = versionConfig.curVersion;
|
||||||
|
QQWrapper = require(path.join(exePath, "resources/app/versions", version, "wrapper.node"));
|
||||||
appid = "537226655"; // 9.9.12-25234
|
appid = "537226655"; // 9.9.12-25234
|
||||||
qua = `V1_WIN_NQ_${versionConfig.curVersion.replace("-", "_")}_GW_B`;
|
qua = `V1_WIN_NQ_${version.replace("-", "_")}_GW_B`;
|
||||||
} else {
|
} else {
|
||||||
const qqPkgInfo = require(path.join(exePath, "resources/app/package.json"));
|
const qqPkgInfo = require(path.join(exePath, "resources/app/package.json"));
|
||||||
QQWrapper = require(path.join(exePath, "resources/app/wrapper.node"));
|
QQWrapper = require(path.join(exePath, "resources/app/wrapper.node"));
|
||||||
|
version = qqPkgInfo.version;
|
||||||
appid = "537226441";
|
appid = "537226441";
|
||||||
qua = qqPkgInfo.qua;
|
qua = qqPkgInfo.qua;
|
||||||
}
|
}
|
||||||
@ -43,7 +45,7 @@ engine.initWithDeskTopConfig({
|
|||||||
base_path_prefix: "",
|
base_path_prefix: "",
|
||||||
platform_type: 3,
|
platform_type: 3,
|
||||||
app_type: 4,
|
app_type: 4,
|
||||||
app_version: qqPkgInfo.version,
|
app_version: version,
|
||||||
os_version: os.release(),
|
os_version: os.release(),
|
||||||
use_xlog: true,
|
use_xlog: true,
|
||||||
qua: qua,
|
qua: qua,
|
||||||
@ -59,6 +61,6 @@ loginService.initConfig({
|
|||||||
appid: appid,
|
appid: appid,
|
||||||
platVer: os.release(),
|
platVer: os.release(),
|
||||||
commonPath: dataPathGlobal,
|
commonPath: dataPathGlobal,
|
||||||
clientVer: qqPkgInfo.version,
|
clientVer: version,
|
||||||
hostName: os.hostname()
|
hostName: os.hostname()
|
||||||
});
|
});
|
Loading…
x
Reference in New Issue
Block a user