|
|
@ -23,7 +23,7 @@ object DirectLinkUpload { |
|
|
|
val analyzeRule = AnalyzeRule(RuleData()).setContent(res.body, res.url) |
|
|
|
val analyzeRule = AnalyzeRule(RuleData()).setContent(res.body, res.url) |
|
|
|
val downloadUrl = analyzeRule.getString(downloadUrlRule) |
|
|
|
val downloadUrl = analyzeRule.getString(downloadUrlRule) |
|
|
|
if (downloadUrl.isBlank()) { |
|
|
|
if (downloadUrl.isBlank()) { |
|
|
|
error("上传失败") |
|
|
|
error("上传失败,${res.body}") |
|
|
|
} |
|
|
|
} |
|
|
|
return downloadUrl |
|
|
|
return downloadUrl |
|
|
|
} |
|
|
|
} |
|
|
|