Skip to content

Commit cc999c1

Browse files
committed
修改iphone下数据发送失败的策略
1 parent 4415399 commit cc999c1

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

sensorsdata.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var ArrayProto = Array.prototype,
2727
slice = ArrayProto.slice,
2828
toString = ObjProto.toString,
2929
hasOwnProperty = ObjProto.hasOwnProperty,
30-
LIB_VERSION = '0.6',
30+
LIB_VERSION = '0.7',
3131
LIB_NAME = 'MiniProgram';
3232

3333
sa.lib_version = LIB_VERSION;
@@ -708,7 +708,6 @@ sa.init = function() {
708708
};
709709

710710
sa.send = function(t) {
711-
var o = 0;
712711
var url = '';
713712
t._nocache = (String(Math.random()) + String(Math.random()) + String(Math.random())).slice(2, 15);
714713

@@ -725,11 +724,7 @@ sa.send = function(t) {
725724
var sendRequest = function() {
726725
wx.request({
727726
"url" : url,
728-
"method" : "GET",
729-
"fail" : function() {
730-
logger.info('发送错误,重新发送');
731-
o < 2 && (o++, sendRequest())
732-
}
727+
"method" : "GET"
733728
})
734729
};
735730
sendRequest();

0 commit comments

Comments
 (0)