xuguohong

update xingwan sdk

Showing 67 changed files with 153 additions and 161 deletions
No preview for this file type
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
No preview for this file type
No preview for this file type
No preview for this file type

7.05 KB | W: | H:

7.05 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

7.68 KB | W: | H:

7.68 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
......@@ -138,9 +138,10 @@ function initMatching(){
Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1;
var ratio = window.devicePixelRatio;
Core.ratio = ratio;
Core.PLATFORM_NAME = '星玩';
Core.server = 'http://sdk.shxingwan.com';
var lastServer = localStorage.getItem('last_server');
if(lastServer && lastServer.indexOf('http:')==0){
if(Core.isFile){
......@@ -280,7 +281,17 @@ function initMatching(){
// },3000);
//}
}
core.get_url = function(url){
var url = url
if (core.isFile) {
url = Core.server + url;
}
if (core.Data.open_id && core.Data.login_key){
var connect_str = url.indexOf('?') >=0 ? '&' : '?'
url = url + connect_str + 'open_id=' + core.Data.open_id + '&login_key=' + core.Data.login_key;
}
return url
}
//格式化输出字符串
// core.format = function(str){
// var params = Array.prototype.slice.call(arguments, 1);
......@@ -298,22 +309,7 @@ function initMatching(){
if (!data) {
Core.Data.username = null;
Core.Data.nickname = null;
// Core.Data.username = null;
// Core.Data.youai_star = null;
// Core.Data.power = null;
// Core.Data.bind_phone = null;
// Core.Data.bind_statu = null;
// Core.Data.nickname = null;
// Core.Data.is_guest = null;
// Core.Data.face = null;
// Core.Data["open_id"] = null;
// Core.Data["token"] = null;
// Core.Data["timestamp"] = null;
// Core.Data["login_key"] = null;
// Core.Data.safe_question = null;
// Core.Data.bind_mail_statu = null;
// Core.Data.mail = null;
// Core.Data.safe_answer = null;
return;
}
Core.Data = data
......@@ -323,23 +319,7 @@ function initMatching(){
if(data.face){
Core.Data.face = Core.server + data.face;
}
// Core.Data.username = data.username;
// Core.Data.nickname = data.nickname;
// Core.Data.youai_star = data.youai_star;
// Core.Data.power = data.power;
// Core.Data.bind_phone = data.bind_phone;
// Core.Data.bind_statu = data.bind_statu;
// Core.Data.is_guest = data.is_guest;
// Core.Data.face = data.face;
// Core.Data.score = data.score;
// Core.Data["open_id"] = data.open_id + '';
// Core.Data["token"] = data.token;
// Core.Data["timestamp"] = data.timestamp + '';
// Core.Data["login_key"] = data.login_key;
// Core.Data.safe_question = data.safe_question;
// Core.Data.safe_answer = data.safe_answer;
// Core.Data.bind_mail_statu = data.bind_mail_statu;
// Core.Data.mail = data.mail;
}
/**
......@@ -473,7 +453,24 @@ function initMatching(){
}
return result;
}
core.ajax = function(settings){
//跨域修复https://github.com/imweb/mobile/issues/6
settings.url = Core.get_url(settings.url)
settings.beforeSend = function(xhr) {
try {
xhr.withCredentials = true;
} catch (e) {
var nativeOpen = xhr.open;
xhr.open = function() {
var result = nativeOpen.apply(xhr, arguments);
xhr.withCredentials = true;
return result;
};
}
}
return $.ajax(settings);
},
core.ajax_do = function($obj, func, context) {
var param = '';
var action_methon = null;
......@@ -510,15 +507,26 @@ function initMatching(){
} else {
post_url += '?format=json';
}
if(Core.isFile){
post_url = core.server + post_url;
}
var options = {
type: action_method,
url: post_url,
url: Core.get_url(post_url),
dataType: 'json',
contentType: "application/x-www-form-urlencoded; charset=utf-8",
data: param,
data: param,
beforeSend: function(xhr) {
try {
xhr.withCredentials = true;
} catch (e) {
var nativeOpen = xhr.open;
xhr.open = function() {
var result = nativeOpen.apply(xhr, arguments);
xhr.withCredentials = true;
return result;
};
}
},
success: function(result, textStatus) {
if (result.code == -10) {
// 未登录,跳转的登录界面
......
......@@ -11,6 +11,7 @@
var params = location.hash.slice(1);
var args = params.match(/app_id=(\w*)&?/);
var start_page = params.match(/mod=(\w*)&?/);
var core_server = params.match(/core_server=(.*)&?/);
var appId = '';
var skin_v = '?' + $('#skin').attr('data-v');
......@@ -23,6 +24,9 @@
Core.start_page = start_page[1];
console.log(Core.start_page);
}
if (core_server){
Core.server = core_server[1]
}
location.hash = '';
if (appId == '') {
//刷新地址出错
......@@ -47,7 +51,7 @@
var tryAutoLogin = false;
var _skin = localStorage.getItem('skin_' + appId);
if (_skin) {
$('#skin').attr('href', Core.server + '/static/sdk_3/skin/' + _skin + '/skin.css' + skin_v);
$('#skin').attr('href', Core.server + '/static/sdk/skin/' + _skin + '/skin.css' + skin_v);
setSkin = true;
}
if ($('#login').length != 0) {
......@@ -69,6 +73,7 @@
if (Core.isFile) {
url = Core.server + url;
}
$.ajax({
type: 'GET',
url: url + '?' + params,
......@@ -94,7 +99,7 @@
}
if (!setSkin && data.skin) {
$('#skin').attr('href', Core.server + '/static/sdk_3/skin/' + data.skin + '/skin.css' + skin_v);
$('#skin').attr('href', Core.server + '/static/sdk/skin/' + data.skin + '/skin.css' + skin_v);
localStorage.setItem('skin_' + appId, data.skin);
}
localStorage.setItem('data_' + url, JSON.stringify(data.msg));
......@@ -119,9 +124,7 @@
// 核心初始化
Core.loadFinished();
}
// if (!Core.isFile) {
// $('<iframe class="hide" width="0" height="0" src="/sdk/manifest/' + appId + '"></iframe>').appendTo($('body'));
// }
},
error: function(xhr, type) {
// 请求失败,服务器崩溃
......
......@@ -217,14 +217,14 @@
Core.first_user = this.$c.find('[name="username"]').val()
Core.first_password = this.$c.find('[name="password"]').val()
this.cache();
Core.showTips('成功登录,欢迎使用游戏平台');
Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台');
Core.updateMod('home');
}
Login.prototype.login_eg_cb = function(result) {
Core.updateData(result.msg);
// 跳转进入游戏
this.cache();
Core.showTips('成功登录,欢迎使用游戏平台, 正在进入游戏');
Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台, 正在进入游戏');
setTimeout(function() {
Core.finishLogin();
}, 1000);
......@@ -369,7 +369,7 @@
Core.ajax_do(that.$c.find('.ajax'), that.register_cb,
that);
} else{
Core.showTips('请同意网络协议',1);
Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1);
}
return false;
});
......@@ -400,7 +400,7 @@
Core.first_password = this.$c.find('[name="password"]').val()
// 显示一个注册成功信息,并跳转到home
this.cache();
Core.showTips('成功注册,欢迎使用游戏平台');
Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台');
Core.updateMod('home');
}
Register.prototype.show_after = function() {
......@@ -488,7 +488,7 @@
that.$c.on("click","#js_findPSW_getcode",function(){//找回密码获取验证码
var $self = $(this)
phone = $("#js_findPSW_mobile").val();
$.ajax({
Core.ajax({
type:"post",
url:"/sms_validate_code/?mobile="+phone,
success:function(msg){
......@@ -533,7 +533,7 @@
Core.showTips('请输入验证码!', true);
return false;
}
$.ajax({
Core.ajax({
type:"post",
url:"/user/password_by_mobile?mobile="+phoneTest+"&username="+accout+"&vcode="+code,
data:{format:"json"},
......@@ -559,7 +559,7 @@
account = $("input[name='loginUserName']").val();
var names = localStorage.getItem('user_names');
names = JSON.parse(names);
$.ajax({
Core.ajax({
type:"post",
url:"/user/reset_passwd?pwd_code="+NewKey+"&password="+NewPsw,
data:{format:"json"},
......@@ -779,7 +779,7 @@
ele.on("click",element,function(){
var phoneTest = $(iphone).val();
if(self.mobileReg(iphone) == false) return false;
$.ajax({
Core.ajax({
type:"post",
url:"/sms_validate_code/?mobile="+phoneTest,
success:function(msg){
......@@ -815,7 +815,7 @@
Core.showTips('请输入验证码!', true);
return false;
}
$.ajax({
Core.ajax({
type:"post",
url:"/user/bind_mobile?mobile="+phoneTest+"&vcode="+code,
data:{format:"json"},
......@@ -853,7 +853,7 @@
that.$c.on("click","#js_unbind_getcode",function(){
var $self = $(this),
phone = Core.Data.bind_phone;
$.ajax({
Core.ajax({
type:"post",
url:"/sms_validate_code/?mobile="+phone,
success:function(msg){
......@@ -884,7 +884,7 @@
Core.showTips('请输入验证码!', true);
return false;
}
$.ajax({
Core.ajax({
type:"post",
url:"/user/unbind_mobile?mobile="+phoneTest+"&vcode="+code,
data:{format:"json"},
......
......@@ -314,9 +314,9 @@
<div class="function-list-content hide">
<div class="pwd_txt">
<div class="default_text" style="display: none;">
<p>客服QQ:<a href="javascript:;" id="js_kefu_qq">2739920773</a></p>
<p>客服电话:<a href="tel:020-87510588">020-87510588</a></p>
<p>玩家交流群:<a href="javascript:;" id="js_player">167355030</a></p>
<p>客服QQ:<a href="javascript:;" id="js_kefu_qq"></a></p>
<p>客服电话:<a href="tel:"></a></p>
<p>玩家交流群:<a href="javascript:;" id="js_player"></a></p>
</div>
<div class="get_text"></div>
</div>
......@@ -358,12 +358,7 @@
<div class="container">
<div class="box_info_center">
<div class='align-left'>
<p class="">登陆手游平台官网(<span class='text-error'> www.9133.com</span>)就可以:</p>
<p class="text-indent">1.上传酷炫头像,设置更多个性资料</p>
<p class="text-indent">2.绑定微博帐号,绑定邮箱,增强帐号安全</p>
<p class="text-indent">3.用电脑方便充值还能获得返利</p>
<p class="text-indent">4.海量精品游戏免费下载,附带攻略大全</p>
<p class="text-indent">5.更多玩法,等你发现...</p>
</div>
</div>
</div>
......@@ -657,8 +652,6 @@
<div class="new-sdk-box">
<p>问题:{{=Core.Data.safe_question}}</p>
<p>答案:{{=Core.Data.safe_answer}}</p>
<p>修改密保设置请访问<a href="javascript:Core.goTo('http://m.9133.com')">www.9133.com</a></p>
</div>
</form>
</div>
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.

7.05 KB | W: | H:

7.05 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

7.68 KB | W: | H:

7.68 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
......@@ -138,9 +138,10 @@ function initMatching(){
Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1;
var ratio = window.devicePixelRatio;
Core.ratio = ratio;
Core.PLATFORM_NAME = '星玩';
Core.server = 'http://sdk.shxingwan.com';
var lastServer = localStorage.getItem('last_server');
if(lastServer && lastServer.indexOf('http:')==0){
if(Core.isFile){
......@@ -280,7 +281,17 @@ function initMatching(){
// },3000);
//}
}
core.get_url = function(url){
var url = url
if (core.isFile) {
url = Core.server + url;
}
if (core.Data.open_id && core.Data.login_key){
var connect_str = url.indexOf('?') >=0 ? '&' : '?'
url = url + connect_str + 'open_id=' + core.Data.open_id + '&login_key=' + core.Data.login_key;
}
return url
}
//格式化输出字符串
// core.format = function(str){
// var params = Array.prototype.slice.call(arguments, 1);
......@@ -298,22 +309,7 @@ function initMatching(){
if (!data) {
Core.Data.username = null;
Core.Data.nickname = null;
// Core.Data.username = null;
// Core.Data.youai_star = null;
// Core.Data.power = null;
// Core.Data.bind_phone = null;
// Core.Data.bind_statu = null;
// Core.Data.nickname = null;
// Core.Data.is_guest = null;
// Core.Data.face = null;
// Core.Data["open_id"] = null;
// Core.Data["token"] = null;
// Core.Data["timestamp"] = null;
// Core.Data["login_key"] = null;
// Core.Data.safe_question = null;
// Core.Data.bind_mail_statu = null;
// Core.Data.mail = null;
// Core.Data.safe_answer = null;
return;
}
Core.Data = data
......@@ -323,23 +319,7 @@ function initMatching(){
if(data.face){
Core.Data.face = Core.server + data.face;
}
// Core.Data.username = data.username;
// Core.Data.nickname = data.nickname;
// Core.Data.youai_star = data.youai_star;
// Core.Data.power = data.power;
// Core.Data.bind_phone = data.bind_phone;
// Core.Data.bind_statu = data.bind_statu;
// Core.Data.is_guest = data.is_guest;
// Core.Data.face = data.face;
// Core.Data.score = data.score;
// Core.Data["open_id"] = data.open_id + '';
// Core.Data["token"] = data.token;
// Core.Data["timestamp"] = data.timestamp + '';
// Core.Data["login_key"] = data.login_key;
// Core.Data.safe_question = data.safe_question;
// Core.Data.safe_answer = data.safe_answer;
// Core.Data.bind_mail_statu = data.bind_mail_statu;
// Core.Data.mail = data.mail;
}
/**
......@@ -473,7 +453,24 @@ function initMatching(){
}
return result;
}
core.ajax = function(settings){
//跨域修复https://github.com/imweb/mobile/issues/6
settings.url = Core.get_url(settings.url)
settings.beforeSend = function(xhr) {
try {
xhr.withCredentials = true;
} catch (e) {
var nativeOpen = xhr.open;
xhr.open = function() {
var result = nativeOpen.apply(xhr, arguments);
xhr.withCredentials = true;
return result;
};
}
}
return $.ajax(settings);
},
core.ajax_do = function($obj, func, context) {
var param = '';
var action_methon = null;
......@@ -510,15 +507,26 @@ function initMatching(){
} else {
post_url += '?format=json';
}
if(Core.isFile){
post_url = core.server + post_url;
}
var options = {
type: action_method,
url: post_url,
url: Core.get_url(post_url),
dataType: 'json',
contentType: "application/x-www-form-urlencoded; charset=utf-8",
data: param,
data: param,
beforeSend: function(xhr) {
try {
xhr.withCredentials = true;
} catch (e) {
var nativeOpen = xhr.open;
xhr.open = function() {
var result = nativeOpen.apply(xhr, arguments);
xhr.withCredentials = true;
return result;
};
}
},
success: function(result, textStatus) {
if (result.code == -10) {
// 未登录,跳转的登录界面
......
......@@ -11,6 +11,7 @@
var params = location.hash.slice(1);
var args = params.match(/app_id=(\w*)&?/);
var start_page = params.match(/mod=(\w*)&?/);
var core_server = params.match(/core_server=(.*)&?/);
var appId = '';
var skin_v = '?' + $('#skin').attr('data-v');
......@@ -23,6 +24,9 @@
Core.start_page = start_page[1];
console.log(Core.start_page);
}
if (core_server){
Core.server = core_server[1]
}
location.hash = '';
if (appId == '') {
//刷新地址出错
......@@ -47,7 +51,7 @@
var tryAutoLogin = false;
var _skin = localStorage.getItem('skin_' + appId);
if (_skin) {
$('#skin').attr('href', Core.server + '/static/sdk_3/skin/' + _skin + '/skin.css' + skin_v);
$('#skin').attr('href', Core.server + '/static/sdk/skin/' + _skin + '/skin.css' + skin_v);
setSkin = true;
}
if ($('#login').length != 0) {
......@@ -69,6 +73,7 @@
if (Core.isFile) {
url = Core.server + url;
}
$.ajax({
type: 'GET',
url: url + '?' + params,
......@@ -94,7 +99,7 @@
}
if (!setSkin && data.skin) {
$('#skin').attr('href', Core.server + '/static/sdk_3/skin/' + data.skin + '/skin.css' + skin_v);
$('#skin').attr('href', Core.server + '/static/sdk/skin/' + data.skin + '/skin.css' + skin_v);
localStorage.setItem('skin_' + appId, data.skin);
}
localStorage.setItem('data_' + url, JSON.stringify(data.msg));
......@@ -119,9 +124,7 @@
// 核心初始化
Core.loadFinished();
}
// if (!Core.isFile) {
// $('<iframe class="hide" width="0" height="0" src="/sdk/manifest/' + appId + '"></iframe>').appendTo($('body'));
// }
},
error: function(xhr, type) {
// 请求失败,服务器崩溃
......
......@@ -217,14 +217,14 @@
Core.first_user = this.$c.find('[name="username"]').val()
Core.first_password = this.$c.find('[name="password"]').val()
this.cache();
Core.showTips('成功登录,欢迎使用游戏平台');
Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台');
Core.updateMod('home');
}
Login.prototype.login_eg_cb = function(result) {
Core.updateData(result.msg);
// 跳转进入游戏
this.cache();
Core.showTips('成功登录,欢迎使用游戏平台, 正在进入游戏');
Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台, 正在进入游戏');
setTimeout(function() {
Core.finishLogin();
}, 1000);
......@@ -369,7 +369,7 @@
Core.ajax_do(that.$c.find('.ajax'), that.register_cb,
that);
} else{
Core.showTips('请同意网络协议',1);
Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1);
}
return false;
});
......@@ -400,7 +400,7 @@
Core.first_password = this.$c.find('[name="password"]').val()
// 显示一个注册成功信息,并跳转到home
this.cache();
Core.showTips('成功注册,欢迎使用游戏平台');
Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台');
Core.updateMod('home');
}
Register.prototype.show_after = function() {
......@@ -488,7 +488,7 @@
that.$c.on("click","#js_findPSW_getcode",function(){//找回密码获取验证码
var $self = $(this)
phone = $("#js_findPSW_mobile").val();
$.ajax({
Core.ajax({
type:"post",
url:"/sms_validate_code/?mobile="+phone,
success:function(msg){
......@@ -533,7 +533,7 @@
Core.showTips('请输入验证码!', true);
return false;
}
$.ajax({
Core.ajax({
type:"post",
url:"/user/password_by_mobile?mobile="+phoneTest+"&username="+accout+"&vcode="+code,
data:{format:"json"},
......@@ -559,7 +559,7 @@
account = $("input[name='loginUserName']").val();
var names = localStorage.getItem('user_names');
names = JSON.parse(names);
$.ajax({
Core.ajax({
type:"post",
url:"/user/reset_passwd?pwd_code="+NewKey+"&password="+NewPsw,
data:{format:"json"},
......@@ -779,7 +779,7 @@
ele.on("click",element,function(){
var phoneTest = $(iphone).val();
if(self.mobileReg(iphone) == false) return false;
$.ajax({
Core.ajax({
type:"post",
url:"/sms_validate_code/?mobile="+phoneTest,
success:function(msg){
......@@ -815,7 +815,7 @@
Core.showTips('请输入验证码!', true);
return false;
}
$.ajax({
Core.ajax({
type:"post",
url:"/user/bind_mobile?mobile="+phoneTest+"&vcode="+code,
data:{format:"json"},
......@@ -853,7 +853,7 @@
that.$c.on("click","#js_unbind_getcode",function(){
var $self = $(this),
phone = Core.Data.bind_phone;
$.ajax({
Core.ajax({
type:"post",
url:"/sms_validate_code/?mobile="+phone,
success:function(msg){
......@@ -884,7 +884,7 @@
Core.showTips('请输入验证码!', true);
return false;
}
$.ajax({
Core.ajax({
type:"post",
url:"/user/unbind_mobile?mobile="+phoneTest+"&vcode="+code,
data:{format:"json"},
......
......@@ -314,9 +314,9 @@
<div class="function-list-content hide">
<div class="pwd_txt">
<div class="default_text" style="display: none;">
<p>客服QQ:<a href="javascript:;" id="js_kefu_qq">2739920773</a></p>
<p>客服电话:<a href="tel:020-87510588">020-87510588</a></p>
<p>玩家交流群:<a href="javascript:;" id="js_player">167355030</a></p>
<p>客服QQ:<a href="javascript:;" id="js_kefu_qq"></a></p>
<p>客服电话:<a href="tel:"></a></p>
<p>玩家交流群:<a href="javascript:;" id="js_player"></a></p>
</div>
<div class="get_text"></div>
</div>
......@@ -358,12 +358,7 @@
<div class="container">
<div class="box_info_center">
<div class='align-left'>
<p class="">登陆手游平台官网(<span class='text-error'> www.9133.com</span>)就可以:</p>
<p class="text-indent">1.上传酷炫头像,设置更多个性资料</p>
<p class="text-indent">2.绑定微博帐号,绑定邮箱,增强帐号安全</p>
<p class="text-indent">3.用电脑方便充值还能获得返利</p>
<p class="text-indent">4.海量精品游戏免费下载,附带攻略大全</p>
<p class="text-indent">5.更多玩法,等你发现...</p>
</div>
</div>
</div>
......@@ -657,8 +652,6 @@
<div class="new-sdk-box">
<p>问题:{{=Core.Data.safe_question}}</p>
<p>答案:{{=Core.Data.safe_answer}}</p>
<p>修改密保设置请访问<a href="javascript:Core.goTo('http://m.9133.com')">www.9133.com</a></p>
</div>
</form>
</div>
......
......@@ -22,14 +22,13 @@ public final class R {
public static final int public_sdk_self_ya_login_bt_selector=0x7f020008;
}
public static final class id {
public static final int forum_bt=0x7f050005;
public static final int logout_bt=0x7f050004;
public static final int forum_bt=0x7f050004;
public static final int logout_bt=0x7f050003;
public static final int ya_channel_center=0x7f050000;
public static final int ya_enter_game_bt=0x7f050007;
public static final int ya_login_bt=0x7f050006;
public static final int ya_enter_game_bt=0x7f050006;
public static final int ya_login_bt=0x7f050005;
public static final int ya_pay_bt=0x7f050001;
public static final int ya_submit_role_data_bt=0x7f050003;
public static final int ya_switch_account_bt=0x7f050002;
public static final int ya_submit_role_data_bt=0x7f050002;
}
public static final class layout {
public static final int public_sdk_self_game=0x7f030000;
......
......@@ -13,14 +13,14 @@
android:background="@drawable/public_sdk_self_ya_bt_selector"
android:onClick="yaOnClick"/>
<Button
<!-- <Button
android:id="@+id/ya_switch_account_bt"
android:layout_width="180dp"
android:layout_height="60dp"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/ya_submit_role_data_bt"
android:background="@drawable/public_sdk_self_ya_bt_selector"
android:onClick="yaOnClick" />
android:onClick="yaOnClick" /> -->
<Button
android:id="@+id/ya_submit_role_data_bt"
......
......@@ -34,7 +34,6 @@ public class AppActivity extends Activity {
private Button yaPayBt;
private Button yaSubmitRoleDataBt;
private Button yaChannelCenter;
private Button yaSwitchAccountBt;
private Button yaLogoutBt;
private Button yaForumBt;
......@@ -238,9 +237,6 @@ public class AppActivity extends Activity {
yaChannelCenter = (Button) findViewById(getRedIdByName(
"ya_channel_center", "id"));
yaChannelCenter.setText("渠道中心");
yaSwitchAccountBt = (Button) findViewById(getRedIdByName(
"ya_switch_account_bt", "id"));
yaSwitchAccountBt.setText("切换账号");
PoolSdkLog.logError("" + yaPayBt + "yachannel:" + yaChannelCenter);
yaLogoutBt = (Button) findViewById(getRedIdByName("logout_bt", "id"));
......@@ -261,8 +257,6 @@ public class AppActivity extends Activity {
submitRoleData();
} else if (view == yaChannelCenter) {
channelCenter();
} else if (view == yaSwitchAccountBt) {
switchAccount();
} else if (view == yaLogoutBt){
logout();
} else if (view == yaForumBt){
......@@ -397,15 +391,6 @@ public class AppActivity extends Activity {
}
/**
* 切换帐号
*/
private void switchAccount() {
if(PoolSdkHelper.hasSwitchAccount()){
PoolSdkHelper.switchAccount(this);
}
}
/**
* 扩展接口
*/
private void expansionInterface() {
......
No preview for this file type