Commit 3cb25454 by 前端

日志优化

1 parent b6fe1123
......@@ -4,24 +4,20 @@
"version" : "0.0",
"configurations" : [
{
"app-plus" :
{
"launchtype" : "remote"
},
"default" :
{
"launchtype" : "local"
},
"h5" :
{
"launchtype" : "local"
},
"mp-weixin" :
{
"launchtype" : "local"
},
"provider" : "aliyun",
"type" : "uniCloud"
"app-plus" : {
"launchtype" : "remote"
},
"default" : {
"launchtype" : "local"
},
"h5" : {
"launchtype" : "local"
},
"mp-weixin" : {
"launchtype" : "local"
},
"provider" : "aliyun",
"type" : "uniCloud"
},
{
"playground" : "standard",
......
......@@ -23,7 +23,7 @@ Vue.component("wnCanvas", wnCanvas);
Vue.component("UpdateBox", UpdateBox);
uni.$api = api;
uni.$storage = new Storage();
uni.$throttle = utils.throttle
uni.$throttle = utils.throttle;
Vue.config.productionTip = false;
App.mpType = "app";
Vue.prototype.$ossDomain = config.OSS_DOMAIN;
......
......@@ -2,7 +2,7 @@
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "1.2.0",
"versionName" : "1.4.1",
"versionCode" : "100",
"transformPx" : false,
/* 5+App特有相关 */
......
......@@ -67,11 +67,13 @@ export default {
this.stopAudio();
this.setReceptionStatus(0);
this.setAudioInfo({ endReasonType: 1 });
this.$refs.tipBox?.close();
let { sceneType } = uni.$storage.get("userInfo");
uni.reLaunch({
url: sceneType == 0 ? "/pages/home/home" : "/pages/boutique/index",
});
if (this.$refs.tipBox) {
this.$refs.tipBox.close();
let { sceneType } = uni.$storage.get("userInfo");
uni.reLaunch({
url: sceneType == 0 ? "/pages/home/home" : "/pages/boutique/index",
});
}
},
//结束提示
tipConfirm() {
......@@ -210,7 +212,7 @@ export default {
this.$store.state.user.customerInfo;
const { name } = uni.$storage.get("userInfo");
this.$sendSentry(
`上传文件失败:手机号-${phoneNumber} 姓名-${customerName} 销售-${staffName} 车型-${carModel} 员工-${name},失败原因-${result}`
`重试多次失败:手机号-${phoneNumber} 姓名-${customerName} 销售-${staffName} 车型-${carModel} 员工-${name},失败原因-${result}`
);
// this.handleErrorFile(res.tempFilePath, UPLOAD_STATUS.fail);
......@@ -287,6 +289,9 @@ export default {
// 上传成功
return result;
} catch (error) {
if (attempt == 0) {
this.$sendSentry(`第一次上传失败:文件${tempFilePath}`);
}
errorMsg = error;
attempt++;
// 等待一段时间后重试
......@@ -344,7 +349,7 @@ export default {
}, 1500),
//监听点击事件
initTime() {
if (!this.audioInfo.audioStatus == "start") return;
if (this.audioInfo.audioStatus != "start") return;
this.timer = setInterval(() => {
this.times++;
if (this.times >= this.timeout) {
......
......@@ -54,7 +54,20 @@ const uploadFile = function (filePath) {
success: function (res) {
console.log(res, 444);
if (res.statusCode != 200) {
reject(new Error("上传错误:" + JSON.stringify(res)));
reject(
new Error(
"上传错误:" +
JSON.stringify({
statusCode: res.statusCode,
filePath,
key: aliyunFileKey,
policy: policyBase64,
OSSAccessKeyId: lsaccessKeyId,
signature: signature,
"x-oss-security-token": securityToken,
})
)
);
} else {
uni.removeSavedFile({
filePath,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!