xuguohong

update sdk

This diff is collapsed. Click to expand it.
......@@ -145,7 +145,11 @@ function initMatching(){
Core.PLATFORM_NAME = '星玩';
Core.server = 'https://sdk.shxingwan.com';
if(Core.isIos){
Core.server = 'https://sdk.shxingwan.com';
}else{
Core.server = 'http://sdk.shxingwan.com';
}
var lastServer = localStorage.getItem('last_server');
if(lastServer && lastServer.indexOf('http:')==0){
......
This diff is collapsed. Click to expand it.
......@@ -70,7 +70,6 @@
if (!tryAutoLogin)
goInit();
Core.ajax({
type: 'GET',
url: url + '?' + params,
......
......@@ -49,6 +49,10 @@
Core.showMod('help');
return false;
});
that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面
e.stopPropagation();
Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!");
});
}
Home.prototype.logout_cb = function(data) {
......@@ -58,7 +62,7 @@
}
Home.prototype.show_after = function(){
$('#login').hide()
$('#login').hide();
}
Core.registerMod('home', Home);
......@@ -221,6 +225,7 @@
Core.first_password = this.$c.find('[name="password"]').val()
this.cache();
Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台');
Core.updateMod('home');
}
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(){
Core.PLATFORM_NAME = '星玩';
Core.server = 'https://sdk.shxingwan.com';
if(Core.isIos){
Core.server = 'https://sdk.shxingwan.com';
}else{
Core.server = 'http://sdk.shxingwan.com';
}
var lastServer = localStorage.getItem('last_server');
if(lastServer && lastServer.indexOf('http:')==0){
......
......@@ -70,7 +70,6 @@
if (!tryAutoLogin)
goInit();
Core.ajax({
type: 'GET',
url: url + '?' + params,
......
......@@ -49,6 +49,10 @@
Core.showMod('help');
return false;
});
that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面
e.stopPropagation();
Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!");
});
}
Home.prototype.logout_cb = function(data) {
......@@ -58,7 +62,7 @@
}
Home.prototype.show_after = function(){
$('#login').hide()
$('#login').hide();
}
Core.registerMod('home', Home);
......@@ -221,6 +225,7 @@
Core.first_password = this.$c.find('[name="password"]').val()
this.cache();
Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台');
Core.updateMod('home');
}
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.