关联平台验证

master
cqf 3 years ago committed by Gitee
parent eb62122722
commit 42c494c18a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -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 {

Loading…
Cancel
Save