This commit is contained in:
xiaoxiao 2025-08-08 17:03:39 +08:00
parent bf3a456c8f
commit 5ea18f1468

View File

@ -64,11 +64,7 @@ struct WebPage {
}) })
.onPageBegin(()=>{ .onPageBegin(()=>{
if (this.needsCookieInjection(this.url)) { if (this.needsCookieInjection(this.url)) {
try { this.controller.runJavaScript(`hcp_from=expert_app;path=/;domain=.igandan.com;hcp_token=${this.hcp_token}`)
webview.WebCookieManager.configCookieSync('https://dev-wx.igandan.com', 'hcp_from=expert_app;path=/;domain=.igandan.com;hcp_token='+this.hcp_token+';');
} catch (error) {
console.error(`ErrorCode: ${(error as BusinessError).code}, Message: ${(error as BusinessError).message}`);
}
} }
}) })
.onPageEnd(() => { .onPageEnd(() => {