xuhy
2024-12-13 86e0beb515365c938348ec09290dfe4765e2b3ae
修改
1个文件已修改
4 ■■■■ 已修改文件
ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/MsgUtil.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/MsgUtil.java
@@ -24,7 +24,7 @@
    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:
@@ -63,7 +63,7 @@
        }
        result3 = StrUtil.trim(result3);
    return result3;
        return R.ok(result3);
    }
    public static String createCode(){
        return String.valueOf(ThreadLocalRandom.current().nextInt(100000, 999999));