mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-17 23:35:02 +08:00
Update hyjk.js
This commit is contained in:
5
hyjk.js
5
hyjk.js
@@ -152,8 +152,7 @@ class Task {
|
|||||||
}
|
}
|
||||||
|
|
||||||
encrypt(body) {
|
encrypt(body) {
|
||||||
let sign = getSign(body)
|
|
||||||
let timestamp = new Date().getTime()
|
|
||||||
global['window'] = {}
|
global['window'] = {}
|
||||||
global['navigator'] = {}
|
global['navigator'] = {}
|
||||||
const JSEncrypt = require("encryptlong")
|
const JSEncrypt = require("encryptlong")
|
||||||
@@ -235,6 +234,8 @@ class Task {
|
|||||||
encryptor.setPrivateKey(PRIVATE_KEY)
|
encryptor.setPrivateKey(PRIVATE_KEY)
|
||||||
return encryptor.decryptLong(data)
|
return encryptor.decryptLong(data)
|
||||||
}
|
}
|
||||||
|
let sign = getSign(body)
|
||||||
|
let timestamp = new Date().getTime()
|
||||||
return entryData({
|
return entryData({
|
||||||
sign: sign,
|
sign: sign,
|
||||||
timestamp: timestamp
|
timestamp: timestamp
|
||||||
|
|||||||
Reference in New Issue
Block a user