From 488efb508eb0648773fe7b68e810e04bcd7ca075 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 11 十二月 2020 15:58:15 +0800
Subject: [PATCH] 20201211
---
HDL_ON/Common/ImageUtlis.cs | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/HDL_ON/Common/ImageUtlis.cs b/HDL_ON/Common/ImageUtlis.cs
index ce9f33e..c85b61e 100644
--- a/HDL_ON/Common/ImageUtlis.cs
+++ b/HDL_ON/Common/ImageUtlis.cs
@@ -107,12 +107,12 @@
else
{
//2.鑷畾涔夊浘鐗囷紝妫�娴嬫槸鍚︽湰鍦扮紦瀛樿繃锛屾病鏈夊垯浜戠涓嬭浇鐒跺悗缂撳瓨
- if (!ignoreCache && FileUtils.Exists(imageKey))
+ if (!ignoreCache && Common.FileUtlis.Files.Exists(imageKey))
{
//2.1 鏈湴鏈夌紦瀛樺苟涓斾笉蹇界暐缂撳瓨锛岀洿鎺ユ湰鍦拌鍙�
if (imageView != null)
{
- imageView.ImageBytes = FileUtils.ReadFile(imageKey);
+ imageView.ImageBytes = Common.FileUtlis.Files.ReadFile(imageKey);
//Utlis.WriteLine("imageKey 鍔犺浇鑷畾涔夌紦瀛樺浘鐗囨垚鍔�");
}
}
@@ -124,7 +124,7 @@
byte[] imageBytes = GetImageDownloadUrl(imageKey);
if (imageBytes != null)
{
- FileUtils.WriteFileByBytes(imageKey, imageBytes);
+ Common.FileUtlis.Files.WriteFileByBytes(imageKey, imageBytes);
//2.3 涓嬭浇鎴愬姛锛屾樉绀哄苟缂撳瓨鏈湴
Application.RunOnMainThread(() =>
{
@@ -178,7 +178,7 @@
else
{
//2.鑷畾涔夊浘鐗囷紝妫�娴嬫槸鍚︽湰鍦扮紦瀛樿繃锛屾病鏈夊垯浜戠涓嬭浇鐒跺悗缂撳瓨
- if (!ignoreCache && FileUtils.Exists(imageKey))
+ if (!ignoreCache && Common.FileUtlis.Files.Exists(imageKey))
{
//2.1 鏈湴鏈夌紦瀛樺苟涓斾笉蹇界暐缂撳瓨锛岀洿鎺ユ湰鍦拌鍙�
if (frameLayout != null)
@@ -195,7 +195,7 @@
byte[] imageBytes = GetImageDownloadUrl(imageKey);
if (imageBytes != null)
{
- FileUtils.WriteFileByBytes(imageKey, imageBytes);
+ Common.FileUtlis.Files.WriteFileByBytes(imageKey, imageBytes);
//2.3 涓嬭浇鎴愬姛锛屾樉绀哄苟缂撳瓨鏈湴
Application.RunOnMainThread(() =>
{
@@ -259,10 +259,10 @@
{
var imageKey = GetHeadImageKey(userId);
byte[] imageBytes;
- if (!ignoreCache && FileUtils.Exists(imageKey))
+ if (!ignoreCache && Common.FileUtlis.Files.Exists(imageKey))
{
//鏈湴鏈夌紦瀛�
- imageBytes = FileUtils.ReadFile(imageKey);
+ imageBytes = Common.FileUtlis.Files.ReadFile(imageKey);
}
else
{
@@ -271,7 +271,7 @@
if(imageBytes != null)
{
//淇濆瓨鍒版湰鍦�
- FileUtils.WriteFileByBytes(imageKey, imageBytes);
+ Common.FileUtlis.Files.WriteFileByBytes(imageKey, imageBytes);
}
}
--
Gitblit v1.8.0