Commit 38b9390c authored by limingzhe's avatar limingzhe

fix: 默认值

parent 58e2610a
No preview for this file type
{ {"ver":"1.1.2","uuid":"d27aae4f-aea2-4bf9-9613-c3d70a89b72f","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
"ver": "1.1.2", \ No newline at end of file
"uuid": "d27aae4f-aea2-4bf9-9613-c3d70a89b72f",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
...@@ -244,6 +244,11 @@ cc.Class({ ...@@ -244,6 +244,11 @@ cc.Class({
playAudioQuestion() { playAudioQuestion() {
// this.data.contentObj.bgm_url = 'http://127.0.0.1/iamflying.mp3'; // this.data.contentObj.bgm_url = 'http://127.0.0.1/iamflying.mp3';
if (!this.data.contentObj.bgm_url) {
this.playAudioTrain();
return;
}
cc.assetManager.loadRemote(this.data.contentObj.bgm_url, null, (err, clip) => { cc.assetManager.loadRemote(this.data.contentObj.bgm_url, null, (err, clip) => {
if (err) { if (err) {
console.log(err) console.log(err)
......
This diff is collapsed.
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