From d9f7787e24dd9ee4136298bcfd141aed1bb3ed7c Mon Sep 17 00:00:00 2001
From: fengjin <1435304038@qq.com>
Date: 星期五, 14 十月 2022 09:41:57 +0800
Subject: [PATCH] Merge branch 'zigonggao_dev' into huacheng_test

---
 flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java b/flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java
index 9ea7616..bb470d5 100644
--- a/flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java
+++ b/flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java
@@ -63,10 +63,10 @@
                 request.setAttribute(Constant.CURRENT_USER_ID, manager.getHCUserId(HCtoken));
                 System.out.println("花城用户id:"+manager.getHCUserId(HCtoken));
                 SysUser ss = IUserService.selectData(manager.getHCUserId(HCtoken)+"");
-                if(ss==null)
+                if(ss==null && ss.getUserId()<0)
                 {
                     HuaChengSysUser huaChengSysUser=iHuaChengSysUserService.selectData(manager.getHCUserId(HCtoken)+"","","");
-                    if(huaChengSysUser!=null)
+                    if(huaChengSysUser!=null && huaChengSysUser.getUserId()<0 )
                     {
                         //本地没有此用户  新用户
                         SysUser newSysUser=new SysUser();
@@ -110,8 +110,8 @@
                 facade.setContentLength(reponse.getBytes(StandardCharsets.UTF_8).length);
                 facade.getWriter().write(reponse);
                 return false;
-//            }
-        }
+            }
+//        }
         return true;
     }
 }
\ No newline at end of file

--
Gitblit v1.7.1