|
|
@@ -176,13 +176,13 @@ public class AuthController {
|
|
|
@PostMapping("/sms-code")
|
|
|
public Result<Void> sendSmsCode(@RequestBody Map<String, String> body) {
|
|
|
String mobile = body.get("mobile");
|
|
|
- String templateName = body.getOrDefault("template_name", "login");
|
|
|
+// String templateName = body.getOrDefault("template_name", "verify");
|
|
|
|
|
|
if (StrUtil.isBlank(mobile)) {
|
|
|
return Result.fail(400, "手机号不能为空");
|
|
|
}
|
|
|
|
|
|
- smsCodeService.sendCode(templateName, mobile);
|
|
|
+ smsCodeService.sendCode("verify", mobile);
|
|
|
return Result.ok();
|
|
|
}
|
|
|
|