From bf14008acffe7a9a7ac6e2eeb38ce3552b71b33a Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 14 三月 2023 13:43:30 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs b/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs
index 3904acf..299b638 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs
@@ -21,16 +21,18 @@
         private readonly ILogger<ZhuanjiahuidaController> _logger;
         private readonly ILZhuanjiahuidumService _lZhuanjiahuidumService;
         private readonly ILiaotianService _liaotianService;
-        private readonly IConfiguration _configuration;
+        //private readonly IConfiguration _configuration;
+        private readonly IPltPageService _pltPageService;
 
 
 
-
-        public ZhuanjiahuidaController(ILogger<ZhuanjiahuidaController> logger, ILZhuanjiahuidumService lZhuanjiahuidumService, ILiaotianService liaotianService)
+        public ZhuanjiahuidaController(ILogger<ZhuanjiahuidaController> logger, ILZhuanjiahuidumService lZhuanjiahuidumService, ILiaotianService liaotianService
+              , IPltPageService pltPageService)
         {
             _logger = logger;
             _lZhuanjiahuidumService = lZhuanjiahuidumService;
             _liaotianService = liaotianService;
+            _pltPageService = pltPageService;
         }
         [CheckLogin]
         public IActionResult Index()
@@ -53,6 +55,10 @@
             //actionEntity1.ActionName = "鏂板";
             //actionlist.Add(actionEntity1);
             ViewData["ActionInfo"] = actionlist;
+
+            var pageEntities = _pltPageService.GetUserPage(curentuser.Id, "/Zhuanjiahuida/Index");
+            var pageEntities2 = pageEntities.Where(x => x.PageMethod == "02").ToList();
+            ViewData["ActionInfo2"] = pageEntities2;
 
             ViewBag.shifou = _liaotianService.GetSYScode("system", "shifou").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
             return View();
@@ -160,7 +166,7 @@
                 {
                     //string SecurityKey = _configuration.GetSection("SecurityKey").Value;
                     var keyId = headers["Authorization"].FirstOrDefault();
-                    if (string.IsNullOrEmpty("keyId"))
+                    if (string.IsNullOrEmpty(keyId))
                     {
                         returnMsg.code = 2;
                         returnMsg.error = "娌℃湁鑾峰彇鍒皌oken";
@@ -234,7 +240,7 @@
                 {
                     //string SecurityKey = _configuration.GetSection("SecurityKey").Value;
                     var keyId = headers["Authorization"].FirstOrDefault();
-                    if (string.IsNullOrEmpty("keyId"))
+                    if (string.IsNullOrEmpty(keyId))
                     {
                         returnMsg.code = 2;
                         returnMsg.error = "娌℃湁鑾峰彇鍒皌oken";

--
Gitblit v1.9.1