From db227144dedfb5fb5b1e94e8c8b14eab9eb7462f Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 01 十二月 2022 13:32:50 +0800 Subject: [PATCH] 中国政采网的四川数据 发送验证码 --- zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs b/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs index 3904acf..cb26f66 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() @@ -54,6 +56,10 @@ //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(); } -- Gitblit v1.9.1