hch
2025-02-17 a5467ef491b0a2f8abd538fdc4ab173676fc3472
Project/app/src/game_226114725/java/com/secondworld/univeralsdk/FreePlatformUtil.java
@@ -8,8 +8,6 @@
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;
@@ -20,14 +18,13 @@
/**
 * Created by Administrator on 2018/7/18 0018.
 */
public class FreePlatformUtil
{
    private static FreePlatformUtil s_Instance;
    private boolean m_Init = false;
    public static FreePlatformUtil getInstace()
    public static FreePlatformUtil getInstance()
    {
        if (s_Instance == null)
        {
@@ -104,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);
@@ -139,13 +135,18 @@
            @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);
                Tracking.setRegisterWithAccountID(m_Account);
            }
        });
    }
    private String m_Account;
    public void SendRegisterEvent()
    {
        Tracking.setRegisterWithAccountID(m_Account);
    }
}