hch
2025-04-29 352babe80b284339d9b5cc6739fe9ce723c61a39
Project/app/src/game_904100357/java/com/secondworld/univeralsdk/FreePlatformUtil.java
@@ -7,9 +7,6 @@
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;
@@ -92,7 +89,6 @@
                            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();
@@ -105,7 +101,6 @@
                    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);
@@ -147,9 +142,13 @@
                _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);
    }
}