Skip to content

Commit

Permalink
fix(h5test): h5test-update
Browse files Browse the repository at this point in the history
修复可能更新不到测试环境的问题
  • Loading branch information
huangyoukun authored and RobinzZH committed May 28, 2018
1 parent 3832c72 commit 104810f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/tsw/util/h5-test/is-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ const syncFromCloud = function(merge) {

//是否命中测试环境
module.exports.getTestSpaceInfo = function(req) {
//测试环境虽然不用转发,但是还是需要通过拉取名单来触发更新本地名单
const testTargetMap = getTestUserMap();

//windows版本,更不用转
if(isWindows.isWindows) {
return;
Expand All @@ -221,9 +224,6 @@ module.exports.getTestSpaceInfo = function(req) {
return;
}

//测试环境虽然不用转发,但是还是需要通过拉取名单来触发更新本地名单
const testTargetMap = getTestUserMap();

//如果已经是测试环境,就不用转发了
if(config.isTest) {
return;
Expand Down

0 comments on commit 104810f

Please sign in to comment.