From bfb67188ce9ecefd047cc1a2cf2284d416daa066 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Fri, 8 Nov 2024 05:45:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20DownloadFile=E6=8E=A5=E5=8F=A3=E5=8F=82?= =?UTF-8?q?=E6=95=B0url=E5=92=8Cbase64=E4=BA=8C=E9=80=89=E4=B8=80=E5=8D=B3?= =?UTF-8?q?=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot11/action/go-cqhttp/DownloadFile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/onebot11/action/go-cqhttp/DownloadFile.ts b/src/onebot11/action/go-cqhttp/DownloadFile.ts index d94a866..c157dfd 100644 --- a/src/onebot11/action/go-cqhttp/DownloadFile.ts +++ b/src/onebot11/action/go-cqhttp/DownloadFile.ts @@ -23,8 +23,8 @@ interface FileResponse { export class DownloadFile extends BaseAction { actionName = ActionName.GoCQHTTP_DownloadFile payloadSchema = Schema.object({ - url: String, - base64: String, + url: Schema.string(), + base64: Schema.string(), headers: Schema.union([String, Schema.array(String)]) })