|
@@ -16,7 +16,6 @@ import com.jzg.commons.util.AssertionUtils;
|
|
|
import com.jzg.commons.util.MinioUtils;
|
|
import com.jzg.commons.util.MinioUtils;
|
|
|
import com.jzg.commons.util.PasswordUtils;
|
|
import com.jzg.commons.util.PasswordUtils;
|
|
|
import com.jzg.config.JzgTokenService;
|
|
import com.jzg.config.JzgTokenService;
|
|
|
-import com.jzg.config.JzgUserDetailsService;
|
|
|
|
|
import com.jzg.config.JzgUsernamePasswordAuthenticationToken;
|
|
import com.jzg.config.JzgUsernamePasswordAuthenticationToken;
|
|
|
import com.jzg.commons.constants.RedisKeyConstants;
|
|
import com.jzg.commons.constants.RedisKeyConstants;
|
|
|
import com.jzg.commons.core.base.BaseController;
|
|
import com.jzg.commons.core.base.BaseController;
|
|
@@ -29,10 +28,8 @@ import com.jzg.commons.exception.SystemException;
|
|
|
import com.jzg.handler.JzgAuthenticationSuccessHandler;
|
|
import com.jzg.handler.JzgAuthenticationSuccessHandler;
|
|
|
import com.jzg.mapper.SysUploadFilesMapper;
|
|
import com.jzg.mapper.SysUploadFilesMapper;
|
|
|
import com.jzg.mapper.SysUserJzgAppMapper;
|
|
import com.jzg.mapper.SysUserJzgAppMapper;
|
|
|
-import com.jzg.service.AlipayService;
|
|
|
|
|
import com.jzg.service.SysUserService;
|
|
import com.jzg.service.SysUserService;
|
|
|
import com.jzg.commons.util.ImageUtil;
|
|
import com.jzg.commons.util.ImageUtil;
|
|
|
-import com.jzg.service.WechatService;
|
|
|
|
|
import com.wf.captcha.SpecCaptcha;
|
|
import com.wf.captcha.SpecCaptcha;
|
|
|
import com.wf.captcha.base.Captcha;
|
|
import com.wf.captcha.base.Captcha;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
@@ -84,8 +81,8 @@ public class AuthController extends BaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
SysUserService sysUserService;
|
|
SysUserService sysUserService;
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
|
|
- JzgUserDetailsService jzgUserDetailsService;
|
|
|
|
|
|
|
+// @Autowired
|
|
|
|
|
+// JzgUserDetailsService jzgUserDetailsService;
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private JzgTokenService tokenStore;
|
|
private JzgTokenService tokenStore;
|
|
@@ -96,11 +93,11 @@ public class AuthController extends BaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
SysUploadFilesMapper sysUploadFilesMapper;
|
|
SysUploadFilesMapper sysUploadFilesMapper;
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private WechatService wechatService;
|
|
|
|
|
-
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private AlipayService alipayService;
|
|
|
|
|
|
|
+// @Autowired
|
|
|
|
|
+// private WechatService wechatService;
|
|
|
|
|
+//
|
|
|
|
|
+// @Autowired
|
|
|
|
|
+// private AlipayService alipayService;
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private SysUserJzgAppMapper sysUserJzgAppMapper;
|
|
private SysUserJzgAppMapper sysUserJzgAppMapper;
|
|
@@ -114,7 +111,7 @@ public class AuthController extends BaseController {
|
|
|
* * 返回:无(直接通过过滤器向响应写入登录结果与令牌)
|
|
* * 返回:无(直接通过过滤器向响应写入登录结果与令牌)
|
|
|
* * 注意:成功后在响应中返回认证信息,方法本身不返回 HttpResult
|
|
* * 注意:成功后在响应中返回认证信息,方法本身不返回 HttpResult
|
|
|
*
|
|
*
|
|
|
- * @param loginFormVo
|
|
|
|
|
|
|
+ * @param loginFormVo 登录参数
|
|
|
* @throws ServletException
|
|
* @throws ServletException
|
|
|
* @throws IOException
|
|
* @throws IOException
|
|
|
*/
|
|
*/
|