From eadc1f646e81e8ffbe940b13163aee9d107d6663 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期三, 13 三月 2024 09:03:32 +0800
Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/PlayPai into 2.0

---
 cloud-server-other/src/main/java/com/dsh/other/util/HeaderAuthUtil.java |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/cloud-server-other/src/main/java/com/dsh/other/util/HeaderAuthUtil.java b/cloud-server-other/src/main/java/com/dsh/other/util/HeaderAuthUtil.java
new file mode 100644
index 0000000..f8d324f
--- /dev/null
+++ b/cloud-server-other/src/main/java/com/dsh/other/util/HeaderAuthUtil.java
@@ -0,0 +1,21 @@
+package com.dsh.other.util;
+
+import javax.servlet.http.HttpServletRequest;
+
+public class HeaderAuthUtil {
+
+    /**
+     * 用户UserId变量
+     */
+    protected final static String HEADER_USERID = "userId";
+
+    /**
+     * 获取Request请求头UserId
+     *
+     * @return
+     */
+    public static String getLoginAuthUserId(HttpServletRequest request) {
+        String userId = request.getHeader(HEADER_USERID);
+        return userId;
+    }
+}

--
Gitblit v1.7.1