From cfe31371afb02dd965a21b73388da9e2ac7d8b23 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Mon, 29 Aug 2022 13:56:24 +0800 Subject: [PATCH] =?UTF-8?q?[mod]=20iOS=E5=8F=AF=E4=BB=A5=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E6=BA=9D=E9=80=9ACocos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/Script/Manager.ts b/assets/Script/Manager.ts index 6329ed2..8925050 100644 --- a/assets/Script/Manager.ts +++ b/assets/Script/Manager.ts @@ -65,7 +65,7 @@ export default class Manager extends cc.Component { let scheme: string = "http"; this.webview.setJavascriptInterfaceScheme(scheme); this.webview.setOnJSCallback((sender: any, url: any) => { - let content: string = decodeURI(url.split(`${scheme}://`)[1]); + let content: string = decodeURI(url.split(`${scheme}://?data=`)[1]); try { let data: JSON = JSON.parse(content); let method: any = data["method"];