From c4a451760001481da5653ea77a8afc66b0ef0032 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 7 Sep 2021 08:45:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/DirectLinkUpload.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/DirectLinkUpload.kt b/app/src/main/java/io/legado/app/help/DirectLinkUpload.kt index ef0a8edc4..b9cfb414d 100644 --- a/app/src/main/java/io/legado/app/help/DirectLinkUpload.kt +++ b/app/src/main/java/io/legado/app/help/DirectLinkUpload.kt @@ -28,7 +28,7 @@ object DirectLinkUpload { return downloadUrl } - fun getUploadUrl(): String? { + fun getUploadUrl(): String { return CacheManager.get(uploadUrlKey) ?: """http://shuyuan.miaogongzi.site:6564/shuyuan,{ "method":"POST", @@ -43,8 +43,8 @@ object DirectLinkUpload { CacheManager.put(uploadUrlKey, url) } - fun getDownloadUrlRule(): String? { - return CacheManager.get(uploadUrlKey) + fun getDownloadUrlRule(): String { + return CacheManager.get(downloadUrlRuleKey) ?: """ ${'$'}.data@js:if (result == '') '' else 'https://shuyuan.miaogongzi.site/shuyuan/'+result