mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: 允许私聊接收multimedia
资源图片 #251
Signed-off-by: 白池 <whitechi73@outlook.com>
This commit is contained in:
parent
00b355b877
commit
9bbcc2f160
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user