From b2f54b68d280bb05aeb72dc534539a92ff792fcf Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期四, 02 四月 2026 16:59:49 +0800
Subject: [PATCH] 合并分支

---
 WebAPI/Service/JwtAuthorizeAttribute.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Service/JwtAuthorizeAttribute.cs b/WebAPI/Service/JwtAuthorizeAttribute.cs
index f5f90bc..3ef48a0 100644
--- a/WebAPI/Service/JwtAuthorizeAttribute.cs
+++ b/WebAPI/Service/JwtAuthorizeAttribute.cs
@@ -94,7 +94,7 @@
                     }
                 }
                 
-            }else if (!string.IsNullOrWhiteSpace(actionAttr?.HModName) && !string.IsNullOrWhiteSpace(actionAttr?.Operate))
+            }else if (actionAttr != null && !string.IsNullOrWhiteSpace(actionAttr?.HModName) && !string.IsNullOrWhiteSpace(actionAttr?.Operate))
             {
                 // 鍗曠嫭鍦ㄥ姩浣滀笂鍚敤閴存潈鍔熻兘
                 PermissionStr = actionAttr.HModName + actionAttr.Operate;

--
Gitblit v1.9.1