Commit cb8e5ca8 authored by liujiangnan's avatar liujiangnan

fix: 防止日志重复召唤

parent 358bae43
......@@ -37,12 +37,14 @@ export default class MiddleLayerClass extends middleLayerBase {
}, 5);
}
isLogUploading = false;
async navLogCaller() {
const { data } = await this.asyncCallNetworkApiGet("/api/application/v1/engine/report", {
engineid: this.ENGINE_INFO.uuid,
packagename: 'com.iplayabc.kyxq'
});
if (data && data == true) {
if (data && data == true && this.isLogUploading==false) {
this.isLogUploading = true;
(<any>window).courseware.logUpload(async (res) => {
const { fileUrl, error } = JSON.parse(res);
if (fileUrl) {
......@@ -51,6 +53,7 @@ export default class MiddleLayerClass extends middleLayerBase {
packagename: 'com.iplayabc.kyxq',
file_name: fileUrl
});
this.isLogUploading = false;
}
});
}
......
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