From 492f744d9d84289e27b2ddac9a9b4a2137fd11d6 Mon Sep 17 00:00:00 2001
From: KKbes <1620284052@qq.com>
Date: 星期一, 07 八月 2023 11:25:24 +0800
Subject: [PATCH] slefreview

---
 force-app/main/default/classes/lexSubAuthorizedButtonController.cls |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/lexSubAuthorizedButtonController.cls b/force-app/main/default/classes/lexSubAuthorizedButtonController.cls
index 3c2e572..948edb2 100644
--- a/force-app/main/default/classes/lexSubAuthorizedButtonController.cls
+++ b/force-app/main/default/classes/lexSubAuthorizedButtonController.cls
@@ -15,15 +15,17 @@
     }
 
     @AuraEnabled
-    public static void updateStatuById(String Id){
+    public static String updateStatuById(String Id){
         try{
             SubAuthorized__c res = new SubAuthorized__c();
             res.Id = Id;
             res.Status__c = '宸插彇娑�';
             update res;
+            return 'success';
         }
         catch(Exception e){
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
+            return e.getMessage();
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1