Commit 442d95c8 by 李伟康

chore(storge): 注释掉上传失败时的sentry上报逻辑

暂时关闭上传失败后的Sentry错误上报功能,避免冗余告警
1 parent 121fabba
......@@ -80,7 +80,7 @@ export default {
i.status = UPLOAD_STATUS.success;
i.file = config.OSS_DOMAIN + "/" + config.FOLDER + filePath;
} else {
this.sendSentry(result.detail.data[0].error);
// this.sendSentry(result.detail.data[0].error);
throw "上传失败";
}
getResult = "";
......@@ -116,14 +116,14 @@ export default {
}
}
},
sendSentry(msg) {
const { customerName, phoneNumber, carModel, staffName } =
this.$store.state.user.customerInfo;
const { name } = uni.$storage.get("userInfo");
this.$sendSentry(
`上传失败:手机号-${phoneNumber} 姓名-${customerName} 销售-${staffName} 车型-${carModel} 员工-${name},失败原因-${msg}`
);
},
// sendSentry(msg) {
// const { customerName, phoneNumber, carModel, staffName } =
// this.$store.state.user.customerInfo;
// const { name } = uni.$storage.get("userInfo");
// this.$sendSentry(
// `上传失败:手机号-${phoneNumber} 姓名-${customerName} 销售-${staffName} 车型-${carModel} 员工-${name},失败原因-${msg}`
// );
// },
async checkFileUpload(tempFilePath) {
console.log(tempFilePath);
let attempt = 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!