|
|
@@ -6,14 +6,12 @@ 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 com.ruoyi.system.service.ISysConfigService;
|
|
|
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;
|
|
|
@@ -34,8 +32,10 @@ public class Kd100Controller {
|
|
|
Kuaidi100Service kuaidi100Service;
|
|
|
@Autowired
|
|
|
RedisTemplate redisTemplate;
|
|
|
+ @Autowired
|
|
|
+ private ISysConfigService configService;
|
|
|
|
|
|
- @PostMapping("/queryExpres")
|
|
|
+ @GetMapping("/test") @PostMapping("/queryExpres")
|
|
|
public AjaxResult queryExpres(@RequestBody Map param) {
|
|
|
try {
|
|
|
logger.info("调用快递100查询实时快递接口 运单号: {}", param.get("number"));
|
|
|
@@ -62,5 +62,9 @@ public class Kd100Controller {
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ @GetMapping("/getContact")
|
|
|
+ public AjaxResult getContact() {
|
|
|
+ //通过系统参数rj.customer.service,获取客服电话
|
|
|
+ return AjaxResult.success(configService.selectConfigByKey("rj.customer.service"));
|
|
|
+ }
|
|
|
}
|