client_Hale
2019-02-21 a04e77430cf4eb1432abf61a99e3dcb745ca0f66
Project/yl_sdk/src/game_ylgame/java/com/secondworld/univeralsdk/YLPlatformUtil.java
@@ -150,51 +150,15 @@
                           String serverName,
                           JSONObject ext)
    {
        StringBuilder _stringBuilder = new StringBuilder();
        _stringBuilder.append("http://pub.game.2460web.com:11000/event_receiver?").
                append("ProductID=snxxz").
                append("&OperatorID=").append("yilegame").
                append("&RegionName=data").
                append("&RegionID=").append(serverID).
                append("&EventID=1105").
                append("&Time=").append(UniversalUtil.getStringDate()).
                append("&AccountID=").append(m_AccountID);
        LogUtil.i(TAG,"注册请求: " + _stringBuilder.toString());
        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder()
                .url(_stringBuilder.toString())
                .build();
        client.newCall(request).enqueue(new Callback() {
            @Override
            public void onFailure(Request request, IOException e)
            {
            }
            @Override
            public void onResponse(Response response) throws IOException
            {
                if(response.isSuccessful()){
                    String _code = response.body().string().trim();
                    LogUtil.i(TAG,"注册返回 : " + _code);
                    if(_code.equals("1"))
                    {
                        Tracking.setRegisterWithAccountID(m_AccountID);
                        EventUtils.setRegister("mobile",true);
                    }
                }
            }
        });
        EventUtils.setLogin("mobile",true);
        Tracking.setLoginSuccessBusiness(m_AccountID);
        SDKManager.getInstance(activity).setRoleDate(activity, roleID,
                                                     roleName, roleLv,
                                                     serverID, serverName,
                                                     ext);
    }
    public void SendRegisterEvent()
    {
        Tracking.setRegisterWithAccountID(m_AccountID);
        EventUtils.setRegister("mobile",true);
    }
}