Commit 442d95c8 by 李伟康

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

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