|
|
|
@ -110,15 +110,18 @@ public class PlatformController {
|
|
|
|
|
log.error(result);
|
|
|
|
|
Map<String,Object> object = JSON.parseObject(result,Map.class);
|
|
|
|
|
|
|
|
|
|
if(object!=null&&object.get("data")!=null&&object.get("data").get("appid")!=null) {
|
|
|
|
|
if(object!=null&&object.get("data")!=null) {
|
|
|
|
|
Map<String,Object> data = JSON.parseObject(JSON.toJSONString(object.get("data")),Map.class);
|
|
|
|
|
log.error(JSON.toJSONString(object.get("data")));
|
|
|
|
|
if(data.get("appid")!=null)
|
|
|
|
|
if(data.get("appid")!=null) {
|
|
|
|
|
unitMaintainEntity.setAppid(data.get("appid").toString());
|
|
|
|
|
if(data.get("apiKey")!=null)
|
|
|
|
|
unitMaintainEntity.setApiKey(data.get("apiKey").toString());
|
|
|
|
|
if(data.get("secretKey")!=null)
|
|
|
|
|
unitMaintainEntity.setSecretKey(data.get("secretKey").toString());
|
|
|
|
|
if(data.get("apiKey")!=null)
|
|
|
|
|
unitMaintainEntity.setApiKey(data.get("apiKey").toString());
|
|
|
|
|
if(data.get("secretKey")!=null)
|
|
|
|
|
unitMaintainEntity.setSecretKey(data.get("secretKey").toString());
|
|
|
|
|
} else {
|
|
|
|
|
return ResultVOUtils.error(500, "关联验证失败,请联系管理人员");
|
|
|
|
|
}
|
|
|
|
|
} else if(object!=null&&object.get("message")!=null){
|
|
|
|
|
return ResultVOUtils.error(500, object.get("message").toString());
|
|
|
|
|
} else {
|
|
|
|
|