| | |
| | | import cn.hutool.core.util.IdUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.best.javaSdk.kdTraceQuery.response.KdTraceQueryRsp; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import io.swagger.annotations.*; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | boolean result = ZzSmsSend.sendALiYun(account, code.toString()); |
| | | if (result) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | boolean flag = redisUtils.set(AppContants.VERIFY_CODE_PREFIX + account, code, 300); |
| | | map.put("code", flag); |
| | | return new FebsResponse().success().message("验证码发送成功"); |
| | | boolean flag = redisUtils.set(AppContants.VERIFY_CODE_PREFIX + account, code, 120); |
| | | map.put("code", code); |
| | | return new FebsResponse().success().message("发送成功"); |
| | | // return new FebsResponse().success().data(map); |
| | | } |
| | | // 发送邮件验证码 |
| | | } else if (AppContants.ACCOUNT_TYPE_EMAIL.equals(type)) { |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "获取快递信息接口") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = KdTraceQueryRsp.class) |
| | | }) |
| | | @PostMapping(value = "/checkTraceInfo") |
| | | public FebsResponse checkTraceInfo(@RequestBody ApiCheckTraceInfoDto checkTraceInfoDto) { |
| | | |