| | |
| | | switch (msg.what) |
| | | { |
| | | case CALL_QUIT: |
| | | m_Message.clear(); |
| | | m_Message.put("code", CodeA2U.FreePlatformLogoutOk); |
| | | UniversalUtil.sendMessageToUnity(m_Message); |
| | | //悬浮球里切换帐号时退出游戏这里处理 |
| | | XYPaySDK.hideFloatWindow(mainActivity); |
| | | login(); |
| | | |
| | | break; |
| | | case CALL_RESUME: |
| | | //返回处理 |
| | | |
| | | break; |
| | | default: |
| | | break; |
| | |
| | | String roleName, |
| | | String orderId, |
| | | String extraData, |
| | | String serverID) |
| | | String serverID, |
| | | String notifyurl) |
| | | { |
| | | XPayArg payArg = new XPayArg(); |
| | | payArg.APP_USER_ID = roleID; |
| | | payArg.NOTIFY_URI = "http://recharge.game.2460web.com:12000/api/notify/kngame"; |
| | | payArg.NOTIFY_URI = notifyurl; |
| | | String amount = money; |
| | | if (StringUtils.isEmpty(amount)) |
| | | { |
| | |
| | | switch (logoutResult.getCode()){ |
| | | case LogoutResult.LOGOUT_CODE_OUT: |
| | | //Toast.makeText(MyActivity.this,"退出游戏",Toast.LENGTH_LONG).show(); |
| | | android.os.Process.killProcess(android.os.Process.myPid()); |
| | | break; |
| | | case LogoutResult.LOGOUT_CODE_BBS: |
| | | // Toast.makeText(MyActivity.this,"进入论坛",Toast.LENGTH_LONG).show(); |
| | |
| | | { |
| | | Tracking.setLoginSuccessBusiness(m_AccountID); |
| | | } |
| | | |
| | | public void DownloadStart() |
| | | { |
| | | String type = "hotStart"; |
| | | XYPaySDK.hotActivation(mainActivity, type); |
| | | } |
| | | |
| | | public void DownloadEnd() |
| | | { |
| | | String type = "hotEnd"; |
| | | XYPaySDK.hotActivation(mainActivity, type); |
| | | } |
| | | |
| | | } |