| | |
| | | import cc.mrbird.febs.common.exception.FebsException; |
| | | import cc.mrbird.febs.common.utils.*; |
| | | import cc.mrbird.febs.mall.dto.AccountAndCodeDto; |
| | | import cc.mrbird.febs.mall.dto.ApiCheckTraceInfoDto; |
| | | import cc.mrbird.febs.mall.dto.Base64UploadDto; |
| | | import cc.mrbird.febs.mall.entity.DataDictionaryCustom; |
| | | import cc.mrbird.febs.mall.service.ICommonService; |
| | | 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; |
| | |
| | | } |
| | | return new FebsResponse().fail().message("验证码错误"); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取快递信息接口") |
| | | @PostMapping(value = "/checkTraceInfo") |
| | | public FebsResponse checkTraceInfo(@RequestBody ApiCheckTraceInfoDto checkTraceInfoDto) { |
| | | |
| | | KdTraceQueryRsp traceQueryRsp = commonService.checkTraceInfo(checkTraceInfoDto); |
| | | boolean result = traceQueryRsp.isResult(); |
| | | if (result) { |
| | | return new FebsResponse().success().data(traceQueryRsp); |
| | | } |
| | | return new FebsResponse().fail().message("请检查您的快递单号是否输入正确。"); |
| | | } |
| | | } |