Commit 3ac94078 authored by sunboylu's avatar sunboylu

feat: test null04

parent 0b8505a1
...@@ -149,6 +149,18 @@ export function initAir(_this) { ...@@ -149,6 +149,18 @@ export function initAir(_this) {
gameEnd() { gameEnd() {
_this.log(`===成功调用gameEnd===`); _this.log(`===成功调用gameEnd===`);
}, },
// 兼容模板调用:提供 courseware.log,代理到 _this.log,避免 e.log 为空
log(...args) {
try {
_this.log(...args);
} catch (err) {
try {
console.log.apply(console, args);
} catch (_) {
console.log(args && args.length === 1 ? args[0] : args.join(' '));
}
}
},
// isSpeechToText 1: 录音转文本,0:纯录音 // isSpeechToText 1: 录音转文本,0:纯录音
startRecord(isSpeechToText) { startRecord(isSpeechToText) {
_this.log(`===成功调用startRecord=== isSpeechToText == ${isSpeechToText}`); _this.log(`===成功调用startRecord=== isSpeechToText == ${isSpeechToText}`);
......
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