[]Laya.URL.basePath加载不到网络资源

var resArray = [
{ url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS},
// { url: "res/swf/flash.json", type: Laya.Loader.JSON},
// { url: "images/background.png", type : Laya.Loader.IMAGE},
];
 
Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));
 
Laya.URL.basePath = "https://piggy.q1.com";
var resArray = [
{ url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS},
// { url: "res/swf/flash.json", type: Laya.Loader.JSON},
// { url: "images/background.png", type : Laya.Loader.IMAGE},
];
 
Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));
 
 
 
 
 
=======================================================================================
 
 
打印:
rn]Retry to load: res/atlas/images.atlas
console.warn @ VM1768:1
__proto._endLoad @ code.js:13304
onLoaded @ code.js:13291
(anonymous) @ code.js:13283
__proto.runWith @ code.js:720
__proto.event @ code.js:494
__proto.onError @ code.js:12784
__proto.runWith @ code.js:720
__proto.event @ code.js:494
__proto.error @ code.js:12548
__proto._onError @ code.js:12523
http.onerror @ code.js:12485
_triggerEvent @ weapp-adapter.js? [sm]:1247
fail @ weapp-adapter.js? [sm]:1382
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:4
s.emit @ WAGame.js:4
(anonymous) @ WAGame.js:4
(anonymous) @ WAGame.js:4
a @ gamePage.html:1
(anonymous) @ gamePage.html:1
b.emit @ gamePage.html:1
callback @ gamePage.html:1
setTimeout @ gamePage.html:1
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:14
setTimeout (async)
setTimeout @ WAGame.js:14
h @ gamePage.html:1
t.ontimeout @ gamePage.html:1
XMLHttpRequest.send (async)
p @ gamePage.html:1
createRequestTask @ gamePage.html:1
invoke @ gamePage.html:1
o @ WAGame.js:4
c @ WAGame.js:4
r @ WAGame.js:4
e @ WAGame.js:4
(anonymous) @ WAGame.js:4
(anonymous) @ WAGame.js:4
send @ weapp-adapter.js? [sm]:1333
__proto.send @ code.js:12496
__proto.load @ code.js:12686
MiniLoader.onReadNativeCallBack @ code.js:22143
__proto.runWith @ code.js:721
fail @ code.js:21393
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:4
function.setTimeout @ gamePage.html:1
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:14
setTimeout (async)
setTimeout @ WAGame.js:14
s @ gamePage.html:1
f.registerCallback @ gamePage.html:1
m.forEach @ gamePage.html:1
d @ gamePage.html:1
j.onmessage @ gamePage.html:1
VM1768:1 [error]Failed to load: res/atlas/images.atlas
console.warn @ VM1768:1
__proto._endLoad @ code.js:13309
onLoaded @ code.js:13291
(anonymous) @ code.js:13283
__proto.runWith @ code.js:720
__proto.event @ code.js:494
__proto.onError @ code.js:12784
__proto.runWith @ code.js:720
__proto.event @ code.js:494
__proto.error @ code.js:12548
__proto._onError @ code.js:12523
http.onerror @ code.js:12485
_triggerEvent @ weapp-adapter.js? [sm]:1247
fail @ weapp-adapter.js? [sm]:1382
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:4
s.emit @ WAGame.js:4
(anonymous) @ WAGame.js:4
(anonymous) @ WAGame.js:4
a @ gamePage.html:1
(anonymous) @ gamePage.html:1
b.emit @ gamePage.html:1
callback @ gamePage.html:1
setTimeout @ gamePage.html:1
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:14
setTimeout (async)
setTimeout @ WAGame.js:14
h @ gamePage.html:1
t.ontimeout @ gamePage.html:1
XMLHttpRequest.send (async)
p @ gamePage.html:1
createRequestTask @ gamePage.html:1
invoke @ gamePage.html:1
o @ WAGame.js:4
c @ WAGame.js:4
r @ WAGame.js:4
e @ WAGame.js:4
(anonymous) @ WAGame.js:4
(anonymous) @ WAGame.js:4
send @ weapp-adapter.js? [sm]:1333
__proto.send @ code.js:12496
__proto.load @ code.js:12686
MiniLoader.onReadNativeCallBack @ code.js:22143
__proto.runWith @ code.js:721
fail @ code.js:21393
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:4
function.setTimeout @ gamePage.html:1
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:14
setTimeout (async)
setTimeout @ WAGame.js:14
s @ gamePage.html:1
f.registerCallback @ gamePage.html:1
m.forEach @ gamePage.html:1
d @ gamePage.html:1
j.onmessage @ gamePage.html:1
2code.js:57322 HHHH false
VM1768:1 Resources already exist,is repeated loading: https://piggy.q1.comres/sound/BGM.mp3
console.warn @ VM1768:1
Loader.cacheRes @ code.js:12995
SoundManager.playSound @ code.js:4963
SoundManager.playMusic @ code.js:4988
GameEx.onLoaded @ code.js:57359
GameEx.onLoaded2 @ code.js:57325
__proto.runWith @ code.js:720
loadComplete @ code.js:13456
__proto.run @ code.js:706
__proto.event @ code.js:499
__proto._endLoad @ code.js:13315
onLoaded @ code.js:13291
(anonymous) @ code.js:13283
__proto.runWith @ code.js:720
__proto.event @ code.js:494
__proto.onError @ code.js:12784
__proto.runWith @ code.js:720
__proto.event @ code.js:494
__proto.error @ code.js:12548
__proto._onError @ code.js:12523
http.onerror @ code.js:12485
_triggerEvent @ weapp-adapter.js? [sm]:1247
fail @ weapp-adapter.js? [sm]:1382
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:4
s.emit @ WAGame.js:4
(anonymous) @ WAGame.js:4
(anonymous) @ WAGame.js:4
a @ gamePage.html:1
(anonymous) @ gamePage.html:1
b.emit @ gamePage.html:1
callback @ gamePage.html:1
setTimeout @ gamePage.html:1
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:14
setTimeout (async)
setTimeout @ WAGame.js:14
h @ gamePage.html:1
t.ontimeout @ gamePage.html:1
XMLHttpRequest.send (async)
p @ gamePage.html:1
createRequestTask @ gamePage.html:1
invoke @ gamePage.html:1
o @ WAGame.js:4
c @ WAGame.js:4
r @ WAGame.js:4
e @ WAGame.js:4
(anonymous) @ WAGame.js:4
(anonymous) @ WAGame.js:4
send @ weapp-adapter.js? [sm]:1333
__proto.send @ code.js:12496
__proto.load @ code.js:12686
MiniLoader.onReadNativeCallBack @ code.js:22143
__proto.runWith @ code.js:721
fail @ code.js:21393
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:4
function.setTimeout @ gamePage.html:1
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:14
setTimeout (async)
setTimeout @ WAGame.js:14
s @ gamePage.html:1
f.registerCallback @ gamePage.html:1
m.forEach @ gamePage.html:1
d @ gamePage.html:1
j.onmessage @ gamePage.html:1
2code.js:44963 lose skin images/btn_pause.png
VM1768:1 [warn]Retry to load: images/background.png
console.warn @ VM1768:1
__proto._endLoad @ code.js:13304
onLoaded @ code.js:13291
(anonymous) @ code.js:13283
__proto.run @ code.js:706
__proto.event @ code.js:494
__proto.onError @ code.js:12784
MiniImage.onDownImgCallBack @ code.js:21699
__proto.runWith @ code.js:721
fail @ code.js:21443
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:5
s.emit @ WAGame.js:4
(anonymous) @ WAGame.js:5
(anonymous) @ WAGame.js:4
a @ gamePage.html:1
d.registerCallback @ gamePage.html:1
m.forEach @ gamePage.html:1
d @ gamePage.html:1
j.onmessage @ gamePage.html:1
VM1768:1 [warn]Retry to load: images/score.png
console.warn @ VM1768:1
__proto._endLoad @ code.js:13304
onLoaded @ code.js:13291
(anonymous) @ code.js:13283
__proto.run @ code.js:706
__proto.event @ code.js:494
__proto.onError @ code.js:12784
MiniImage.onDownImgCallBack @ code.js:21699
__proto.runWith @ code.js:721
fail @ code.js:21443
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:5
s.emit @ WAGame.js:4
(anonymous) @ WAGame.js:5
(anonymous) @ WAGame.js:4
a @ gamePage.html:1
d.registerCallback @ gamePage.html:1
m.forEach @ gamePage.html:1
d @ gamePage.html:1
j.onmessage @ gamePage.html:1
VM1768:1 [warn]Retry to load: images/body1.png
console.warn @ VM1768:1
__proto._endLoad @ code.js:13304
onLoaded @ code.js:13291
(anonymous) @ code.js:13283
__proto.run @ code.js:706
__proto.event @ code.js:494
__proto.onError @ code.js:12784
MiniImage.onDownImgCallBack @ code.js:21699
__proto.runWith @ code.js:721
fail @ code.js:21443
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:5
s.emit @ WAGame.js:4
(anonymous) @ WAGame.js:5
(anonymous) @ WAGame.js:4
a @ gamePage.html:1
d.registerCallback @ gamePage.html:1
m.forEach @ gamePage.html:1
d @ gamePage.html:1
j.onmessage @ gamePage.html:1
VM1768:1 [warn]Retry to load: images/btn-SoundOn.png
console.warn @ VM1768:1
__proto._endLoad @ code.js:13304
onLoaded @ code.js:13291
(anonymous) @ code.js:13283
__proto.run @ code.js:706
__proto.event @ code.js:494
__proto.onError @ code.js:12784
MiniImage.onDownImgCallBack @ code.js:21699
__proto.runWith @ code.js:721
fail @ code.js:21443
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:5
s.emit @ WAGame.js:4
(anonymous) @ WAGame.js:5
(anonymous) @ WAGame.js:4
a @ gamePage.html:1
d.registerCallback @ gamePage.html:1
m.forEach @ gamePage.html:1
d @ gamePage.html:1
j.onmessage @ gamePage.html:1
VM1768:1 [warn]Retry to load: images/head1.png
console.warn @ VM1768:1
__proto._endLoad @ code.js:13304
onLoaded @ code.js:13291
(anonymous) @ code.js:13283
__proto.run @ code.js:706
__proto.event @ code.js:494
__proto.onError @ code.js:12784
MiniImage.onDownImgCallBack @ code.js:21699
__proto.runWith @ code.js:721
fail @ code.js:21443
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:5
s.emit @ WAGame.js:4
(anonymous) @ WAGame.js:5
(anonymous) @ WAGame.js:4
a @ gamePage.html:1
d.registerCallback @ gamePage.html:1
m.forEach @ gamePage.html:1
d @ gamePage.html:1
j.onmessage @ gamePage.html:1
VM1768:1 [warn]Retry to load: images/title.png
console.warn @ VM1768:1
__proto._endLoad @ code.js:13304
onLoaded @ code.js:13291
(anonymous) @ code.js:13283
__proto.run @ code.js:706
__proto.event @ code.js:494
__proto.onError @ code.js:12784
MiniImage.onDownImgCallBack @ code.js:21699
__proto.runWith @ code.js:721
fail @ code.js:21443
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:5
s.emit @ WAGame.js:4
(anonymous) @ WAGame.js:5
(anonymous) @ WAGame.js:4
a @ gamePage.html:1
d.registerCallback @ gamePage.html:1
m.forEach @ gamePage.html:1
d @ gamePage.html:1
j.onmessage @ gamePage.html:1
VM1768:1 [warn]Retry to load: images/btn-start.png
已邀请:

Aar0n

赞同来自:

是不是用户访问权限问题?

。。。

赞同来自:

你好,我也遇到这个问你,请问你是怎么解决的。

ExplorFu123

赞同来自:

发现你的域名是二级域名https://piggy.q1.com";, 我也遇到相同问题, 我把二级域名改为一级域名, 就可以加载了.

要回复问题请先

商务合作
商务合作