|
|
@@ -1,19 +1,13 @@
|
|
|
package com.ruoyi.front.controller;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.fasterxml.jackson.core.JsonParser;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
-import com.ruoyi.common.core.utils.StringUtils;
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
import com.ruoyi.front.service.impl.Kuaidi100Service;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Map;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
@@ -35,7 +29,7 @@ public class Kd100Controller {
|
|
|
@Autowired
|
|
|
RedisTemplate redisTemplate;
|
|
|
|
|
|
- @PostMapping("/queryExpres")
|
|
|
+ @GetMapping("/test") @PostMapping("/queryExpres")
|
|
|
public AjaxResult queryExpres(@RequestBody Map param) {
|
|
|
try {
|
|
|
logger.info("调用快递100查询实时快递接口 运单号: {}", param.get("number"));
|
|
|
@@ -61,6 +55,4 @@ public class Kd100Controller {
|
|
|
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|