提交 b85205d8 编写于 作者: M mehaotian

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

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