From be24a6acd6abf8d86ab3b25d8be6d80f49f3dce3 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 11 九月 2024 15:19:12 +0800
Subject: [PATCH] 0312 测试
---
Project/yl_sdk/src/game_ylgame/java/com/secondworld/univeralsdk/YLPlatformUtil.java | 54 ++++++++++--------------------------------------------
1 files changed, 10 insertions(+), 44 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..e924f4f 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
@@ -10,16 +10,11 @@
import com.aoyou.sdk.domain.PaymentCallbackInfo;
import com.aoyou.sdk.domain.PaymentErrorMsg;
import com.reyun.tracking.sdk.Tracking;
-import com.squareup.okhttp.Callback;
-import com.squareup.okhttp.OkHttpClient;
-import com.squareup.okhttp.Request;
-import com.squareup.okhttp.Response;
import com.ss.android.common.lib.EventUtils;
import org.json.JSONException;
import org.json.JSONObject;
-import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
@@ -150,49 +145,20 @@
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);
+ }
+
+ public void SendLoginEvent()
+ {
+ Tracking.setLoginSuccessBusiness(m_AccountID);
+ }
}
--
Gitblit v1.8.0