Skip to content

Commit

Permalink
保持返回值为defer
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyoukun committed May 24, 2018
1 parent 7be958d commit 55978ab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/lib/api/tnm2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,23 @@ var reportOpenapi = function(last){

//阻止默认上报
if(retCall === false){
return;
return defer.resolve();
}

if(config.isTest){
return;
return defer.resolve();
}

if(config.devMode){
return;
return defer.resolve();
}

if(!config.appid || !config.appkey){
return;
return defer.resolve();
}

if(!config.appReportUrl){
return;
return defer.resolve();
}

var arr = [];
Expand Down

0 comments on commit 55978ab

Please sign in to comment.