From 3add06f19c3c68289ca58fb61d15dfa059c5c8f5 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期四, 22 七月 2021 09:21:07 +0800
Subject: [PATCH] Merge branch 'wxr7-ez' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into wxr7-ez

---
 HDL_ON/Common/HDLCommon.cs |   31 +++++++++++++++++++------------
 1 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs
index 47eddbb..955fb51 100644
--- a/HDL_ON/Common/HDLCommon.cs
+++ b/HDL_ON/Common/HDLCommon.cs
@@ -648,18 +648,25 @@
                                 {
                                     if (b)
                                     {
-                                        Android.Content.Intent intent = new Android.Content.Intent();
-                                        var bundle = new Android.OS.Bundle();
-                                        //浼犻�抧ame鍙傛暟涓簍inyphp
-                                        bundle.PutString("EzChildAccessToken", ezChildAccessToken);
-                                        bundle.PutString("HdlToken", UserInfo.Current.LoginTokenString);
-                                        bundle.PutString("Url", OnAppConfig.Instance.RequestHttpsHost);
-                                        bundle.PutString("EzvizAppKey", "1aa98a90489b4838b966b57018b4b04b");
-                                        bundle.PutInt("Platform", 1);
-                                        bundle.PutString("HomeId", DB_ResidenceData.Instance.CurrentRegion.id);
-                                        intent.PutExtras(bundle);
-                                        intent.SetComponent(new Android.Content.ComponentName(Shared.Application.Activity, "com.videogo.MainActivity"));
-                                        Shared.Application.Activity.StartActivity(intent);
+                                        ((BaseActivity)Shared.Application.Activity).SetPermission(result =>
+                                        {
+                                            if(result)
+                                            { 
+                                            Android.Content.Intent intent = new Android.Content.Intent();
+                                            var bundle = new Android.OS.Bundle();
+                                            //浼犻�抧ame鍙傛暟涓簍inyphp
+                                            bundle.PutString("EzChildAccessToken", ezChildAccessToken);
+                                            bundle.PutString("HdlToken", UserInfo.Current.LoginTokenString);
+                                            bundle.PutString("Url", OnAppConfig.Instance.RequestHttpsHost);
+                                            bundle.PutString("EzvizAppKey", "1aa98a90489b4838b966b57018b4b04b");
+                                            bundle.PutInt("Platform", 1);
+                                            bundle.PutString("HomeId", DB_ResidenceData.Instance.CurrentRegion.id);
+                                            intent.PutExtras(bundle);
+                                            intent.SetComponent(new Android.Content.ComponentName(Shared.Application.Activity, "com.videogo.MainActivity"));
+                                            Shared.Application.Activity.StartActivity(intent);
+                                            }
+                                        }, "android.permission.RECORD_AUDIO");
+
                                     }
                                 });
 #endif

--
Gitblit v1.8.0