|  |  |  | 
|---|
|  |  |  | import com.allugame.freesdk.callback.FreeRegisterCallback; | 
|---|
|  |  |  | import com.allugame.freesdk.entities.FreeOrder; | 
|---|
|  |  |  | import com.allugame.freesdk.port.FreePlatform; | 
|---|
|  |  |  | import com.reyun.tracking.sdk.Tracking; | 
|---|
|  |  |  | import com.ss.android.common.applog.TeaAgent; | 
|---|
|  |  |  | import com.ss.android.common.lib.EventUtils; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import org.json.JSONException; | 
|---|
|  |  |  | import org.json.JSONObject; | 
|---|
|  |  |  | 
|---|
|  |  |  | m_Message.put("code", CodeA2U.FreePlatformLoginOk); | 
|---|
|  |  |  | m_Message.put("info", _info); | 
|---|
|  |  |  | UniversalUtil.sendMessageToUnity(m_Message); | 
|---|
|  |  |  | Tracking.setLoginSuccessBusiness(_info.getString("account")); | 
|---|
|  |  |  | } catch (JSONException e) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | e.printStackTrace(); | 
|---|
|  |  |  | 
|---|
|  |  |  | case FreeCallbackCode.LOGOUT_SUCCESS: | 
|---|
|  |  |  | m_Message.put("code", CodeA2U.FreePlatformLogoutOk); | 
|---|
|  |  |  | UniversalUtil.sendMessageToUnity(m_Message); | 
|---|
|  |  |  | EventUtils.setLogin("mobile",true); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case FreeCallbackCode.LOGOUT_FAILURE: | 
|---|
|  |  |  | m_Message.put("code", CodeA2U.FreePlatformLogoutFail); | 
|---|
|  |  |  | 
|---|
|  |  |  | _registerMsg.put("code", CodeA2U.FreePlatformRegisterOk); | 
|---|
|  |  |  | _registerMsg.put("account", account); | 
|---|
|  |  |  | UniversalUtil.sendMessageToUnity(_registerMsg); | 
|---|
|  |  |  | Tracking.setRegisterWithAccountID(account); | 
|---|
|  |  |  | EventUtils.setRegister("mobile",true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void SendRegisterEvent() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Tracking.setRegisterWithAccountID(account); | 
|---|
|  |  |  | EventUtils.setRegister("mobile",true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|