| | |
| | | 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 cc.mrbird.febs.mall.vo.OrderListVo; |
| | | import cn.hutool.core.util.IdUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import com.best.javaSdk.kdTraceQuery.response.KdTraceQueryRsp; |
| | | import io.swagger.annotations.*; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | } |
| | | return new FebsResponse().fail().message("验证码错误"); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取快递信息接口") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = KdTraceQueryRsp.class) |
| | | }) |
| | | @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("请检查您的快递单号是否输入正确。"); |
| | | } |
| | | } |