解决bug

This commit is contained in:
wr
2023-08-01 18:19:34 +08:00
parent 26648052c9
commit f48efc39a5

View File

@@ -461,8 +461,8 @@ public class SupvPushGwServiceImpl implements SupvPushGwService {
if (ObjectUtil.isNull(param)) { if (ObjectUtil.isNull(param)) {
cb = new ContentBody(""); cb = new ContentBody("");
} else { } else {
String s = JSON.toJSONString(param); String s = JSONObject.toJSONStringWithDateFormat(param, JSON.DEFFAULT_DATE_FORMAT);
log.info(Thread.currentThread().getName() + "1.信息:" + JSON.toJSONString(param)); log.info(Thread.currentThread().getName() + "1.信息:" + s);
cb = new ContentBody(s); cb = new ContentBody(s);
} }
//ContentBody传递要求使用post方式进行调用 //ContentBody传递要求使用post方式进行调用
@@ -511,6 +511,8 @@ public class SupvPushGwServiceImpl implements SupvPushGwService {
//获取返回体 //获取返回体
Map body = userEntity.getBody(); Map body = userEntity.getBody();
token = body.get("access_token").toString(); token = body.get("access_token").toString();
}else{
throw new BusinessException("获取数据token出现未知异常请检查ip端口是否正确");
} }
return token; return token;
} }