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