Commit 3ba48e6a by liimin

fix: 移除订单列表页中重复的Sentry上报参数

移除在订单列表页中向Sentry上报异常时重复设置的channelSource参数,并清理未使用的missingParams对象
1 parent 381b7189
...@@ -142,13 +142,6 @@ Page({ ...@@ -142,13 +142,6 @@ Page({
//如果 merchantId, channelSource, phone 这三个参数有一个未获取到,给sentry上报异常,并且带上具体的值 //如果 merchantId, channelSource, phone 这三个参数有一个未获取到,给sentry上报异常,并且带上具体的值
if (!merchantId || !channelSource || !phone) { if (!merchantId || !channelSource || !phone) {
// 设置自定义上下文信息 // 设置自定义上下文信息
const missingParams = {
merchantId: merchantId || null,
channelSource: channelSource || null,
phone: phone || null,
channelSource,
fullUserInfo: JSON.stringify(userInfo),
};
wx.p.sentry.reportParamError( wx.p.sentry.reportParamError(
"订单列表异常:merchantId, channelSource, phone 参数异常", "订单列表异常:merchantId, channelSource, phone 参数异常",
userInfo userInfo
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!