pull/1298/head
gedoor 3 years ago
parent bba6281519
commit c4a4517600
  1. 6
      app/src/main/java/io/legado/app/help/DirectLinkUpload.kt

@ -28,7 +28,7 @@ object DirectLinkUpload {
return downloadUrl return downloadUrl
} }
fun getUploadUrl(): String? { fun getUploadUrl(): String {
return CacheManager.get(uploadUrlKey) return CacheManager.get(uploadUrlKey)
?: """http://shuyuan.miaogongzi.site:6564/shuyuan,{ ?: """http://shuyuan.miaogongzi.site:6564/shuyuan,{
"method":"POST", "method":"POST",
@ -43,8 +43,8 @@ object DirectLinkUpload {
CacheManager.put(uploadUrlKey, url) CacheManager.put(uploadUrlKey, url)
} }
fun getDownloadUrlRule(): String? { fun getDownloadUrlRule(): String {
return CacheManager.get(uploadUrlKey) return CacheManager.get(downloadUrlRuleKey)
?: """ ?: """
${'$'}.data@js:if (result == '') '' ${'$'}.data@js:if (result == '') ''
else 'https://shuyuan.miaogongzi.site/shuyuan/'+result else 'https://shuyuan.miaogongzi.site/shuyuan/'+result

Loading…
Cancel
Save