liangzimixin 0.3.52 → 0.3.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -154,8 +154,8 @@ var require_libqss = __commonJS({
|
|
|
154
154
|
var nodeVersion;
|
|
155
155
|
var numericVersion;
|
|
156
156
|
var fs5;
|
|
157
|
-
var out =
|
|
158
|
-
var err =
|
|
157
|
+
var out = console.log.bind(console);
|
|
158
|
+
var err = console.error.bind(console);
|
|
159
159
|
assert(!ENVIRONMENT_IS_SHELL, "shell environment detected but not enabled at build time. Add `shell` to `-sENVIRONMENT` to enable.");
|
|
160
160
|
var wasmBinary;
|
|
161
161
|
if (typeof WebAssembly != "object") {
|
|
@@ -3706,6 +3706,7 @@ var Logger = class {
|
|
|
3706
3706
|
const cfgLevel = (config_default.logLevel || "info").toLowerCase();
|
|
3707
3707
|
this._level = LEVELS[cfgLevel] ?? LEVELS.info;
|
|
3708
3708
|
this._logDir = import_node_path2.default.join(__dirname, "log");
|
|
3709
|
+
console.log("logDir", this._logDir);
|
|
3709
3710
|
this._logFile = import_node_path2.default.join(this._logDir, "app.log");
|
|
3710
3711
|
import_node_fs2.default.mkdirSync(this._logDir, { recursive: true });
|
|
3711
3712
|
}
|
|
@@ -4259,8 +4260,8 @@ function readCString(mod, ptr, maxLen) {
|
|
|
4259
4260
|
async function qss_get_random(randomLen) {
|
|
4260
4261
|
const mod = await ready;
|
|
4261
4262
|
const ptr = mod._malloc(randomLen);
|
|
4262
|
-
const
|
|
4263
|
-
|
|
4263
|
+
const seed = mod._malloc(4);
|
|
4264
|
+
writeUint32(mod, seed, Math.floor(Date.now() / 1e3));
|
|
4264
4265
|
logger_default.info("qss_get_random 11");
|
|
4265
4266
|
try {
|
|
4266
4267
|
const rc = mod._qss_get_random(seed, ptr, randomLen);
|
|
@@ -4273,6 +4274,7 @@ async function qss_get_random(randomLen) {
|
|
|
4273
4274
|
throw err;
|
|
4274
4275
|
} finally {
|
|
4275
4276
|
mod._free(ptr);
|
|
4277
|
+
mod._free(seed);
|
|
4276
4278
|
}
|
|
4277
4279
|
}
|
|
4278
4280
|
async function qss_assemble_fillkey_req(account, ifRepull, fkLen) {
|
|
@@ -4281,7 +4283,8 @@ async function qss_assemble_fillkey_req(account, ifRepull, fkLen) {
|
|
|
4281
4283
|
const accountPtr = allocString(mod, account);
|
|
4282
4284
|
const reqPtr = mod._malloc(MAX_REQ);
|
|
4283
4285
|
const reqLenPtr = mod._malloc(4);
|
|
4284
|
-
const seed = mod._malloc(
|
|
4286
|
+
const seed = mod._malloc(4);
|
|
4287
|
+
writeUint32(mod, seed, Math.floor(Date.now() / 1e3));
|
|
4285
4288
|
writeUint32(mod, reqLenPtr, MAX_REQ);
|
|
4286
4289
|
try {
|
|
4287
4290
|
const rc = mod._qss_get_request_info(
|
|
@@ -4301,6 +4304,7 @@ async function qss_assemble_fillkey_req(account, ifRepull, fkLen) {
|
|
|
4301
4304
|
mod._free(accountPtr);
|
|
4302
4305
|
mod._free(reqPtr);
|
|
4303
4306
|
mod._free(reqLenPtr);
|
|
4307
|
+
mod._free(seed);
|
|
4304
4308
|
}
|
|
4305
4309
|
}
|
|
4306
4310
|
async function qss_parse_fillkey_rep(resp) {
|