|
|
@ -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 |
|
|
|