feat(手机端): 添加注册接口

master
hequan_waynaqua 4 years ago
parent bc6af0d2aa
commit db2080d988

@ -17,7 +17,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Set;
import java.util.concurrent.TimeUnit;
@ -81,7 +80,7 @@ public class LoginController {
@ResponseBody
@RequestMapping("/captcha")
public R captcha(HttpServletRequest request, HttpServletResponse response) throws Exception {
public R captcha() {
SpecCaptcha specCaptcha = new SpecCaptcha(100, 43, 4);
String verCode = specCaptcha.text().toLowerCase();
String key = IdUtil.getUid();

@ -15,8 +15,6 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.concurrent.TimeUnit;
@ -70,7 +68,7 @@ public class LoginController {
@ResponseBody
@RequestMapping("/captcha")
public R captcha(HttpServletRequest request, HttpServletResponse response) throws Exception {
public R captcha() {
SpecCaptcha specCaptcha = new SpecCaptcha(80, 32, 4);
String verCode = specCaptcha.text().toLowerCase();
String key = IdUtil.getUid();

Loading…
Cancel
Save