Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 442d95c8
authored
Aug 20, 2026
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore(storge): 注释掉上传失败时的sentry上报逻辑
暂时关闭上传失败后的Sentry错误上报功能,避免冗余告警
1 parent
121fabba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
mixin/storge.js
mixin/storge.js
View file @
442d95c
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment