|
@@ -1,6 +1,7 @@
|
|
|
package com.ruoyi.front.controller;
|
|
package com.ruoyi.front.controller;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
|
+import com.ruoyi.common.core.utils.StringUtils;
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
import com.ruoyi.front.service.impl.Kuaidi100Service;
|
|
import com.ruoyi.front.service.impl.Kuaidi100Service;
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
@@ -70,6 +71,10 @@ public class Kd100Controller {
|
|
|
@PostMapping("/queryIcrExpres")
|
|
@PostMapping("/queryIcrExpres")
|
|
|
public Map queryIcrExpres(@RequestBody Map param) {
|
|
public Map queryIcrExpres(@RequestBody Map param) {
|
|
|
try {
|
|
try {
|
|
|
|
|
+ if(StringUtils.isBlank(param.get("param").toString())){
|
|
|
|
|
+ return AjaxResult.error("智能识别文字不能为空!");
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
Map result = kuaidi100Service.queryIcrExpres(param);
|
|
Map result = kuaidi100Service.queryIcrExpres(param);
|
|
|
return result;
|
|
return result;
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|