fix: Renew image split rule (#15273)

This commit is contained in:
niuhuan 2023-02-08 23:33:35 +08:00 committed by GitHub
parent 87f34dd479
commit 9ee381f459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Jinman Tiantang' extName = 'Jinman Tiantang'
pkgNameSuffix = 'zh.jinmantiantang' pkgNameSuffix = 'zh.jinmantiantang'
extClass = '.Jinmantiantang' extClass = '.Jinmantiantang'
extVersionCode = 33 extVersionCode = 34
isNsfw = true isNsfw = true
} }

View File

@ -41,7 +41,9 @@ object ScrambledImageInterceptor : Interceptor {
return BigInteger(1, md.digest(input.toByteArray())).toString(16).padStart(32, '0') return BigInteger(1, md.digest(input.toByteArray())).toString(16).padStart(32, '0')
} }
return if (aid >= 268850) { return if (aid >= 421926) {
2 * (md5(aid.toString() + imgIndex).last().toInt() % 8) + 2
} else if (aid >= 268850) {
2 * (md5(aid.toString() + imgIndex).last().toInt() % 10) + 2 2 * (md5(aid.toString() + imgIndex).last().toInt() % 10) + 2
} else { } else {
10 10