提交 b85205d8 编写于 作者: M mehaotian

fix(stat) : 修复关闭统计下,系统事件(如:登录,分享)还能上报的 Bug

上级 f325702d
......@@ -650,8 +650,8 @@ class Util {
// },
data: optionsData,
success: () => {
// if (process.env.NODE_ENV === 'development') {
// console.log('stat request success');
// if (process.env.NODE_ENV === 'development') {
// console.log('stat request success');
// }
},
fail: (e) => {
......@@ -699,7 +699,7 @@ class Stat extends Util {
super();
this.instance = null;
// 注册拦截器
if (typeof uni.addInterceptor === 'function') {
if (typeof uni.addInterceptor === 'function' && process.env.NODE_ENV !== 'development') {
this.addInterceptorInit();
this.interceptLogin();
this.interceptShare(true);
......@@ -776,7 +776,7 @@ class Stat extends Util {
this.self = self;
if (getPageTypes(self)) {
this._pageShow(self);
} else {
} else {
this._applicationShow(self);
}
}
......
......@@ -382,8 +382,8 @@ class Util {
// },
data: optionsData,
success: () => {
// if (process.env.NODE_ENV === 'development') {
// console.log('stat request success');
// if (process.env.NODE_ENV === 'development') {
// console.log('stat request success');
// }
},
fail: (e) => {
......@@ -431,7 +431,7 @@ class Stat extends Util {
super()
this.instance = null;
// 注册拦截器
if (typeof uni.addInterceptor === 'function') {
if (typeof uni.addInterceptor === 'function' && process.env.NODE_ENV !== 'development') {
this.addInterceptorInit();
this.interceptLogin();
this.interceptShare(true);
......@@ -508,7 +508,7 @@ class Stat extends Util {
this.self = self;
if (getPageTypes(self)) {
this._pageShow(self);
} else {
} else {
this._applicationShow(self);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册