From 6828e6dffa299b6249af99ce9c1d3992963f7c18 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期四, 28 一月 2021 17:41:23 +0800
Subject: [PATCH] 20210128:第三方品牌界面

---
 HDL_ON/Common/ImageUtlis.cs |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/Common/ImageUtlis.cs b/HDL_ON/Common/ImageUtlis.cs
old mode 100755
new mode 100644
index f2b6cca..6eb1c54
--- a/HDL_ON/Common/ImageUtlis.cs
+++ b/HDL_ON/Common/ImageUtlis.cs
@@ -352,6 +352,46 @@
             }
         }
 
+
+
+        /// <summary>
+        /// 2021-01-28
+        /// 鍔犺浇绗笁鏂瑰搧鐗宨con
+        /// </summary>
+        /// <param name="imageKey">鍥剧墖璺緞銆佷簯绔笅杞藉浘鐗囩殑鏍囪瘑key</param>
+        /// <param name="imageView">闇�瑕佹樉绀哄浘鐗囩殑ImageView</param>
+        /// <param name="ignoreCache">鏄惁闇�瑕佸拷鐣ョ紦瀛�</param>
+        public void Load3tyBrandIconImages(string imageKey, ImageView imageView)
+        {
+            try
+            {
+                System.Threading.Tasks.Task.Run(() =>
+                {
+                    byte[] imageBytes = GetImageDownloadUrl(imageKey);
+                    if (imageBytes != null)
+                    {
+                        WriteFileByBytes(imageKey, imageBytes);
+                        //2.3 涓嬭浇鎴愬姛锛屾樉绀哄苟缂撳瓨鏈湴
+                        Application.RunOnMainThread(() => {
+                            if (imageView != null)
+                            {
+                                imageView.ImageBytes = imageBytes;
+                                //Utlis.WriteLine("imageKey 鍔犺浇浜戠涓嬭浇鍥剧墖鎴愬姛");
+                            }
+                        });
+                    }
+                });
+            }
+            catch (Exception ex)
+            {
+                Utlis.WriteLine("imageKey 鍔犺浇鍥剧墖寮傚父 catch");
+            }
+            finally
+            {
+            }
+        }
+
+
         //      /// <summary>
         ///// 鑾峰彇鎷兼帴鐢ㄦ埛澶村儚鐨処mageKey瑙勫垯
         ///// </summary>

--
Gitblit v1.8.0