Commit b692ace7 authored by yu's avatar yu

1

parent 0485a8ad
...@@ -290,9 +290,9 @@ pg.load = { ...@@ -290,9 +290,9 @@ pg.load = {
}, },
loadNetRes: function (url) { loadNetRes: function (url) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
cc.assetManager.loadRemote(url, (err, info) => { cc.assetManager.loadRemote(url, (err, data) => {
if (err && !data) return resolve(pg.logger.w('loading loadRes warn-> ', res)); if (err && !data) return resolve(pg.logger.w('loading loadRes warn-> ', res));
resolve(info); resolve(data);
}); });
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment