优化错误信息
This commit is contained in:
parent
31a9e30808
commit
cbeb64d662
@ -18,6 +18,7 @@ import java.time.Instant;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static cn.hutool.core.util.NumberUtil.isInteger;
|
||||
import static com.xhpc.common.data.redis.StaticBeanUtil.REDIS;
|
||||
|
||||
/**
|
||||
@ -69,7 +70,7 @@ public class QueryEquipAuthController {
|
||||
String terminalStatus = (String) cacheGun.get("vehicleGunStatus");
|
||||
String status = (String) cacheGun.get("status");
|
||||
if (!"空闲".equals(status)) {
|
||||
resp.setMsg("终端状态异常:[".concat(status == null ? "未注册" : status).concat("]"));
|
||||
resp.setMsg("终端状态异常:[".concat(status == null ? "未注册" : isInteger(status) ? "充电中" : status).concat("]"));
|
||||
resp.setRet("500");
|
||||
equipAuthResponse.setSuccStat(1);
|
||||
equipAuthResponse.setFailReason(1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user