update 重构 与cloud版本统一接口路径

This commit is contained in:
疯狂的狮子li
2023-03-15 15:52:39 +08:00
parent b14fa6e12f
commit 0ad45df788
10 changed files with 71 additions and 107 deletions

View File

@@ -52,7 +52,7 @@ public class CaptchaController {
*
* @param phonenumber 用户手机号
*/
@GetMapping("/captchaSms")
@GetMapping("/sms/code")
public R<Void> smsCaptcha(@NotBlank(message = "{user.phonenumber.not.blank}")
String phonenumber) {
if (!smsProperties.getEnabled()) {
@@ -77,7 +77,7 @@ public class CaptchaController {
/**
* 生成验证码
*/
@GetMapping("/captchaImage")
@GetMapping("/code")
public R<CaptchaVo> getCode() {
CaptchaVo captchaVo = new CaptchaVo();
boolean captchaEnabled = captchaProperties.getEnable();