Эх сурвалжийг харах

初步跑通--还需要改

hexiaojie 1 жил өмнө
parent
commit
5b0c6594ce

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Platform/ShareSDK/QDShareManager.cs

@@ -76,7 +76,7 @@ namespace GFGGame
         //直接分享
         public int ShareContent(PlatformType platformType, ShareContent shareContent)
         {
-            return QDShareManagerInit.Instance.shareSDK.ShowShareContentEditor(platformType, shareContent);
+            return QDShareManagerInit.Instance.shareSDK.ShareContent(platformType, shareContent);
         }
     }
 

+ 53 - 5
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/GMPanelView.cs

@@ -1,7 +1,9 @@
 using FairyGUI;
 using System.Collections.Generic;
 using System.Text.RegularExpressions;
+using cn.sharesdk.unity3d;
 using UI.RoleInfo;
+using UnityEngine;
 
 namespace GFGGame
 {
@@ -15,6 +17,7 @@ namespace GFGGame
             {
                 _ui.Dispose();
             }
+
             _ui = null;
             base.Dispose();
         }
@@ -131,6 +134,7 @@ namespace GFGGame
                 {
                     messageSuc = "已扣除物品" + itemId + "*" + itemNum;
                 }
+
                 GMController.SendGMCommand($"getItem {itemId} {itemNum}", messageSuc).Coroutine();
             }
             else
@@ -147,6 +151,7 @@ namespace GFGGame
                 PromptController.Instance.ShowFloatTextPrompt("请输入数字");
                 return;
             }
+
             string lv = _ui.m_ComBtn.m_txtRoleLv.text;
             string messageSuc = "等级提升至" + lv;
 
@@ -163,6 +168,7 @@ namespace GFGGame
                 PromptController.Instance.ShowFloatTextPrompt("请输入数字");
                 return;
             }
+
             string content = _ui.m_ComBtn.m_txtChapter.text + " " + _ui.m_ComBtn.m_txtChapterLv.text;
             string messageSuc = string.Format("当前关卡第{0}章第{1}关", _ui.m_ComBtn.m_txtChapter.text,
                 _ui.m_ComBtn.m_txtChapterLv.text);
@@ -227,6 +233,7 @@ namespace GFGGame
                 {
                     continue;
                 }
+
                 LeagueSkillCfg skillCfg = LeagueSkillCfgArray.Instance.GetCfg(skillId);
                 // List<LeagueSkillCfg> lastSkillCfgs = LeagueSkillCfgArray.Instance.GetCfgsBytypeAndlayer(_type, skillCfg.layer - 1);
                 // for (int j = 0; j < lastSkillCfgs.Count; j++)
@@ -243,8 +250,10 @@ namespace GFGGame
                     PromptController.Instance.ShowFloatTextPrompt("消耗不足");
                     break;
                 }
+
                 await SkillSProxy.ReqActiveSkill(SkillType.LeagueSkill, skillId);
             }
+
             PromptController.Instance.ShowFloatTextPrompt("学习结束");
         }
 
@@ -255,6 +264,7 @@ namespace GFGGame
             {
                 GameGlobal.skipGuide = true;
             }
+
             OnClickBtnGetAllDressUpItem();
             OnClickBtnGetAllCardItem();
 
@@ -270,7 +280,8 @@ namespace GFGGame
         {
             var chapterCount = StoryChapterCfgArray.Instance.GetCfgsBysubType(ConstInstanceZonesSubType.Normal).Count;
             _ui.m_ComBtn.m_txtChapter.text = "" + chapterCount;
-            StoryChapterCfg storyChapterCfg = StoryChapterCfgArray.Instance.GetCfgBysubTypeAndorder(ConstInstanceZonesSubType.Normal, chapterCount);
+            StoryChapterCfg storyChapterCfg =
+                StoryChapterCfgArray.Instance.GetCfgBysubTypeAndorder(ConstInstanceZonesSubType.Normal, chapterCount);
             _ui.m_ComBtn.m_txtChapterLv.text = "" + storyChapterCfg.levelCount;
         }
 
