mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2026-01-12 21:14:59 +08:00
Update hyjk.js
This commit is contained in:
parent
addc791b15
commit
18fdd81e04
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user