web-view中src内字符串在在js文件拼接处理后404,未拼接时正常?
发布于 6 年前 作者 chao63 13344 次浏览 来自 问答

拿到返回值拼接到url后面,传给页面的web-view

真机打印url显示正常 控制台log正常

调试工具跳转正常服务器日志

2020-07-10 10:28:27.1599|1|INFO|Microsoft.AspNetCore.Hosting.Internal.WebHost|Request starting HTTP/1.1 GET https://lilacphoto.cn/Login/LoginAsync?id=40   

2020-07-10 10:35:15.9380|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint ‘XiaoDingXiang.Controllers.LoginController.LoginAsync (XiaoDingXiang)’ 

真机情况下服务器日志

2020-07-10 10:30:23.5315|1|INFO|Microsoft.AspNetCore.Hosting.Internal.WebHost|Request starting HTTP/2.0 GET https://lilacphoto.cn/main-es2015.ba956422879b146a7590.js   

2020-07-10 10:30:23.5315|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 

2020-07-10 10:30:23.5315|2|INFO|Microsoft.AspNetCore.Hosting.Internal.WebHost|Request finished in 2.3147ms 404  

1 回复

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部