From 9bbcc2f1602013dbb7b948bc46a1f3f0e73a3e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B1=A0?= Date: Fri, 23 Feb 2024 14:17:52 +0800 Subject: [PATCH] =?UTF-8?q?`Shamrock`:=20=E5=85=81=E8=AE=B8=E7=A7=81?= =?UTF-8?q?=E8=81=8A=E6=8E=A5=E6=94=B6`multimedia`=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E5=9B=BE=E7=89=87=20#251?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 白池 --- .../qqinterface/servlet/transfile/RichProtoSvc.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/transfile/RichProtoSvc.kt b/xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/transfile/RichProtoSvc.kt index a73b68e1..ce85e827 100644 --- a/xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/transfile/RichProtoSvc.kt +++ b/xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/transfile/RichProtoSvc.kt @@ -177,10 +177,15 @@ internal object RichProtoSvc: BaseSvc() { originalUrl: String, md5: String ): String { + val isNtServer = originalUrl.startsWith("/download") + val domain = if (isNtServer) GPRO_PIC_NT else C2C_PIC if (originalUrl.isNotEmpty()) { - return "https://$C2C_PIC$originalUrl" + if (isNtServer && !originalUrl.contains("rkey=")) { + return "https://$domain$originalUrl&rkey=$multiMediaRKey" + } + return "https://$domain$originalUrl" } - return "https://$C2C_PIC/offpic_new/0/123-0-${md5.uppercase()}/0?term=2" + return "https://$$domain/offpic_new/0/123-0-${md5.uppercase()}/0?term=2" } fun getGuildPicDownUrl(