From af908216bb0012fe849e3b49b3039c7ba238f8f0 Mon Sep 17 00:00:00 2001
From: liangxiaozhen <liangxiaozhen>
Date: 星期五, 11 八月 2023 14:35:43 +0800
Subject: [PATCH] 补充controller,修改变量,主页bug修改

---
 force-app/main/default/classes/AgencyContractCloneController.cls |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/force-app/main/default/classes/AgencyContractCloneController.cls b/force-app/main/default/classes/AgencyContractCloneController.cls
index 16de7f2..ae13476 100644
--- a/force-app/main/default/classes/AgencyContractCloneController.cls
+++ b/force-app/main/default/classes/AgencyContractCloneController.cls
@@ -2,11 +2,11 @@
     @AuraEnabled
     public static InitData init(){
         InitData res  = new initData();
-        ID myUserID = UserInfo.getUserId();
+        id myUserID = UserInfo.getUserId();
         try {
-            User userinfo = [SELECT Id,ProfileId FROM User WHERE Id = :myUserID LIMIT 1];
-            res.Id = userinfo.Id;
-            res.ProfileId = userinfo.ProfileId;
+            User userinfo = [SELECT id,profileId FROM User WHERE id = :myUserID LIMIT 1];
+            res.id = userinfo.id;
+            res.profileId = userinfo.profileId;
         } catch (Exception e) {
             throw new AuraHandledException(e.getMessage());
         }
@@ -14,8 +14,8 @@
     }
     public class InitData{
         @AuraEnabled
-        public string Id;
+        public string id;
         @AuraEnabled
-        public string ProfileId;
+        public string profileId;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1