Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Shamrock: 允许私聊接收multimedia资源图片 #251
Browse files Browse the repository at this point in the history
Signed-off-by: 白池 <[email protected]>
  • Loading branch information
whitechi73 committed Feb 23, 2024
1 parent 00b355b commit 9bbcc2f
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9bbcc2f

Please sign in to comment.