liuqilin 7 лет назад
Родитель
Сommit
4da6eef5e2

+ 3 - 3
Assets/Plugins/Android.meta

@@ -1,8 +1,8 @@
 fileFormatVersion: 2
-guid: 3a9f7448830297d42b1500706b989fe9
+guid: 016ad9908edfb624eb7116672b3eeda5
 folderAsset: yes
-timeCreated: 1496738231
-licenseType: Pro
+timeCreated: 1506149950
+licenseType: Free
 DefaultImporter:
   userData: 
   assetBundleName: 

+ 1 - 3
Assets/Plugins/iOS.meta

@@ -1,8 +1,6 @@
 fileFormatVersion: 2
-guid: e3bcdeaed45b14c2f907fddf311232f6
+guid: 091987eeef9232240963d4755d7ea67e
 folderAsset: yes
-timeCreated: 1497192264
-licenseType: Pro
 DefaultImporter:
   userData: 
   assetBundleName: 

+ 2 - 2
Assets/Resource/Logo.unity

@@ -612,9 +612,9 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: f1828554d8ffa12449b221fe29b2c32c, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  AuditEdition: 0
+  AuditEdition: 1
   DebugMode: 0
-  CatchException: 0
+  CatchException: 1
   DebugModeGo: {fileID: 0}
 --- !u!4 &1833966245
 Transform:

+ 28 - 25
Assets/Script/Manage/IAPManager.cs

@@ -83,7 +83,7 @@ public class IAPManager : MonoBehaviour, IStoreListener
                 if (LastPlayADsTime == null)
                     return;
 
-                if (HttpManager.IsConnect && (HttpManager.CurrentDateTime.Subtract((DateTime)LastPlayADsTime).TotalSeconds > CreateADChestTime))
+                if (HttpManager.IsConnect && (HttpManager.CurrentDateTime.Subtract((DateTime) LastPlayADsTime).TotalSeconds > CreateADChestTime))
                 {
                     if (GardenManager.InMinigameFlag && !VisitManager.InVisit && !TutorialManager.NewplayerTutorial && !SFSManager.PlazaRoomController.InPlazaRoom && !Player.InDressRoom)
                     {
@@ -138,7 +138,7 @@ public class IAPManager : MonoBehaviour, IStoreListener
         if (Application.isMobilePlatform || Application.platform == RuntimePlatform.IPhonePlayer)
         {
             ShareSdk = Instance.gameObject.AddComponent<ShareSDK>();
-
+            DebugManager.Log("0");
             ShareSdk.Initialize();
 
             ShareSdk.shareHandler = ShareCallback;
@@ -227,7 +227,7 @@ public class IAPManager : MonoBehaviour, IStoreListener
             Bubble.Show(null, Language.GetStr(LanguageLabel.IAP__LoadAd));
         }
     }
-    
+
     public static void PlayADCallback(ShowResult showResult)
     {
         if (showResult == ShowResult.Finished)
@@ -306,7 +306,7 @@ public class IAPManager : MonoBehaviour, IStoreListener
     }
 
 
-    public void OnInitialized(IStoreController controller, IExtensionProvider extensions)//
+    public void OnInitialized(IStoreController controller, IExtensionProvider extensions) //
     {
         Inited = true;
         IStoreController = controller;
@@ -337,30 +337,33 @@ public class IAPManager : MonoBehaviour, IStoreListener
 
     public static void Share(string imagePath = null)
     {
-        ShareContent shareContent = new ShareContent();
-
-        shareContent.SetText(Language.GetStr(LanguageLabel.Common__ShareContent));
-        shareContent.SetTitle(Language.GetStr(LanguageLabel.Common__ShareTit));
-        shareContent.SetTitleUrl(Language.GetShareUrl());
-
-        shareContent.SetSite(Language.GetShareUrl());
-        shareContent.SetSiteUrl(Language.GetShareUrl());
-
-        shareContent.SetUrl(Language.GetShareUrl());
-
-        shareContent.SetShareType(ContentType.App);
-
-        if (string.IsNullOrEmpty(imagePath))
-        {
-            shareContent.SetImageUrl(ImageUrl);
+        try
+        {
+            ShareContent shareContent = new ShareContent();
+            shareContent.SetText(Language.GetStr(LanguageLabel.Common__ShareContent));
+            shareContent.SetTitle(Language.GetStr(LanguageLabel.Common__ShareTit));
+            shareContent.SetTitleUrl(Language.GetShareUrl());
+            shareContent.SetSite(Language.GetShareUrl());
+            shareContent.SetSiteUrl(Language.GetShareUrl());
+            shareContent.SetUrl(Language.GetShareUrl());
+            shareContent.SetShareType(ContentType.App);
+            if (string.IsNullOrEmpty(imagePath))
+            {
+                shareContent.SetImageUrl(ImageUrl);
+            }
+            else
+            {
+                ImagePath = imagePath;
+                shareContent.SetImagePath(imagePath);
+            }
+            DebugManager.Log("1");
+            ShareSdk.ShowPlatformList(null, shareContent, 100, 100);
+            DebugManager.Log("A");
         }
-        else
+        catch (Exception e)
         {
-            ImagePath = imagePath;
-            shareContent.SetImagePath(imagePath);
+            DebugManager.Log(e.ToString());
         }
-
-        ShareSdk.ShowPlatformList(null, shareContent, 100, 100);
     }
 
     public static void Authorize()