@@ -278,6 +289,7 @@ namespace GFGGame
         {
             FightDataManager.Instance.maxFightSpeed = 8;
         }
+
         private void OnClickBtnMaterials()
         {
             List<ItemCfg> itemCfgs = ItemCfgArray.Instance.GetCfgsByitemType(ConstItemType.ITEM);
@@ -288,7 +300,6 @@ namespace GFGGame
                 string successMessage = string.Format("已获取 【{0} * {1}】", itemCfgs[i].name, 1000);
                 GMController.SendGMCommand("getItem " + content, successMessage).Coroutine();
             }
-
         }
 
         private void OnClickBtnGetSuit()
@@ -299,6 +310,7 @@ namespace GFGGame
             {
                 PromptController.Instance.ShowFloatTextPrompt("套装配置不存在");
             }
+
             for (int i = 0; i < suitCfg.partsArr.Length; i++)
             {
                 string content = string.Format("{0} {1}", suitCfg.partsArr[i], 1);
@@ -306,6 +318,7 @@ namespace GFGGame
                 string successMessage = string.Format("已获取 【{0} * {1}】", name, 1000);
                 GMController.SendGMCommand("getItem " + content, successMessage).Coroutine();
             }
+
             for (int i = 0; i < suitCfg.partsOptionalArr.Length; i++)
             {
                 string content = string.Format("{0} {1}", suitCfg.partsOptionalArr[i], 1);
@@ -314,6 +327,7 @@ namespace GFGGame
                 GMController.SendGMCommand("getItem " + content, successMessage).Coroutine();
             }
         }
+
         private void OnClickBtnGM(EventContext context)
         {
             string content = _ui.m_inputGM.text;
@@ -323,6 +337,7 @@ namespace GFGGame
                 PromptController.Instance.ShowFloatTextPrompt("请按照指定格式输入物品信息", MessageType.ERR);
                 return;
             }
+
             switch (infos[0])
             {
                 case "cjstime":
@@ -331,6 +346,7 @@ namespace GFGGame
                         PromptController.Instance.ShowFloatTextPrompt("请输入以秒为单位的正确的时间戳");
                         return;
                     }
+
                     LuckyBoxDataManager.Instance.startTime = int.Parse(infos[1]);
                     PromptController.Instance.ShowFloatTextPrompt("设置成功");
 
@@ -341,6 +357,7 @@ namespace GFGGame
                         PromptController.Instance.ShowFloatTextPrompt("请输入以秒为单位的正确的时间戳");
                         return;
                     }
+
                     LuckyBoxDataManager.Instance.endTime = int.Parse(infos[1]);
                     PromptController.Instance.ShowFloatTextPrompt("设置成功");
                     break;
@@ -369,17 +386,48 @@ namespace GFGGame
             if (string.IsNullOrEmpty(num)) return;
             GMController.SendGMCommand($"addNum {roleNumType} {num}", "").Coroutine();
         }
+
         private void OnClickShareTest1(EventContext context = null)
         {
-
+            QDShareManager.Instance.SubmitPolicyGrantResult();
+            ShareContent content = new ShareContent();
+            content.SetText("this is a test string.");
+            content.SetImageUrl("https://f1.webshare.mob.com/code/demo/img/1.jpg");
+            content.SetTitle("test title");
+            content.SetSite("Mob-ShareSDK");
+            content.SetComment("test description");
+            content.SetShareType(ContentType.Image);
+            PlatformType[] platformTypes = new[]
+                { PlatformType.WeChatMoments, PlatformType.WeChat, PlatformType.WeChatFavorites };
+            QDShareManager.Instance.ShowPlatformList(platformTypes, content);
         }
