Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

2.0.3 相关问题修复。 #30

Merged
merged 9 commits into from
Jun 4, 2015
Merged

2.0.3 相关问题修复。 #30

merged 9 commits into from
Jun 4, 2015

Conversation

wangxiao
Copy link
Contributor

@wangxiao wangxiao commented Jun 2, 2015

var url = '';
var protocol = 'http://';
if (win && win.location.protocol === 'https:') {
protocol = 'https://';
}
url = protocol + 'router-g0-push.avoscloud.com/v1/route?appId=' + appId ;
var node = '';
switch (options.country) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

慎用 country 这个名字啊。。。我觉得叫 env 比较好

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

万一过几天开通了香港台湾专区……

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

region

2015-06-02 13:24 GMT+08:00 Ning Sun notifications@github.com:

In src/AV.push.js
#30 (comment):

         var url = '';
         var protocol = 'http://';
         if (win && win.location.protocol === 'https:') {
             protocol = 'https://';
         }
  •        url = protocol + 'router-g0-push.avoscloud.com/v1/route?appId=' + appId ;
    
  •        var node = '';
    
  •        switch (options.country) {
    

慎用 country 这个名字啊。。。我觉得叫 env 比较好


Reply to this email directly or view it on GitHub
https://github.com/leancloud/js-push-sdk/pull/30/files#r31493577.

@wangxiao
Copy link
Contributor Author

wangxiao commented Jun 2, 2015

@sunng87

break;
case 'us':
options.host = 'avoscloud.us';
break;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以加个 default 扔个异常出来

@sunng87
Copy link
Contributor

sunng87 commented Jun 3, 2015

除了一个 comment 都 LGTM 了,可以合并了

@wangxiao
Copy link
Contributor Author

wangxiao commented Jun 4, 2015

已增加,合并了。

wangxiao added a commit that referenced this pull request Jun 4, 2015
2.0.3 相关问题修复。
@wangxiao wangxiao merged commit 8d87aa2 into leancloud:master Jun 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants