From 3dc1554797ce21794a50be251e25ea0d840ff6d4 Mon Sep 17 00:00:00 2001 From: z8018 <1282578289@qq.com> Date: 星期二, 26 八月 2025 14:44:09 +0800 Subject: [PATCH] 1 --- 无仓储层版WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Filter/CustomAuthorizeFilter.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git "a/\346\227\240\344\273\223\345\202\250\345\261\202\347\211\210WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Filter/CustomAuthorizeFilter.cs" "b/\346\227\240\344\273\223\345\202\250\345\261\202\347\211\210WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Filter/CustomAuthorizeFilter.cs" index 854f249..214034f 100644 --- "a/\346\227\240\344\273\223\345\202\250\345\261\202\347\211\210WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Filter/CustomAuthorizeFilter.cs" +++ "b/\346\227\240\344\273\223\345\202\250\345\261\202\347\211\210WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Filter/CustomAuthorizeFilter.cs" @@ -10,11 +10,11 @@ // 浣犵殑鑷畾涔夋巿鏉冮�昏緫 // 渚嬪锛屸�屾鏌ョ敤鎴锋槸鍚﹀凡鐧诲綍锛屸�屾垨鑰呬粬浠槸鍚︽湁鐗瑰畾鐨勮鑹叉垨鏉冮檺 - if (!context.HttpContext.User.Identity.IsAuthenticated) - { - // 鐢ㄦ埛鏈櫥褰曪紝鈥岄噸瀹氬悜鍒扮櫥褰曢〉闈㈡垨杩斿洖401鐘舵�佺爜 - context.Result = new ChallengeResult(); - } + //if (!context.HttpContext.User.Identity.IsAuthenticated) + //{ + // // 鐢ㄦ埛鏈櫥褰曪紝鈥岄噸瀹氬悜鍒扮櫥褰曢〉闈㈡垨杩斿洖401鐘舵�佺爜 + // context.Result = new ChallengeResult(); + //} } } } -- Gitblit v1.9.3