From d1d0b4b9f4452fb6e9b6e39168f503d5b302c999 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 11 一月 2022 11:26:35 +0800 Subject: [PATCH] 部分功能添加 --- fanli/src/main/java/com/yeshi/fanli/aspect/AdminLoginAspect.java | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/aspect/AdminLoginAspect.java b/fanli/src/main/java/com/yeshi/fanli/aspect/AdminLoginAspect.java index c02fc44..af53899 100644 --- a/fanli/src/main/java/com/yeshi/fanli/aspect/AdminLoginAspect.java +++ b/fanli/src/main/java/com/yeshi/fanli/aspect/AdminLoginAspect.java @@ -53,7 +53,16 @@ AdminUser admin = (AdminUser) request.getSession().getAttribute(Constant.SESSION_ADMIN); + if(Constant.IS_TEST){ + admin=new AdminUser(); + admin.setId(1L); + admin.setName("Ceshi"); + admin.setAccount("ceshi"); + } + + if (admin == null) { + String from = request.getParameter("from"); // 閭欢H5鏉ユ簮鐨勪笉鍒ゆ柇鏄惁鐧诲綍 @@ -129,8 +138,8 @@ } } - if (acceptData != null) - acceptData.setSystem(system); +// if (acceptData != null) +// acceptData.setSystem(system); Object obj = null; -- Gitblit v1.8.0