| | |
| | | private TAppUserService appUserService; |
| | | @ApiOperation(value = "通用发送验证码,type:1=注册,2=登录,3=修改手机号,4=修改密码",tags = "通用发送验证码") |
| | | @PostMapping("/common/send") |
| | | public String send (String phone,Integer type){ |
| | | public R send (String phone,Integer type){ |
| | | TAppUser one = appUserService.lambdaQuery().eq(TAppUser::getPhone, phone).one(); |
| | | switch (type){ |
| | | case 1: |
| | |
| | | } |
| | | result3 = StrUtil.trim(result3); |
| | | |
| | | return result3; |
| | | return R.ok(result3); |
| | | } |
| | | public static String createCode(){ |
| | | return String.valueOf(ThreadLocalRandom.current().nextInt(100000, 999999)); |