From 5df1bf87b902f9b5f3a825822f554ad8a9ee368e Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 24 七月 2022 22:20:40 +0800
Subject: [PATCH] 0312 测试

---
 SdkProject/plugins/quick/java/com/secondworld/sdk/QuickSdkMgr.java |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/SdkProject/plugins/quick/java/com/secondworld/sdk/QuickSdkMgr.java b/SdkProject/plugins/quick/java/com/secondworld/sdk/QuickSdkMgr.java
index 7e73cff..127419f 100644
--- a/SdkProject/plugins/quick/java/com/secondworld/sdk/QuickSdkMgr.java
+++ b/SdkProject/plugins/quick/java/com/secondworld/sdk/QuickSdkMgr.java
@@ -33,6 +33,7 @@
 import com.secondworld.sdk.utils.LogUtil;
 import com.secondworld.sdk.utils.RequestCode;
 import com.unity3d.player.UnityPlayer;
+import com.secondworld.sdk.PlatformDiff;
 
 import org.json.JSONException;
 import org.json.JSONObject;
@@ -43,7 +44,7 @@
 
     String productCode;
     String productKey;
-
+    public String channelID;
     int REQUEST_RECORD_PERMISSION_SETTING = 110;
 
     private boolean hasPermissions(Activity activity) {
@@ -61,7 +62,7 @@
                 ActivityCompat.requestPermissions(activity, new String[]{
                         Manifest.permission.READ_PHONE_STATE, Manifest.permission.WRITE_EXTERNAL_STORAGE}, RequestCode.QUICK);
             } else {
-                QuickSdkMgr.I.register("40450025922275820036898902533267","31232581");
+                QuickSdkMgr.I.register(PlatformDiff.I.platformProductCode(), PlatformDiff.I.platformProductKey());
                 QuickSdkMgr.I.init(activity);
             }
         } catch (Exception e) {
@@ -75,7 +76,7 @@
         if (requestCode != RequestCode.QUICK) return;
         if (hasPermissions(activity)) {
             //鐢宠鎴愬姛
-            QuickSdkMgr.I.register("40450025922275820036898902533267","31232581");
+            QuickSdkMgr.I.register(PlatformDiff.I.platformProductCode(), PlatformDiff.I.platformProductKey());
             QuickSdkMgr.I.init(activity);
             return;
         }
@@ -103,8 +104,8 @@
     }
 
     public void onActivityResult(Activity activity, int requestCode) {
-        if (requestCode == REQUEST_RECORD_PERMISSION_SETTING)
-            requestPermissions(activity);
+//        if (requestCode == REQUEST_RECORD_PERMISSION_SETTING)
+//            requestPermissions(activity);
     }
 
     public void init(Activity activity) {
@@ -255,10 +256,10 @@
                 try {
                     args.clear();
                     JSONObject info = new JSONObject();
-                    String channel = com.quicksdk.Extend.getInstance().getExtrasConfig("channel");
-                    if (channel == null || channel.isEmpty())
-                        channel = com.quicksdk.Extend.getInstance().getChannelType() + "";
-                    String account = userInfo.getUID() + "@" + channel;
+                    channelID = com.quicksdk.Extend.getInstance().getExtrasConfig("channel");
+                    if (channelID == null || channelID.isEmpty())
+                        channelID = com.quicksdk.Extend.getInstance().getChannelType() + "";
+                    String account = userInfo.getUID() + "@" + channelID;
                     info.put("account", account);
                     info.put("userName", userInfo.getUID());
                     info.put("token", userInfo.getToken());

--
Gitblit v1.8.0