+
         private void OnClickShareTest2(EventContext context = null)
         {
-
+            ShareContent content = new ShareContent();
+            content.SetText("this is a test string.");
+            content.SetImageUrl("https://f1.webshare.mob.com/code/demo/img/1.jpg");
+            content.SetTitle("test title");
+            content.SetTitleUrl("http://www.mob.com");
+            content.SetSite("Mob-ShareSDK");
+            content.SetSiteUrl("http://www.mob.com");
+            content.SetUrl("http://www.mob.com");
+            content.SetComment("test description");
+            //content.SetMusicUrl("http://mp3.mwap8.com/destdir/Music/2009/20090601/ZuiXuanMinZuFeng20090601119.mp3");
+            content.SetShareType(ContentType.Image);
+            QDShareManager.Instance.ShowShareContentEditor(PlatformType.WeChat, content);
         }
+
         private void OnClickShareTest3(EventContext context = null)
         {
-
+            ShareContent content = new ShareContent();
+            content.SetText("this is a test string.");
+            content.SetImageUrl("https://f1.webshare.mob.com/code/demo/img/1.jpg");
+            content.SetTitle("test title");
+            content.SetSite("Mob-ShareSDK");
+            content.SetComment("test description");
+            content.SetShareType(ContentType.Image);
+            QDShareManager.Instance.ShareContent(PlatformType.WeChat, content);
         }
     }
 }

+ 1 - 1
GameClient/Assets/Game/Launcher/LauncherConfig.cs

@@ -55,7 +55,7 @@ namespace GFGGame
             ChannelId = (int)ChannelID.TapTap;
 #elif PT_DOUYOU
             netType = EnumNetType.LOCAL;
-            cfgName = "cfg_douYou";
+            cfgName = "cfg_sdkTest";
             ChannelId = 22;
 #elif PT_IOS
             netType = EnumNetType.PUBLIC;

+ 7 - 1
GameClient/Assets/Game/Launcher/Platform/ShareSDK/QDShareManagerInit.cs

@@ -25,7 +25,7 @@ namespace GFGGame.Launcher
                 GameObject.DontDestroyOnLoad(gameObject);
             }
 
-            GameObject mainCameraObject = GameObject.FindWithTag("MainCamera");
+            GameObject mainCameraObject = GameObject.Find("GameLauncher");
             mobsdk = mainCameraObject.GetComponent<MobSDK>();
             shareSDK = mainCameraObject.GetComponent<ShareSDK>();
         }
