old mode 100755
new mode 100644
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 2021-01-28 |
| | | /// 加载第三方品牌icon |
| | | /// </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> |
| | | ///// 获取拼接用户头像的ImageKey规则 |
| | | ///// </summary> |