chore(qdreader): document task matrix and compat
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
//[author: Hermes]
|
||||
//[service: BOSS]
|
||||
//[class: 工具类]
|
||||
//[version: 2.10.2]
|
||||
//[version: 2.10.3]
|
||||
//[platform: web,qq,wx,tg,tb,fs,we]
|
||||
//[public: false]
|
||||
//[price: 0]
|
||||
@@ -605,9 +605,11 @@ function taskFinished(task) { return Number(field(task, ["IsFinished", "Finished
|
||||
function makeBase62Token(num) {
|
||||
var alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
var n = BigInt(num)
|
||||
if (n === BigInt(0)) return "0"
|
||||
var zero = BigInt(0)
|
||||
var base = BigInt(62)
|
||||
if (n === zero) return "0"
|
||||
var out = ""
|
||||
while (n > 0n) { out = alphabet[Number(n % 62n)] + out; n = n / 62n }
|
||||
while (n > zero) { out = alphabet[Number(n % base)] + out; n = n / base }
|
||||
return out
|
||||
}
|
||||
function doReceiveGifts(cookie) {
|
||||
|
||||
Reference in New Issue
Block a user