From ed6e47f6cd24f612c2e8bc813a7b36f8cb888a01 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期二, 07 五月 2019 11:32:47 +0800
Subject: [PATCH] update 修正易乐渠道标识参数错误
---
Project/yl_sdk/src/game_ylgame/java/com/secondworld/univeralsdk/YLPlatformUtil.java | 44 +++++---------------------------------------
1 files changed, 5 insertions(+), 39 deletions(-)
diff --git a/Project/yl_sdk/src/game_ylgame/java/com/secondworld/univeralsdk/YLPlatformUtil.java b/Project/yl_sdk/src/game_ylgame/java/com/secondworld/univeralsdk/YLPlatformUtil.java
index c9dc28a..29d7e76 100644
--- a/Project/yl_sdk/src/game_ylgame/java/com/secondworld/univeralsdk/YLPlatformUtil.java
+++ b/Project/yl_sdk/src/game_ylgame/java/com/secondworld/univeralsdk/YLPlatformUtil.java
@@ -150,49 +150,15 @@
String serverName,
JSONObject ext)
{
- StringBuilder _stringBuilder = new StringBuilder();
- _stringBuilder.append("http://pub.game.2460web.com:11000/event_receiver?").
- append("ProductID=mhtj").
- append("&OperatorID=").append("yilegame").
- append("&RegionName=data").
- append("&RegionID=").append(serverID).
- append("&EventID=1105").
- append("&Time=").append(UniversalUtil.getStringDate()).
- append("&AccountID=").append(m_AccountID);
-
- 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(response.body().string().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);
+ }
}
--
Gitblit v1.8.0