5963 多人 【前端】【1.5.0开始】各平台的注册数据同步为游戏后台统计的方式
| | |
| | | @Override |
| | | public void onResult(boolean b, String account) |
| | | { |
| | | m_Account = account; |
| | | Map<String, Object> _registerMsg = new HashMap<>(); |
| | | _registerMsg.put("code", CodeA2U.FreePlatformRegisterOk); |
| | | _registerMsg.put("account", account); |
| | | _registerMsg.put("account", m_Account); |
| | | UniversalUtil.sendMessageToUnity(_registerMsg); |
| | | Tracking.setRegisterWithAccountID(account); |
| | | Tracking.setRegisterWithAccountID(m_Account); |
| | | EventUtils.setRegister("mobile",true); |
| | | } |
| | | }); |
| | | } |
| | | private String m_Account; |
| | | public void SendRegisterEvent() |
| | | { |
| | | Tracking.setRegisterWithAccountID(m_Account); |
| | | EventUtils.setRegister("mobile",true); |
| | | } |
| | | } |
| | |
| | | case CodeU2A.JPushRemoveLocalMessage: |
| | | removeNotification(_activity, _json.getInt("id")); |
| | | break; |
| | | case CodeU2A.SendRegistEvent: |
| | | FreePlatformUtil.getInstance().SendRegisterEvent(); |
| | | break; |
| | | } |
| | | |
| | | } catch (JSONException e) |
| | |
| | | @Override |
| | | public void onResult(boolean b, String account) |
| | | { |
| | | m_Account = account; |
| | | Map<String, Object> _registerMsg = new HashMap<>(); |
| | | _registerMsg.put("code", CodeA2U.FreePlatformRegisterOk); |
| | | _registerMsg.put("account", account); |
| | | _registerMsg.put("account", m_Account); |
| | | UniversalUtil.sendMessageToUnity(_registerMsg); |
| | | Tracking.setRegisterWithAccountID(account); |
| | | Tracking.setRegisterWithAccountID(m_Account); |
| | | EventUtils.setRegister("mobile",true); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | private String m_Account; |
| | | public void SendRegisterEvent() |
| | | { |
| | | Tracking.setRegisterWithAccountID(m_Account); |
| | | EventUtils.setRegister("mobile",true); |
| | | } |
| | | } |
| | |
| | | case CodeU2A.JPushRemoveLocalMessage: |
| | | removeNotification(_activity, _json.getInt("id")); |
| | | break; |
| | | case CodeU2A.SendRegistEvent: |
| | | FreePlatformUtil.getInstance().SendRegisterEvent(); |
| | | break; |
| | | } |
| | | |
| | | } catch (JSONException e) |
| | |
| | | @Override |
| | | public void onResult(boolean b, String account) |
| | | { |
| | | m_Account = account; |
| | | Map<String, Object> _registerMsg = new HashMap<>(); |
| | | _registerMsg.put("code", CodeA2U.FreePlatformRegisterOk); |
| | | _registerMsg.put("account", account); |
| | | _registerMsg.put("account", m_Account); |
| | | UniversalUtil.sendMessageToUnity(_registerMsg); |
| | | Tracking.setRegisterWithAccountID(account); |
| | | Tracking.setRegisterWithAccountID(m_Account); |
| | | EventUtils.setRegister("mobile",true); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | private String m_Account; |
| | | public void SendRegisterEvent() |
| | | { |
| | | Tracking.setRegisterWithAccountID(m_Account); |
| | | EventUtils.setRegister("mobile",true); |
| | | } |
| | | } |
| | |
| | | case CodeU2A.JPushRemoveLocalMessage: |
| | | removeNotification(_activity, _json.getInt("id")); |
| | | break; |
| | | case CodeU2A.SendRegistEvent: |
| | | FreePlatformUtil.getInstance().SendRegisterEvent(); |
| | | break; |
| | | } |
| | | |
| | | } catch (JSONException e) |
| | |
| | | @Override |
| | | public void onResult(boolean b, String account) |
| | | { |
| | | m_Account = account; |
| | | Map<String, Object> _registerMsg = new HashMap<>(); |
| | | _registerMsg.put("code", CodeA2U.FreePlatformRegisterOk); |
| | | _registerMsg.put("account", account); |
| | | _registerMsg.put("account", m_Account); |
| | | UniversalUtil.sendMessageToUnity(_registerMsg); |
| | | Tracking.setRegisterWithAccountID(account); |
| | | EventUtils.setRegister("mobile",true); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | private String m_Account; |
| | | public void SendRegisterEvent() |
| | | { |
| | | Tracking.setRegisterWithAccountID(m_Account); |
| | | EventUtils.setRegister("mobile",true); |
| | | } |
| | | } |
| | |
| | | case CodeU2A.JPushRemoveLocalMessage: |
| | | removeNotification(_activity, _json.getInt("id")); |
| | | break; |
| | | case CodeU2A.SendRegistEvent: |
| | | FreePlatformUtil.getInstace().SendRegisterEvent(); |
| | | break; |
| | | } |
| | | |
| | | } catch (JSONException e) |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | public void SendRegisterEvent() |
| | | { |
| | | Tracking.setRegisterWithAccountID(account); |
| | | EventUtils.setRegister("mobile",true); |
| | | } |
| | | } |
| | |
| | | case CodeU2A.JPushRemoveLocalMessage: |
| | | removeNotification(_activity, _json.getInt("id")); |
| | | break; |
| | | case CodeU2A.SendRegistEvent: |
| | | FreePlatformUtil.getInstance().SendRegisterEvent(); |
| | | break; |
| | | } |
| | | |
| | | } catch (JSONException e) |
| | |
| | | * ClientPackage向sdk发送分包id |
| | | */ |
| | | public static final int ClientPackage = 400; |
| | | public static final int SendRegistEvent = 500; |
| | | } |
| | |
| | | case CodeU2A.JPushRemoveLocalMessage: |
| | | removeNotification(_activity, _json.getInt("id")); |
| | | break; |
| | | case CodeU2A.SendRegistEvent: |
| | | JSPlatformUtil.getInstance().SendRegisterEvent(); |
| | | break; |
| | | } |
| | | |
| | | } catch (JSONException e) |
| | |
| | | payProcessing = false; |
| | | } |
| | | }; |
| | | |
| | | public void SendRegisterEvent() |
| | | { |
| | | } |
| | | } |
| | |
| | | * ClientPackage向sdk发送分包id |
| | | */ |
| | | public static final int ClientPackage = 400; |
| | | public static final int SendRegistEvent = 500; |
| | | } |
| | |
| | | FileUtil.copyAssets(_activity); |
| | | break; |
| | | case CodeU2A.CopyOneAsset: |
| | | FileUtil.copy(_activity,_json.getString("fileName")); |
| | | FileUtil.copy(_activity, _json.getString("fileName")); |
| | | break; |
| | | case CodeU2A.BatteryListenStart: |
| | | BatteryUtil.getInstance().start(_activity); |
| | |
| | | case CodeU2A.JPushRemoveLocalMessage: |
| | | removeNotification(_activity, _json.getInt("id")); |
| | | break; |
| | | case CodeU2A.SendRegistEvent: |
| | | MrPlatformUtil.getInstance().SendRegisterEvent(); |
| | | break; |
| | | } |
| | | |
| | | } catch (JSONException e) |
| | |
| | | CommonMrSdk.getInstance().sendRoleLoginData(activity, _entity); |
| | | } |
| | | |
| | | public void SendRegisterEvent() |
| | | { |
| | | } |
| | | } |
| | |
| | | * ClientPackage向sdk发送分包id |
| | | */ |
| | | public static final int ClientPackage = 400; |
| | | public static final int SendRegistEvent = 500; |
| | | } |