fix
Hentua
2023-06-12 75067731200e8bfbee363c283c10647805779e6e
src/main/java/cc/mrbird/febs/mall/controller/CommonController.java
@@ -46,14 +46,20 @@
                                   @ApiParam(name = "type", value = "类型1-手机号", required = true) @RequestParam("type") String type) {
        log.info("#账号:{}, 类型:{}#", account, type);
//        Integer code = 123456;
        Integer code = (int) ((Math.random() * 9 + 1) * 100000);
        if (StrUtil.isNotBlank(redisUtils.getString(AppContants.VERIFY_CODE_PREFIX + account))) {
            throw new FebsException("验证码已发送");
        }
//        Map<String, Object> map = new HashMap<>();
//        boolean flag = redisUtils.set(AppContants.VERIFY_CODE_PREFIX + account, code, 120);
//        map.put("code", flag);
//        return new FebsResponse().success().message("验证码发送成功");
        // 发送手机验证码
        if (AppContants.ACCOUNT_TYPE_MOBILE.equals(type)) {
            boolean result = ZzSmsSend.sendVerifyCode(account, code.toString(), 2);
            boolean result = Sms106Send.sendVerifyCode(account, code.toString(), 2);
            if (result) {
                Map<String, Object> map = new HashMap<>();
                boolean flag = redisUtils.set(AppContants.VERIFY_CODE_PREFIX + account, code, 120);