From b9cbcaa35e5515925c7e3b3620967cc8dc16b40a Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期一, 06 五月 2019 16:23:11 +0800
Subject: [PATCH] 382 易乐相关修改
---
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