From 90858c80d9921b555119f41060c1f883f6e6ffc5 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 26 十二月 2024 12:49:35 +0800
Subject: [PATCH] 提交

---
 DocumentServiceAPI.Application/UserAndLogin/LogInController.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/DocumentServiceAPI.Application/UserAndLogin/LogInController.cs b/DocumentServiceAPI.Application/UserAndLogin/LogInController.cs
index b9c52fd..08408a7 100644
--- a/DocumentServiceAPI.Application/UserAndLogin/LogInController.cs
+++ b/DocumentServiceAPI.Application/UserAndLogin/LogInController.cs
@@ -173,6 +173,14 @@
                     if (!needtoken)
                         throw Oops.Oh($"璐︽埛鎴栬�呭瘑鐮侀敊璇�");
                 }
+
+                 var hasPermissions=   await _userService.TenderHasPermissions(Tender.TenderId);
+                if(!hasPermissions)
+                {
+                    throw Oops.Oh($"闆嗗洟鐢ㄨ处鍙凤細{Tender.ItCode}浣跨敤鏈熼檺宸茬粡杩囨湡鎴栬�呮病鏈変娇鐢ㄦ潈闄�");
+                }
+
+
                     var token = _tokenService.CreateToken(new Model.JwtInfo
                     {
                         EID = Tender.EmployeeID,
@@ -206,7 +214,7 @@
           var ad=  ITCode.TryValidate(ValidationTypes.PhoneNumber);
             if(!ad.IsValid)
             {
-                throw Oops.Oh("璇疯緭鍏ユ纭殑璐﹀彿");
+                throw Oops.Oh("鍛樺伐璐﹀彿闇�瑕佺敤鐢佃瘽鍙风爜");
             }
               
           var count= await db.Queryable<TenantInfo>().Where(x=>x.ItCode==ITCode&&x.IsEn==true&&x.IsDel==false).WithCache(600).CountAsync();

--
Gitblit v1.9.1