chore(qdreader): document task matrix and compat

This commit is contained in:
2026-05-20 22:37:28 +08:00
parent e035a760de
commit 46369d9af2
4 changed files with 41 additions and 9 deletions
+5 -3
View File
@@ -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) {