From 6023f73a031bf93797d1cb74e705371abd3990e6 Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期五, 27 六月 2025 14:47:22 +0800
Subject: [PATCH] no message

---
 Admin.NET/FZCTB.NET.API.Application/Auth/AuthService.cs |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/Admin.NET/FZCTB.NET.API.Application/Auth/AuthService.cs b/Admin.NET/FZCTB.NET.API.Application/Auth/AuthService.cs
index 376ef20..4c6b98e 100644
--- a/Admin.NET/FZCTB.NET.API.Application/Auth/AuthService.cs
+++ b/Admin.NET/FZCTB.NET.API.Application/Auth/AuthService.cs
@@ -19,6 +19,8 @@
 using FZCTB.NET.API.Application.Auth.DTO;
 using Furion.FriendlyException;
 using FZCZTB.NET.SYSService.CustomerSYS;
+using Furion;
+using NewLife;
 
 namespace FZCTB.NET.API.Application.Auth
 {
@@ -99,6 +101,37 @@
 
             return await CreateToken(user, input.ExRuleCode??"");
         }
+
+        /// <summary>
+        ///  鍒囨崲瑙掕壊 宸茬櫥褰曡繘鍘昏鑹叉垨鑰呭垏鎹㈣鑹叉槸璋冪敤锛岄渶瑕佹浛鎹oken,鐩稿綋浜庣櫥褰�
+        /// </summary>
+        [DisplayName("鍒囨崲瑙掕壊")]
+        public async Task<CustomerLoginOutput> ChangeLogoInExRule(string RuleCode)
+        {
+            var id = App.User.FindFirst(ClaimConst.UserId)?.Value.ToLong() ?? 0;
+            if (id == 0)
+            {
+                throw Oops.Oh("鐢ㄦ埛鍑瘉閿欒");
+
+            }
+            //
+      
+            // 鑾峰彇鐧诲綍绉熸埛鍜岀敤鎴�
+            // 鑾峰彇鐧诲綍绉熸埛鍜岀敤鎴�
+            var user = await _sysUserRep.AsQueryable().Where(x => x.Id == id).Includes(x => x.CoutomerExRols, y => y.ExRole).FirstAsync();
+            if (user == null)
+            {
+                throw Oops.Oh("璇ョ敤鎴锋病鏈夋敞鍐�");
+            }
+            if (user.Status == StatusEnum.Disable)
+            {
+                throw Oops.Oh("鐢ㄥ紓甯�");
+            }
+
+            return await CreateToken(user, RuleCode);
+
+        }
+
         /// <summary>
         /// 鎵嬫満鍙风櫥褰� 馃敄
         /// </summary>

--
Gitblit v1.9.1