hch
2024-09-19 fc49f15976fdddd8fbc29b4b6dd0b02f04de9668
Project/qk_sdk/src/game_qk/java/com/secondworld/universalsdk/QuickPlatformUtil.java
@@ -75,17 +75,16 @@
                USER = userInfo;
                //根据回调获取用户信息
                String timestamp = USER.getToken();
                String token = USER.getToken();
                String userId = USER.getUID();
                //通知到unity中的账号已经加上渠道ID,保证appid和spid唯一对应
                String userId = USER.getUID() + "@" + com.quicksdk.Extend.getInstance().getChannelType();
                String userName = USER.getUserName();
                try
                {
                    JSONObject _info = new JSONObject();
                    _info.put("account", userName);
                    _info.put("account", userId);
                    _info.put("token", token);
                    _info.put("timeStamp", timestamp);
                    _info.put("account_id", userId);
                    _info.put("userName", USER.getUID());
                    m_Message.put("code", CodeA2U.FreePlatformLoginOk);
                    m_Message.put("info", _info);
                    UniversalUtil.sendMessageToUnity(m_Message);
@@ -133,17 +132,16 @@
                USER = userInfo;
                //根据回调获取用户信息
                String timestamp = USER.getToken();
                String token = USER.getToken();
                String userId = USER.getUID();
                //通知到unity中的账号已经加上渠道ID,保证appid和spid唯一对应
                String userId = USER.getUID() + "@" + com.quicksdk.Extend.getInstance().getChannelType();
                String userName = USER.getUserName();
                try
                {
                    JSONObject _info = new JSONObject();
                    _info.put("account", userName);
                    _info.put("userName", USER.getUID());
                    _info.put("token", token);
                    _info.put("timeStamp", timestamp);
                    _info.put("account_id", userId);
                    _info.put("account", userId);
                    m_Message.put("code", CodeA2U.FreePlatformSwitchAccountOk);
                    m_Message.put("info", _info);
                    UniversalUtil.sendMessageToUnity(m_Message);
@@ -205,7 +203,7 @@
            public void onSuccess() {
                //退出成功,游戏在此做自身的退出逻辑处理
                m_Message.clear();
                m_Message.put("code", CodeA2U.FreePlatformExit);
                m_Message.put("code", CodeA2U.ExitGame);
                UniversalUtil.sendMessageToUnity(m_Message);
                payProcessing = false;
            }