[LayaAir2]统一配置Laya.URL.basePath之后白名单问题

        Laya.URL.basePath="https://xxx.xxx.aliyuncs.com/test/layatest/"
        //@ts-ignore
        const loadTask = wx.loadSubpackage({
            name: 'subpackage', // name 可以填 name 或者 root
            success: function(res) {
              // 分包加载成功后通过 success 回调
              console.log('xyzz====success')
            },
            fail: function(res) {
              // 分包加载失败通过 fail 回调
              console.log('xyzz====fail')
            }
          }) 
          Laya["MiniAdpter"].nativefiles =  [
            "test",
            "sound",
            "prefab",
            "libs",
            "res/atlas/test.atlas",
            "res/atlas/test.png",
            "res/atlas/comp.png",
            "res/atlas/comp.atlas",
        ];
 
微信小程序分包配置白名单之后加载的还是服务器上的地址
 
 
Laya.png


 
 
 
哪位大佬指点下这是啥原因
 
 
已邀请:

要回复问题请先

商务合作
商务合作