|
@@ -279,11 +279,14 @@ public class DingAuthServiceInfoImpl implements DingAuthServiceInfo {
|
|
JSONObject authUserInfo = JSONObject.parseObject(auth_user_info_str);
|
|
JSONObject authUserInfo = JSONObject.parseObject(auth_user_info_str);
|
|
// String accessToken = dingThirdTokenService.getCorpAccessToken(corp_id);
|
|
// String accessToken = dingThirdTokenService.getCorpAccessToken(corp_id);
|
|
String manager_userid = authUserInfo.getString("userId");
|
|
String manager_userid = authUserInfo.getString("userId");
|
|
|
|
+ String suiteTicket = biz_data.getString("suiteTicket");
|
|
TenantDingSaveReqVO respVO = new TenantDingSaveReqVO();
|
|
TenantDingSaveReqVO respVO = new TenantDingSaveReqVO();
|
|
respVO.setCorpId(authCorpInfo.getString("corpid"));
|
|
respVO.setCorpId(authCorpInfo.getString("corpid"));
|
|
respVO.setName(authCorpInfo.getString("full_corp_name"));
|
|
respVO.setName(authCorpInfo.getString("full_corp_name"));
|
|
respVO.setManageUserId(manager_userid);
|
|
respVO.setManageUserId(manager_userid);
|
|
respVO.setExpireTime(LocalDateTime.now().plusYears(10));// 默认设置10年有效期
|
|
respVO.setExpireTime(LocalDateTime.now().plusYears(10));// 默认设置10年有效期
|
|
|
|
+ respVO.setStatus(0);
|
|
|
|
+ respVO.setSuiteTicket(suiteTicket);
|
|
tenantService.createDingTenant(respVO);
|
|
tenantService.createDingTenant(respVO);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -304,10 +307,12 @@ public class DingAuthServiceInfoImpl implements DingAuthServiceInfo {
|
|
JSONObject authUserInfo = JSONObject.parseObject(auth_user_info_str);
|
|
JSONObject authUserInfo = JSONObject.parseObject(auth_user_info_str);
|
|
// String accessToken = dingThirdTokenService.getCorpAccessToken(corp_id);
|
|
// String accessToken = dingThirdTokenService.getCorpAccessToken(corp_id);
|
|
String manager_userid = authUserInfo.getString("userId");
|
|
String manager_userid = authUserInfo.getString("userId");
|
|
|
|
+ String suiteTicket = biz_data.getString("suiteTicket");
|
|
TenantDingSaveReqVO respVO = new TenantDingSaveReqVO();
|
|
TenantDingSaveReqVO respVO = new TenantDingSaveReqVO();
|
|
respVO.setCorpId(authCorpInfo.getString("corpid"));
|
|
respVO.setCorpId(authCorpInfo.getString("corpid"));
|
|
respVO.setName(authCorpInfo.getString("full_corp_name"));
|
|
respVO.setName(authCorpInfo.getString("full_corp_name"));
|
|
respVO.setManageUserId(manager_userid);
|
|
respVO.setManageUserId(manager_userid);
|
|
|
|
+ respVO.setSuiteTicket(suiteTicket);
|
|
tenantService.updateDingTenant(respVO);
|
|
tenantService.updateDingTenant(respVO);
|
|
}
|
|
}
|
|
|
|
|