| | |
| | | |
| | | //根据回调获取用户信息 |
| | | 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", userId); |
| | | _info.put("token", token); |
| | | _info.put("userName", userName); |
| | | _info.put("userName", USER.getUID()); |
| | | m_Message.put("code", CodeA2U.FreePlatformLoginOk); |
| | | m_Message.put("info", _info); |
| | | UniversalUtil.sendMessageToUnity(m_Message); |
| | |
| | | |
| | | //根据回调获取用户信息 |
| | | 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("userName", userName); |
| | | _info.put("userName", USER.getUID()); |
| | | _info.put("token", token); |
| | | _info.put("account", userId); |
| | | m_Message.put("code", CodeA2U.FreePlatformSwitchAccountOk); |