| | |
| | | package cc.mrbird.febs; |
| | | |
| | | import cc.mrbird.febs.rabbit.producter.AgentProducer; |
| | | import cc.mrbird.febs.mall.dto.ApiCheckTraceInfoDto; |
| | | import cn.hutool.json.JSONUtil; |
| | | import com.best.javaSdk.ClientParamEnum; |
| | | import com.best.javaSdk.ClientParamService; |
| | | import com.best.javaSdk.kdTraceQuery.response.KdTraceQueryRsp; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | |
| | | /** |
| | | * @author wzy |
| | | * @date 2021-09-25 |
| | | **/ |
| | | @Slf4j |
| | | @SpringBootTest |
| | | public class AgentTest { |
| | | |
| | | @Autowired |
| | | private AgentProducer agentProducer; |
| | | |
| | | @Test |
| | | public void agentTest() { |
| | | agentProducer.sendOrderReturn(1L); |
| | | public void refundJob() { |
| | | ApiCheckTraceInfoDto apiCheckTraceInfoDto = new ApiCheckTraceInfoDto(); |
| | | apiCheckTraceInfoDto.setTraceNo("60850712015414"); |
| | | KdTraceQueryRsp traceQueryRsp = ClientParamService.getInstance(ClientParamEnum.PRD.name()).checkTraceInfo(apiCheckTraceInfoDto); |
| | | log.info("traceQueryRsp:{}", JSONUtil.parseObj(traceQueryRsp)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |