[LayaNative 2.0]web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined

现象是消息没发出去 超时 资源可以正常下载  麻烦大大帮忙看下吧
已邀请:

金风

赞同来自:

this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler);
this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler);
this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler);
this.xhr.send(Global.WebHost+this.currentRequest.url, this.currentRequest.data, "post", "text", ["Access-Control-Allow-Origin","*",
"Access-Control-Allow-Headers","X-Requested-With",
"Access-Control-Allow-Methods","GET,POST"]);

金风

赞同来自:

解决了 网址带参数的情况 post会自动变成get

要回复问题请先

商务合作
商务合作