【更新】修改登录相关代码格式

pull/22/head
俞宝山 2021-01-22 20:20:57 +08:00 committed by 小诺
parent 28b66269dd
commit 2518ebc4f6
5 changed files with 40 additions and 36 deletions

View File

@ -89,3 +89,31 @@ export function getCaptchaOpen (parameter) {
params: parameter
})
}
/**
* token
*
* @author Jax
* @date 2021/1/22 00:00
*/
export function reqGet(data) {
return axios({
url: '/captcha/get',
method: 'post',
data
})
}
/**
*
*
* @author Jax
* @date 2021/1/22 00:00
*/
export function reqCheck(data) {
return axios({
url: '/captcha/check',
method: 'post',
data
})
}

View File

@ -58,10 +58,9 @@
* VerifyPoints
* @description 点选
* */
// _code_chars, _code_color1, _code_color2
import { resetSize } from './../utils/util'
import { aesEncrypt } from './../utils/ase'
import { reqGet, reqCheck } from './../api/index'
import { reqGet, reqCheck } from '@/api/modular/system/loginManage'
export default {
name: 'VerifyPoints',

View File

@ -58,7 +58,7 @@
* */
import { aesEncrypt } from './../utils/ase'
import { resetSize } from './../utils/util'
import { reqGet, reqCheck } from './../api/index'
import { reqGet, reqCheck } from '@/api/modular/system/loginManage'
// "captchaType":"blockPuzzle",
export default {

View File

@ -1,22 +0,0 @@
/**
* axios
*/
import { axios } from '@/utils/request'
// 获取验证图片 以及token
export function reqGet(data) {
return axios({
url: '/captcha/get',
method: 'post',
data
})
}
// 滑动或者点选验证
export function reqCheck(data) {
return axios({
url: '/captcha/check',
method: 'post',
data
})
}

View File

@ -118,23 +118,22 @@ public class SysLoginController {
}
/**
* @Description
* @author Jax
* @Date 2021/1/21 15:19
* @return ResponseData
**/
*
*
* @author Jax
* @date 2021/1/21 15:27
*/
@GetMapping("/getCaptchaOpen")
public ResponseData getCaptchaOpen() {
return new SuccessResponseData(ConstantContextHolder.getCaptchaOpenFlag());
}
/**
* @Description
* @Date 2021/1/21 15:27
* @author Jax
* @param code
* @return boolean
**/
*
*
* @author Jax
* @date 2021/1/21 15:27
*/
private boolean verificationCode(String code) {
CaptchaVO vo = new CaptchaVO();
vo.setCaptchaVerification(code);