hch
2025-07-18 2a011653190c36e6fb1f790b3819a1d6b0744aef
Project/ky_sdk/src/game_ky/java/com/secondworld/univeralsdk/KYPlatformUtil.java
@@ -62,13 +62,15 @@
            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;
@@ -157,11 +159,12 @@
                    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))
        {
@@ -252,6 +255,7 @@
                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();
@@ -333,4 +337,17 @@
    {
        Tracking.setLoginSuccessBusiness(m_AccountID);
    }
    public void DownloadStart()
    {
        String type = "hotStart";
        XYPaySDK.hotActivation(mainActivity, type);
    }
    public void DownloadEnd()
    {
        String type = "hotEnd";
        XYPaySDK.hotActivation(mainActivity, type);
    }
}