|
@@ -56,18 +56,18 @@ public class PlatformServiceImpl extends ServiceImpl<PlatformMapper,Platform> im
|
|
|
}
|
|
|
|
|
|
ResponseJson forObject = restTemplate.getForObject(enterpriseInfoUrl+"?code="+platform.getSocialCreditCode(), ResponseJson.class);
|
|
|
- Map<String,String> data = (Map) forObject.getData();
|
|
|
+ Map<String,Object> data = (Map) forObject.getData();
|
|
|
|
|
|
|
|
|
- platform.setAuthUrl(data.get("authUrl"));
|
|
|
- platform.setShortAuthUrl(data.get("shortAuthUrl"));
|
|
|
+ platform.setAuthUrl(data.get("authUrl").toString());
|
|
|
+ platform.setShortAuthUrl(data.get("shortAuthUrl").toString());
|
|
|
platform.setAuthStatus(0);
|
|
|
- platform.setFddCustomerId(data.get("fddCustomerId"));
|
|
|
- platform.setAutoSignUrl(data.get("autoSignUrl"));
|
|
|
- platform.setShortAutoSignUrl(data.get("shortAutoSignUrl"));
|
|
|
+ platform.setFddCustomerId(data.get("fddCustomerId").toString());
|
|
|
+ platform.setAutoSignUrl(data.get("autoSignUrl").toString());
|
|
|
+ platform.setShortAutoSignUrl(data.get("shortAutoSignUrl").toString());
|
|
|
platform.setShortAutoSignUrlCreate(new Date());
|
|
|
- String autoSignStatus = data.get("autoSignStatus");
|
|
|
- platform.setAutoSignStatus("1".equals(String.valueOf(autoSignStatus))?true:false);
|
|
|
+ Integer autoSignStatus = (Integer) data.get("autoSignStatus");
|
|
|
+ platform.setAutoSignStatus(autoSignStatus == 1?true:false);
|
|
|
save(platform);
|
|
|
|
|
|
//电子签章获取认证地址
|