@@ -34,35 +34,41 @@ namespace GFGGame.Launcher
         {
             public override void OnAuthResult(int reqID, ResponseState state, PlatformType type, Hashtable result)
             {
+                Debug.Log($"OnAuthResult xx");
                 QDShareManagerInit.Instance.shareSDKListener.OnAuthResult(reqID, state, type, result);
             }
 
             public override void OnGetUserInfoResult(int reqID, ResponseState state, PlatformType type,
                 Hashtable result)
             {
+                Debug.Log($"OnGetUserInfoResult xx");
                 QDShareManagerInit.Instance.shareSDKListener.OnGetUserInfoResult(reqID, state, type, result);
             }
 
             public override void OnShareResult(int reqID, ResponseState state, PlatformType type, Hashtable result)
             {
+                Debug.Log($"OnShareResult xx" + (int)type);
                 QDShareManagerInit.Instance.shareSDKListener.OnShareResult(reqID, state, type, result);
             }
 
             public override void OnGetFriendsResult(int reqID, ResponseState state, PlatformType type,
                 Hashtable result)
             {
+                Debug.Log($"OnGetFriendsResult xx");
                 QDShareManagerInit.Instance.shareSDKListener.OnGetFriendsResult(reqID, state, type, result);
             }
 
             public override void OnFollowFriendResult(int reqID, ResponseState state, PlatformType type,
                 Hashtable result)
             {
+                Debug.Log($"OnFollowFriendResult xx");
                 QDShareManagerInit.Instance.shareSDKListener.OnFollowFriendResult(reqID, state, type, result);
             }
 
             public override void OnIsClientValidForAndroidResult(int reqID, ResponseState state, PlatformType type,
                 Hashtable result)
             {
+                Debug.Log($"OnIsClientValidForAndroidResult xx");
                 QDShareManagerInit.Instance.shareSDKListener
                     .OnIsClientValidForAndroidResult(reqID, state, type, result);
             }

+ 1 - 1
GameClient/Assets/Plugins/Android/AndroidManifest.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.sdk.gfg"
+    package="com.shenyou.gfg.twsj"
     xmlns:tools="http://schemas.android.com/tools"
     android:installLocation="auto" >
 

+ 58 - 4
GameClient/Assets/Plugins/Android/launcherTemplate.gradle

@@ -63,15 +63,69 @@ android {
 apply plugin: 'com.mob.sdk'
 
 MobSDK {
-    appKey "moba0b0c0d0"
-    appSecret "5713f0d88511f9f4cf100cade0610a34"
+    appKey "39cb75f714db3"
+    appSecret "7fdbd1e2d3fd5beaa360d7eca51d844e"
     ShareSDK {
         //第三方平台配置
         devInfo {
+            SinaWeibo {
+                id 1
+                sortId 59
+                appKey "568898243"
+                appSecret "38a4f8204cc784f81f9f0daaf31e02e3"
+                callbackUri "http://www.sharesdk.cn"
+                shareByAppClient true
+                enable true
+            }
+
+            TencentWeibo {
+                id 2
+                sortId 2
+                appKey "801307650"
+                appSecret "ae36f4ee3946e1cbb98d6965b0b2ff5c"
+                callbackUri "http://sharesdk.cn"
+                enable true
+            }
             Wechat {
-                appId "wx4868b35061f87885"
-                appSecret "64020361b8ec4c99936c0e3999a9f249"
+                id 4
+                sortId 4
+                appId "wxf8452955e8de2e46"
+                appSecret "f9fcae1666d6e9e24cac0f7dd395433d"
                 withShareTicket true
+                bypassApproval true
+                enable true
+            }
+            WechatMoments {
+                id 5
+                sortId 5
+                appId "wxf8452955e8de2e46"
+                appSecret "f9fcae1666d6e9e24cac0f7dd395433d"
+                bypassApproval true
+                enable true
+            }
+            WeChatFavorites{
+                id 6
+                sortId 6
+                appId "wxf8452955e8de2e46"
+                appSecret "f9fcae1666d6e9e24cac0f7dd395433d"
+                bypassApproval true
+                enable true
+            }
+            QZone {
+                id 3
+                sortId 3
+                appId "100371282"
+                appKey "aed9b0303e3ed1e27bae87c33761161d"
+                shareByAppClient true
+                bypassApproval false
+                enable true
+            }
+             QQ {
+                id 7
+                sortId 7
+                appId "100371282"
+                appKey "aed9b0303e3ed1e27bae87c33761161d"
+                shareByAppClient true
                 bypassApproval false
                 enable true
             }

+ 50 - 50
GameClient/Assets/Resources/Scenes/GameLauncher.unity

@@ -136,8 +136,6 @@ GameObject:
   - component: {fileID: 519420029}
   - component: {fileID: 519420030}
   - component: {fileID: 519420033}
-  - component: {fileID: 519420035}
-  - component: {fileID: 519420034}
   m_Layer: 0
   m_Name: Main Camera
   m_TagString: MainCamera
@@ -230,13 +228,59 @@ Behaviour:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 519420028}
   m_Enabled: 1
---- !u!114 &519420034
+--- !u!1 &1059812908
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 1059812910}
+  - component: {fileID: 1059812909}
+  - component: {fileID: 1059812912}
+  - component: {fileID: 1059812911}
+  m_Layer: 0
+  m_Name: GameLauncher
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 1
+--- !u!114 &1059812909
 MonoBehaviour:
   m_ObjectHideFlags: 0
   m_CorrespondingSourceObject: {fileID: 0}
   m_PrefabInstance: {fileID: 0}
   m_PrefabAsset: {fileID: 0}
-  m_GameObject: {fileID: 519420028}
+  m_GameObject: {fileID: 1059812908}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 4b2b7d724105420439593585dd395c41, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  PlayMode: 0
+--- !u!4 &1059812910
+Transform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 1059812908}
+  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+  m_LocalPosition: {x: -4.272356, y: -0.84483206, z: -0.86534816}
+  m_LocalScale: {x: 1, y: 1, z: 1}
+  m_Children: []
+  m_Father: {fileID: 0}
+  m_RootOrder: 1
+  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+--- !u!114 &1059812911
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 1059812908}
   m_Enabled: 1
   m_EditorHideFlags: 0
   m_Script: {fileID: 11500000, guid: 0117e2d36e70d4421ad96756610a5255, type: 3}
@@ -506,36 +550,7 @@ MonoBehaviour:
       Enable: 1
     kuaishou:
       Enable: 1
---- !u!114 &519420035
-MonoBehaviour:
-  m_ObjectHideFlags: 0
-  m_CorrespondingSourceObject: {fileID: 0}
-  m_PrefabInstance: {fileID: 0}
-  m_PrefabAsset: {fileID: 0}
-  m_GameObject: {fileID: 519420028}
-  m_Enabled: 1
-  m_EditorHideFlags: 0
-  m_Script: {fileID: 11500000, guid: 5ddb254a1425545faa0fe46c651e248d, type: 3}
-  m_Name: 
-  m_EditorClassIdentifier: 
---- !u!1 &1059812908
-GameObject:
-  m_ObjectHideFlags: 0
-  m_CorrespondingSourceObject: {fileID: 0}
-  m_PrefabInstance: {fileID: 0}
-  m_PrefabAsset: {fileID: 0}
-  serializedVersion: 6
-  m_Component:
-  - component: {fileID: 1059812910}
-  - component: {fileID: 1059812909}
-  m_Layer: 0
-  m_Name: GameLauncher
-  m_TagString: Untagged
-  m_Icon: {fileID: 0}
-  m_NavMeshLayer: 0
-  m_StaticEditorFlags: 0
-  m_IsActive: 1
---- !u!114 &1059812909
+--- !u!114 &1059812912
 MonoBehaviour:
   m_ObjectHideFlags: 0
   m_CorrespondingSourceObject: {fileID: 0}
@@ -544,21 +559,6 @@ MonoBehaviour:
   m_GameObject: {fileID: 1059812908}
   m_Enabled: 1
   m_EditorHideFlags: 0
-  m_Script: {fileID: 11500000, guid: 4b2b7d724105420439593585dd395c41, type: 3}
+  m_Script: {fileID: 11500000, guid: 5ddb254a1425545faa0fe46c651e248d, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  PlayMode: 0
---- !u!4 &1059812910
-Transform:
-  m_ObjectHideFlags: 0
-  m_CorrespondingSourceObject: {fileID: 0}
-  m_PrefabInstance: {fileID: 0}
-  m_PrefabAsset: {fileID: 0}
-  m_GameObject: {fileID: 1059812908}
-  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
-  m_LocalPosition: {x: -4.272356, y: -0.84483206, z: -0.86534816}
-  m_LocalScale: {x: 1, y: 1, z: 1}
-  m_Children: []
-  m_Father: {fileID: 0}
-  m_RootOrder: 1
-  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

+ 33 - 32
GameClient/Assets/ThirdParty/ShareSDK/GFG/AbShareSDKHandler.cs

@@ -10,7 +10,8 @@ namespace cn.sharesdk.unity3d
 
         void Start()
         {
-            ssdk = gameObject.GetComponent<ShareSDK>();
+            GameObject mainCameraObject = GameObject.Find("GameLauncher");
+            ssdk = mainCameraObject.GetComponent<ShareSDK>();
             ssdk.authHandler = OnAuthResultHandler;
             ssdk.shareHandler = OnShareResultHandler;
             ssdk.showUserHandler = OnGetUserInfoResultHandler;
@@ -18,7 +19,7 @@ namespace cn.sharesdk.unity3d
             ssdk.followFriendHandler = OnFollowFriendResultHandler;
             ssdk.clientValidForAndroidHandler = OnIsClientValidForAndroidHandler;
 
-            mobsdk = gameObject.GetComponent<MobSDK>();
+            mobsdk = mainCameraObject.GetComponent<MobSDK>();
         }
 
         public abstract void OnAuthResult(int reqID, ResponseState state, PlatformType type, Hashtable result);
@@ -52,24 +53,24 @@ namespace cn.sharesdk.unity3d
             {
                 if (result != null && result.Count > 0)
                 {
-                    print("authorize success !" + "Platform :" + type + "result:" + MiniJSON.jsonEncode(result));
+                    Debug.Log("authorize success !" + "Platform :" + type + "result:" + MiniJSON.jsonEncode(result));
                 }
                 else
                 {
-                    print("authorize success !" + "Platform :" + type);
+                    Debug.Log("authorize success !" + "Platform :" + type);
                 }
             }
             else if (state == ResponseState.Fail)
             {
 #if UNITY_ANDROID
-                print("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
+                Debug.Log("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
 #elif UNITY_IPHONE
-			print ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
+			Debug.Log ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
 #endif
             }
             else if (state == ResponseState.Cancel)
             {
-                print("cancel !");
+                Debug.Log("cancel !");
             }
 
             OnAuthResult(reqID, state, type, result);
@@ -86,22 +87,22 @@ namespace cn.sharesdk.unity3d
         {
             if (state == ResponseState.Success)
             {
-                print("get user info result :");
-                print(MiniJSON.jsonEncode(result));
-                print("AuthInfo:" + MiniJSON.jsonEncode(ssdk.GetAuthInfo(type)));
-                print("Get userInfo success !Platform :" + type);
+                Debug.Log("get user info result :");
+                Debug.Log(MiniJSON.jsonEncode(result));
+                Debug.Log("AuthInfo:" + MiniJSON.jsonEncode(ssdk.GetAuthInfo(type)));
+                Debug.Log("Get userInfo success !Platform :" + type);
             }
             else if (state == ResponseState.Fail)
             {
 #if UNITY_ANDROID
-                print("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
+                Debug.Log("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
 #elif UNITY_IPHONE
-			print ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
+			Debug.Log ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
 #endif
             }
             else if (state == ResponseState.Cancel)
             {
-                print("cancel !");
+                Debug.Log("cancel !");
             }
 
             OnGetUserInfoResult(reqID, state, type, result);
@@ -118,20 +119,20 @@ namespace cn.sharesdk.unity3d
         {
             if (state == ResponseState.Success)
             {
-                print("share successfully - share result :");
-                print(MiniJSON.jsonEncode(result));
+                Debug.Log("share successfully - share result :");
+                Debug.Log(MiniJSON.jsonEncode(result));
             }
             else if (state == ResponseState.Fail)
             {
 #if UNITY_ANDROID
-                print("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
+                Debug.Log("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
 #elif UNITY_IPHONE
-			print ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
+			Debug.Log ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
 #endif
             }
             else if (state == ResponseState.Cancel)
             {
-                print("cancel !");
+                Debug.Log("cancel !");
             }
 
             OnShareResult(reqID, state, type, result);
@@ -148,20 +149,20 @@ namespace cn.sharesdk.unity3d
         {
             if (state == ResponseState.Success)
             {
-                print("get friend list result :");
-                print(MiniJSON.jsonEncode(result));
+                Debug.Log("get friend list result :");
+                Debug.Log(MiniJSON.jsonEncode(result));
             }
             else if (state == ResponseState.Fail)
             {
 #if UNITY_ANDROID
-                print("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
+                Debug.Log("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
 #elif UNITY_IPHONE
-			print ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
+			Debug.Log ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
 #endif
             }
             else if (state == ResponseState.Cancel)
             {
-                print("cancel !");
+                Debug.Log("cancel !");
             }
 
             OnGetFriendsResult(reqID, state, type, result);
@@ -179,19 +180,19 @@ namespace cn.sharesdk.unity3d
         {
             if (state == ResponseState.Success)
             {
-                print("Follow friend successfully !");
+                Debug.Log("Follow friend successfully !");
             }
             else if (state == ResponseState.Fail)
             {
 #if UNITY_ANDROID
-                print("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
+                Debug.Log("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
 #elif UNITY_IPHONE
-			print ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
+			Debug.Log ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
 #endif
             }
             else if (state == ResponseState.Cancel)
             {
-                print("cancel !");
+                Debug.Log("cancel !");
             }
 
             OnFollowFriendResult(reqID, state, type, result);
@@ -208,16 +209,16 @@ namespace cn.sharesdk.unity3d
         {
             if (state == ResponseState.Success)
             {
-                print("IsClientValidForAndroid successfully !");
-                print("IsClientValidForAndroid:" + MiniJSON.jsonEncode(MiniJSON.jsonEncode(result)));
+                Debug.Log("IsClientValidForAndroid successfully !");
+                Debug.Log("IsClientValidForAndroid:" + MiniJSON.jsonEncode(MiniJSON.jsonEncode(result)));
             }
             else if (state == ResponseState.Fail)
             {
-                print("IsClientValidForAndroid Fail !");
+                Debug.Log("IsClientValidForAndroid Fail !");
             }
             else if (state == ResponseState.Cancel)
             {
-                print("cancel !");
+                Debug.Log("cancel !");
             }
 
             OnIsClientValidForAndroidResult(reqID, state, type, result);

+ 7 - 7
GameClient/Assets/ThirdParty/ShareSDK/ShareSDKDevInfo.cs

@@ -169,8 +169,8 @@ namespace cn.sharesdk.unity3d {
 
 #if UNITY_IPHONE || UNITY_IOS
 		public int type = (int)PlatformType.WeChat;
-		public string app_id = "wx617c77c82218ea2c";
-		public string app_secret = "c7253e5289986cf4c4c74d1ccc185fb1";
+		public string app_id = "wxf8452955e8de2e46";
+		public string app_secret = "f9fcae1666d6e9e24cac0f7dd395433d";
 		public string app_universalLink = "https://70imc.share2dlink.com/";
 #endif
 
@@ -179,7 +179,7 @@ namespace cn.sharesdk.unity3d {
 		public string SortId = "5";
 		public string AppId = "wxf8452955e8de2e46";
 		public string AppSecret = "f9fcae1666d6e9e24cac0f7dd395433d";
-		public string UserName = "gh_038755574468@app";
+		public string UserName = "万世镜";
 		public string Path = "/page/API/pages/share/share";
 		public bool BypassApproval = false;
 		public bool WithShareTicket = true;
@@ -194,8 +194,8 @@ namespace cn.sharesdk.unity3d {
 
 #if UNITY_IPHONE || UNITY_IOS
 		public int type = (int)PlatformType.WeChatMoments;
-		public string app_id = "wx617c77c82218ea2c";
-		public string app_secret = "c7253e5289986cf4c4c74d1ccc185fb1";
+		public string app_id = "wxf8452955e8de2e46";
+		public string app_secret = "f9fcae1666d6e9e24cac0f7dd395433d";
 		public string app_universalLink = "https://70imc.share2dlink.com/";
 #endif
 
@@ -215,8 +215,8 @@ namespace cn.sharesdk.unity3d {
 
 #if UNITY_IPHONE || UNITY_IOS
 		public int type = (int)PlatformType.WeChatFavorites;
-		public string app_id = "wx617c77c82218ea2c";
-		public string app_secret = "c7253e5289986cf4c4c74d1ccc185fb1";
+		public string app_id = "wxf8452955e8de2e46";
+		public string app_secret = "f9fcae1666d6e9e24cac0f7dd395433d";
 		public string app_universalLink = "https://70imc.share2dlink.com/";
 #endif
 

+ 1 - 1
GameClient/ProjectSettings/ProjectSettings.asset

@@ -164,7 +164,7 @@ PlayerSettings:
   androidSupportedAspectRatio: 1
   androidMaxAspectRatio: 2.1
   applicationIdentifier:
-    Android: com.gfg.douyoudev
+    Android: com.shenyou.gfg.twsj
     Standalone: com.gfg.---------
   buildNumber:
     Standalone: 0