From 8c8404c55a863844cc674a8bedb2cfdb92c1c288 Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期六, 08 二月 2025 09:04:32 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into cyronghe

---
 cylsg/EzUpFile/EzFileUploadService.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/cylsg/EzUpFile/EzFileUploadService.cs b/cylsg/EzUpFile/EzFileUploadService.cs
index da61bfd..e48e3c8 100644
--- a/cylsg/EzUpFile/EzFileUploadService.cs
+++ b/cylsg/EzUpFile/EzFileUploadService.cs
@@ -302,7 +302,7 @@
 
                 if (FileData.Length > maxSize)
                 {
-                    throw Oops.Oh(" 涓婁紶鏂囦欢涓嶅彲瓒呭嚭500K");
+                    throw Oops.Oh(" 涓婁紶鏂囦欢涓嶅彲瓒呭嚭5M");
                 }
 
 
@@ -316,13 +316,13 @@
                 }
 
                 MemoryStream ms = new MemoryStream();
-                if (oimage.Width > 600)
+                if (oimage.Width > 1200)
 
                 {
                     if (oimage.Width > oimage.Height)
-                        oimage.GetThumbnailImage(600, 400, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png);
+                        oimage.GetThumbnailImage(1200, 800, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png);
                     else
-                        oimage.GetThumbnailImage(400, 600, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png);
+                        oimage.GetThumbnailImage(800, 1200, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png);
                 }
                 else
                     oimage.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
@@ -349,7 +349,7 @@
                 catch (Exception e)
                 {
 
-                    throw Oops.Oh(e.Message);
+                    throw Oops.Oh(e.Message+"鑵捐浜戯紝鎴栬�呴樋閲屼簯鎿嶄綔閿欒");
                 }
             }
             catch (Exception e)
@@ -371,7 +371,7 @@
 
                 if (FileData.Length > maxSize)
                 {
-                    throw Oops.Oh(" 涓婁紶鏂囦欢涓嶅彲瓒呭嚭500K");
+                    throw Oops.Oh(" 涓婁紶鏂囦欢涓嶅彲瓒呭嚭5M");
                 }
 
 
@@ -385,13 +385,13 @@
                 }
 
                 MemoryStream ms = new MemoryStream();
-                if (oimage.Width > 600)
+                if (oimage.Width > 1200)
 
                 {
                     if (oimage.Width > oimage.Height)
-                        oimage.GetThumbnailImage(600, 400, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png);
+                        oimage.GetThumbnailImage(1200, 800, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png);
                     else
-                        oimage.GetThumbnailImage(400, 600, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png);
+                        oimage.GetThumbnailImage(800, 1200, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png);
                 }
                 else
                     oimage.Save(ms, System.Drawing.Imaging.ImageFormat.Png);

--
Gitblit v1.9.1