diff --git a/README.md b/README.md index 69d6de8..35fa263 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,6 @@ Copyright (c) 2025 菲鸽 ## 捐赠

-special sponsor appwrite -special sponsor appwrite +special sponsor appwrite +special sponsor appwrite

diff --git a/screenshots/pay-1.png b/screenshots/pay-1.png deleted file mode 100644 index 92e8019..0000000 Binary files a/screenshots/pay-1.png and /dev/null differ diff --git a/screenshots/pay-2.png b/screenshots/pay-2.png deleted file mode 100644 index 9004bed..0000000 Binary files a/screenshots/pay-2.png and /dev/null differ diff --git a/src/utils/http.ts b/src/utils/http.ts index d46535a..afa1eaf 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -84,6 +84,41 @@ export const httpPost = ( header, }) } +/** + * PUT 请求 + */ +export const httpPut = ( + url: string, + data?: Record, + query?: Record, + header?: Record, +) => { + return http({ + url, + data, + query, + method: 'PUT', + header, + }) +} + +/** + * DELETE 请求(无请求体,仅 query) + */ +export const httpDelete = ( + url: string, + query?: Record, + header?: Record, +) => { + return http({ + url, + query, + method: 'DELETE', + header, + }) +} http.get = httpGet http.post = httpPost +http.put = httpPut +http.delete = httpDelete