国家区域前端功能更新

This commit is contained in:
wangjinlei
2023-11-15 14:52:46 +08:00
parent 618639af70
commit 08654ffb7e
6 changed files with 106 additions and 86 deletions

View File

@@ -166,7 +166,7 @@ public class MyUserController {
* 常规注册 发短信验证码
*/
@RequestMapping("/sms/sendcode")
public R registerSms(@RequestParam("phone") String phone) throws Exception {
public R registerSms(@RequestParam("phone") String phone,@RequestParam Integer areaCode) throws Exception {
//验证一分钟内是否已经发过
String redisCode = redisTemplate.opsForValue().get("RegistCode" + phone);
@@ -192,7 +192,7 @@ public class MyUserController {
redisTemplate.opsForValue().set("RegistCode"+phone,code,5, TimeUnit.MINUTES);
//发送
userService.sendCodeForRegister(phone,code);
userService.sendCodeForRegister(phone,code,areaCode);
return R.ok();
}