Skip to content

Commit

Permalink
chore(h5test): test env report only once
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyoukun committed Jun 6, 2018
1 parent ff61284 commit a9a0f83
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions bin/tsw/util/auto-report/TEReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ this.report = function() {

const logKey = 'h5test' + logJson.group;

// 上报自己
post.report(logKey, logText, logJson);

// 开放平台上报,不用再分组了
if (config.appid && config.appkey) {
logReport.reportCloud({
Expand All @@ -87,13 +84,17 @@ this.report = function() {
pathname: '',
statusCode: ''
});
} else {
// 私有化部署上报
// 上报自己
post.report(logKey, logText, logJson);

// 上报分组
require('util/CD.js').check('h5test' + logJson.group, 1, 60).done(function() {
post.report('group.h5test', logText, logJson);
});
}

// 上报分组
require('util/CD.js').check('h5test' + logJson.group, 1, 60).done(function() {
post.report('group.h5test', logText, logJson);
});

});

};
Expand Down

0 comments on commit a9a0f83

Please sign in to comment.