xuguohong

update sdk

This diff is collapsed. Click to expand it.
...@@ -145,7 +145,11 @@ function initMatching(){ ...@@ -145,7 +145,11 @@ function initMatching(){
145 145
146 Core.PLATFORM_NAME = '星玩'; 146 Core.PLATFORM_NAME = '星玩';
147 147
148 - Core.server = 'https://sdk.shxingwan.com'; 148 + if(Core.isIos){
149 + Core.server = 'https://sdk.shxingwan.com';
150 + }else{
151 + Core.server = 'http://sdk.shxingwan.com';
152 + }
149 153
150 var lastServer = localStorage.getItem('last_server'); 154 var lastServer = localStorage.getItem('last_server');
151 if(lastServer && lastServer.indexOf('http:')==0){ 155 if(lastServer && lastServer.indexOf('http:')==0){
......
This diff is collapsed. Click to expand it.
...@@ -70,7 +70,6 @@ ...@@ -70,7 +70,6 @@
70 if (!tryAutoLogin) 70 if (!tryAutoLogin)
71 goInit(); 71 goInit();
72 72
73 -
74 Core.ajax({ 73 Core.ajax({
75 type: 'GET', 74 type: 'GET',
76 url: url + '?' + params, 75 url: url + '?' + params,
......
...@@ -49,6 +49,10 @@ ...@@ -49,6 +49,10 @@
49 Core.showMod('help'); 49 Core.showMod('help');
50 return false; 50 return false;
51 }); 51 });
52 + that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面
53 + e.stopPropagation();
54 + Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!");
55 + });
52 } 56 }
53 57
54 Home.prototype.logout_cb = function(data) { 58 Home.prototype.logout_cb = function(data) {
...@@ -58,7 +62,7 @@ ...@@ -58,7 +62,7 @@
58 62
59 } 63 }
60 Home.prototype.show_after = function(){ 64 Home.prototype.show_after = function(){
61 - $('#login').hide() 65 + $('#login').hide();
62 } 66 }
63 Core.registerMod('home', Home); 67 Core.registerMod('home', Home);
64 68
...@@ -221,6 +225,7 @@ ...@@ -221,6 +225,7 @@
221 Core.first_password = this.$c.find('[name="password"]').val() 225 Core.first_password = this.$c.find('[name="password"]').val()
222 this.cache(); 226 this.cache();
223 Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台'); 227 Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台');
228 +
224 Core.updateMod('home'); 229 Core.updateMod('home');
225 } 230 }
226 Login.prototype.login_eg_cb = function(result) { 231 Login.prototype.login_eg_cb = function(result) {
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
...@@ -145,7 +145,11 @@ function initMatching(){ ...@@ -145,7 +145,11 @@ function initMatching(){
145 145
146 Core.PLATFORM_NAME = '星玩'; 146 Core.PLATFORM_NAME = '星玩';
147 147
148 - Core.server = 'https://sdk.shxingwan.com'; 148 + if(Core.isIos){
149 + Core.server = 'https://sdk.shxingwan.com';
150 + }else{
151 + Core.server = 'http://sdk.shxingwan.com';
152 + }
149 153
150 var lastServer = localStorage.getItem('last_server'); 154 var lastServer = localStorage.getItem('last_server');
151 if(lastServer && lastServer.indexOf('http:')==0){ 155 if(lastServer && lastServer.indexOf('http:')==0){
......
...@@ -70,7 +70,6 @@ ...@@ -70,7 +70,6 @@
70 if (!tryAutoLogin) 70 if (!tryAutoLogin)
71 goInit(); 71 goInit();
72 72
73 -
74 Core.ajax({ 73 Core.ajax({
75 type: 'GET', 74 type: 'GET',
76 url: url + '?' + params, 75 url: url + '?' + params,
......
...@@ -49,6 +49,10 @@ ...@@ -49,6 +49,10 @@
49 Core.showMod('help'); 49 Core.showMod('help');
50 return false; 50 return false;
51 }); 51 });
52 + that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面
53 + e.stopPropagation();
54 + Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!");
55 + });
52 } 56 }
53 57
54 Home.prototype.logout_cb = function(data) { 58 Home.prototype.logout_cb = function(data) {
...@@ -58,7 +62,7 @@ ...@@ -58,7 +62,7 @@
58 62
59 } 63 }
60 Home.prototype.show_after = function(){ 64 Home.prototype.show_after = function(){
61 - $('#login').hide() 65 + $('#login').hide();
62 } 66 }
63 Core.registerMod('home', Home); 67 Core.registerMod('home', Home);
64 68
...@@ -221,6 +225,7 @@ ...@@ -221,6 +225,7 @@
221 Core.first_password = this.$c.find('[name="password"]').val() 225 Core.first_password = this.$c.find('[name="password"]').val()
222 this.cache(); 226 this.cache();
223 Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台'); 227 Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台');
228 +
224 Core.updateMod('home'); 229 Core.updateMod('home');
225 } 230 }
226 Login.prototype.login_eg_cb = function(result) { 231 Login.prototype.login_eg_cb = function(result) {
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.