From af5b1f71fbee29ba2b2ee5068786f7407113aa16 Mon Sep 17 00:00:00 2001 From: HUANGBANGLIN Date: Wed, 17 Sep 2025 17:38:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=9F=E6=88=90=E8=88=92?= =?UTF-8?q?=E6=96=87=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/App_Code/api/ShuWenController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/App_Code/api/ShuWenController.cs b/web/App_Code/api/ShuWenController.cs index 3a36897..3a55c1e 100644 --- a/web/App_Code/api/ShuWenController.cs +++ b/web/App_Code/api/ShuWenController.cs @@ -74,9 +74,9 @@ public class ShuWenController : ApiController { shuwen.ShuWenList = ProcessDesserts2(_db.pro_order_detail.Where(a => a.pro_order.activity_num == activitynum.Value).ToList()); } - catch + catch (Exception ex) { - + return BadRequest("生成舒文失败:" + ex.Message); } shuwen.IsGenerating = false; shuwen.UpdateTime = DateTime.Now;