优化读单

This commit is contained in:
wule committed 2026-10-19 15:13:18 +08:00
1 parent 8e0cc20649
commit b74e4598a7
3 files changed
+7 -3

No files matched your search

@@ -344,7 +344,10 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
})); }));
int page = 0; int page = 0;
int totalPage = 1; int totalPage = 1;
int pageSize = 200; int pageSize = 50;
#if DEBUG
pageSize = 200;
#endif
while (true && (IsAutoReadOrder || !string.IsNullOrEmpty(orderIds))) while (true && (IsAutoReadOrder || !string.IsNullOrEmpty(orderIds)))
{ {
@@ -796,7 +796,8 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
// })); // }));
//}); //});
var bImg = await AllBase.ImageBuild.LoadBitmipImageFromUrlAsync(order_item.thumb_img + "?imageView2/1/w/100/format/webp|imageMogr2/auto-orient="); //var bImg = await AllBase.ImageBuild.LoadBitmipImageFromUrlAsync(order_item.thumb_img + "?imageView2/1/w/100/format/webp|imageMogr2/auto-orient=");
var bImg = await AllBase.ImageBuild.LoadBitmipImageFromUrlAsync(order_item.thumb_img);
imgOrderItem.Source = bImg; imgOrderItem.Source = bImg;
+1 -1
View File
@@ -484,7 +484,7 @@ namespace AllBase
if (width != null && height != null) if (width != null && height != null)
{ {
bitmap.DecodePixelWidth = width.Value; bitmap.DecodePixelWidth = width.Value;
bitmap.DecodePixelHeight = height.Value; //bitmap.DecodePixelHeight = height.Value;
} }
bitmap.CreateOptions = BitmapCreateOptions.PreservePixelFormat; bitmap.CreateOptions = BitmapCreateOptions.PreservePixelFormat;
bitmap.CacheOption = BitmapCacheOption.OnLoad; // 或者使用 BitmapCacheOption.OnLoad 以减少内存使用 bitmap.CacheOption = BitmapCacheOption.OnLoad; // 或者使用 BitmapCacheOption.OnLoad 以减少内存使用