This commit is contained in:
Horis
2022-10-15 13:40:58 +08:00
parent 4b1f386334
commit 67e80c00a6
3 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
{
"uploadUrl": "http://sy.mgz6.cc/shuyuan,{\"method\":\"POST\",\"body\": {\"file\": \"fileRequest\"},\"type\": \"multipart/form-data\"}",
"uploadUrl": "https://sy.mgz6.cc/shuyuan,{\"method\":\"POST\",\"body\": {\"file\": \"fileRequest\"},\"type\": \"multipart/form-data\"}",
"downloadUrlRule": "$.data@js:if (result == '') \n '' \n else \n 'https://shuyuan.mgz6.cc/shuyuan/' + result",
"summary": "有效期2天"
}

View File

@@ -358,9 +358,9 @@ open class WebDav(val path: String, val authorization: Authorization) {
val exception = document.getElementsByTag("s:exception").firstOrNull()?.text()
val message = document.getElementsByTag("s:message").firstOrNull()?.text()
if (exception == "ObjectNotFound") {
throw ObjectNotFoundException(message ?: "$path doesn't exist")
throw ObjectNotFoundException(message ?: "$path doesn't exist. code:${response.code}")
}
throw WebDavException(message ?: "未知错误")
throw WebDavException(message ?: "未知错误 code:${response.code}")
}
}

View File

@@ -54,9 +54,9 @@ data class SearchScope(private var scope: String) {
}
if (list.isEmpty()) {
list.add("全部书源")
}
return list
}
return list
}
/**
* 搜索范围书源