|
@@ -84,7 +84,6 @@ Page({
|
|
|
tempFilePath: ""
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- console.log(options);
|
|
|
let videoId = options.videoId
|
|
|
wx.setNavigationBarTitle({
|
|
|
title: options.navBarTitle
|
|
@@ -145,6 +144,7 @@ Page({
|
|
|
})
|
|
|
/*监听评测结果:必须在基础引擎创建后,调用任何评测接口前设置监听,否则有可能收不到相关事件。*/
|
|
|
wsEngine.onResult((res) => {
|
|
|
+ console.log('触发评分结束了');
|
|
|
this.getRecordScore(res)
|
|
|
});
|
|
|
wsEngine.onErrorResult(async (res) => {
|
|
@@ -307,6 +307,7 @@ Page({
|
|
|
let businessType = this.data.videoInfo.userReadExtend.businessType
|
|
|
console.log(businessType, 'businessType');
|
|
|
// https://www.chivox.com/opendoc/#/ChineseDoc/coreCn/Chinese/cn.sent.raw?id=%e5%8f%82%e6%95%b0%e8%af%b4%e6%98%8e <----参数说明
|
|
|
+ console.log('启动了');
|
|
|
wsEngine.start({
|
|
|
request: {
|
|
|
coreType: businessType == 0 ? "cn.pred.raw" : "en.pred.score",
|
|
@@ -443,6 +444,7 @@ Page({
|
|
|
// 获取测评结果
|
|
|
async getRecordScore(res) {
|
|
|
let result = res.result;
|
|
|
+ console.log(result, 'result');
|
|
|
let businessType = this.data.videoInfo.userReadExtend.businessType
|
|
|
let integrity = Math.floor(result.integrity); //完成度
|
|
|
let accuracy = Math.floor(result.accuracy); // 准确度 发音分
|
|
@@ -548,7 +550,7 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
let result = await uploadPk(data)
|
|
|
- console.log(result,'rrrr');
|
|
|
+ console.log(result, 'rrrr');
|
|
|
await userEvent({
|
|
|
action: 'WXPKUPLOAD',
|
|
|
})
|