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/ky_sdk/src/game_ky/java/com/secondworld/univeralsdk/KYPlatformUtil.java | 25 +++++++++++++++++++++----
1 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/Project/ky_sdk/src/game_ky/java/com/secondworld/univeralsdk/KYPlatformUtil.java b/Project/ky_sdk/src/game_ky/java/com/secondworld/univeralsdk/KYPlatformUtil.java
index ca8a401..498ba64 100644
--- a/Project/ky_sdk/src/game_ky/java/com/secondworld/univeralsdk/KYPlatformUtil.java
+++ b/Project/ky_sdk/src/game_ky/java/com/secondworld/univeralsdk/KYPlatformUtil.java
@@ -62,13 +62,15 @@
switch (msg.what)
{
case CALL_QUIT:
+ m_Message.clear();
+ m_Message.put("code", CodeA2U.FreePlatformLogoutOk);
+ UniversalUtil.sendMessageToUnity(m_Message);
//鎮诞鐞冮噷鍒囨崲甯愬彿鏃堕��鍑烘父鎴忚繖閲屽鐞�
XYPaySDK.hideFloatWindow(mainActivity);
- login();
+
break;
case CALL_RESUME:
//杩斿洖澶勭悊
-
break;
default:
break;
@@ -157,11 +159,12 @@
String roleName,
String orderId,
String extraData,
- String serverID)
+ String serverID,
+ String notifyurl)
{
XPayArg payArg = new XPayArg();
payArg.APP_USER_ID = roleID;
- payArg.NOTIFY_URI = "http://recharge.game.2460web.com:12000/api/notify/kngame";
+ payArg.NOTIFY_URI = notifyurl;
String amount = money;
if (StringUtils.isEmpty(amount))
{
@@ -252,6 +255,7 @@
switch (logoutResult.getCode()){
case LogoutResult.LOGOUT_CODE_OUT:
//Toast.makeText(MyActivity.this,"閫�鍑烘父鎴�",Toast.LENGTH_LONG).show();
+ android.os.Process.killProcess(android.os.Process.myPid());
break;
case LogoutResult.LOGOUT_CODE_BBS:
// Toast.makeText(MyActivity.this,"杩涘叆璁哄潧",Toast.LENGTH_LONG).show();
@@ -333,4 +337,17 @@
{
Tracking.setLoginSuccessBusiness(m_AccountID);
}
+
+ public void DownloadStart()
+ {
+ String type = "hotStart";
+ XYPaySDK.hotActivation(mainActivity, type);
+ }
+
+ public void DownloadEnd()
+ {
+ String type = "hotEnd";
+ XYPaySDK.hotActivation(mainActivity, type);
+ }
+
}
--
Gitblit v1.8.0