蔡瀚
2019-01-23 ac4cd9dae58bc753609aebd35ccda8785b806e3e
Project/app/src/game_226114725/java/com/secondworld/univeralsdk/FreePlatformUtil.java
@@ -8,7 +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;
@@ -20,14 +19,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)
        {
@@ -139,13 +137,20 @@
            @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);
    }
}