Commit b2668152 authored by 李维's avatar 李维

适配中间层直接调用

parent 56bb79c6
...@@ -429,7 +429,7 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -429,7 +429,7 @@ export default class VideoPlayerComponent extends cc.Component {
// this.node.zIndex = 10000; // this.node.zIndex = 10000;
let getData = this.getData.bind(this); let getData = this.getData.bind(this);
if (window && window["courseware"]) { if (window && window["courseware"]) {
getData = window["courseware"].getData; getData = window["courseware"].getVideoPageData ? window["courseware"].getVideoPageData : window["courseware"].getData;
} }
getData(async (data) => { getData(async (data) => {
console.log('data:', JSON.stringify(data)); console.log('data:', JSON.stringify(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