From 5e5a0d4eb60f70b969ece9c6c4cc90d28c2edf55 Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期四, 31 十月 2024 16:31:33 +0800
Subject: [PATCH] 修复下发时候无法显示error的问题

---
 _Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_DispatchDL.qbl |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_DispatchDL.qbl b/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_DispatchDL.qbl
index 67b1d11..21505a4 100644
--- a/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_DispatchDL.qbl
+++ b/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_DispatchDL.qbl
@@ -2,7 +2,7 @@
 #parent: #root
 StaticMethod DispatchDL (
   const RecycleBin recycleBin
-) as String
+) as owning JSON
 {
   TextBody:
   [*
@@ -55,12 +55,6 @@
     
     respJSON   := JSON::Parse( htmlresult );
     
-    result := respJSON.Get( "State" ).AsString();
-    message := respJSON.Get( "Message" ).AsString();
-    if( result = "Error" ){
-      error( "杩滅▼鏈嶅姟鍣ㄨ繑鍥炰簡涓�涓敊璇細" + message );
-    }
-    
-    return message;
+    return &respJSON;
   *]
 }

--
Gitblit v1.9.3