From e73e2d541fb3729893313fefa0ba2c672d752df4 Mon Sep 17 00:00:00 2001 From: xiaoxiao Date: Thu, 14 Aug 2025 14:36:34 +0800 Subject: [PATCH] =?UTF-8?q?cookie=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- products/expert/src/main/ets/pages/WebView/WebPage.ets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/products/expert/src/main/ets/pages/WebView/WebPage.ets b/products/expert/src/main/ets/pages/WebView/WebPage.ets index 2d332f1..da5e4dc 100644 --- a/products/expert/src/main/ets/pages/WebView/WebPage.ets +++ b/products/expert/src/main/ets/pages/WebView/WebPage.ets @@ -64,7 +64,8 @@ struct WebPage { }) .onPageBegin(()=>{ if (this.needsCookieInjection(this.url)) { - this.controller.runJavaScript(`hcp_from=expert_app;path=/;domain=.igandan.com;hcp_token=${this.hcp_token}`) + this.controller.runJavaScript(`document.cookie = 'hcp_from=expert_app; domain=.igandan.com; path=/';`) + this.controller.runJavaScript(`document.cookie = 'hcp_token=${this.hcp_token}; domain=.igandan.com; path=/';`) } }) .onPageEnd(() => {