ci:change api endpoint

This commit is contained in:
zzs 2025-01-17 14:50:06 +08:00
parent fed531a1ef
commit 48922e41e0
2 changed files with 40 additions and 10 deletions

View File

@ -80,6 +80,27 @@ public class ProxyService {
@Value("${ensign.kingdee.env}")
private String env;
@Value("${ensign.kingdee.appToken.appId}")
private String appId;
@Value("${ensign.kingdee.appToken.appSecuret}")
private String appSecuret;
@Value("${ensign.kingdee.appToken.tenantid}")
private String tenantid;
@Value("${ensign.kingdee.appToken.accountId}")
private String accountId;
@Value("${ensign.kingdee.appToken.language}")
private String language;
@Value("${ensign.kingdee.accessToken.user}")
private String user;
@Value("${ensign.kingdee.accessToken.usertype}")
private String usertype;
private final String redisKingdeeKey = "kingdee:accessToken";
@Resource
@ -383,11 +404,11 @@ public class ProxyService {
Map<String, String> body = new HashMap<>();
body.put("appId", "CRM");
body.put("appSecuret", "yx.CRM.tksecurit@240924");
body.put("tenantid", "yxzg-topview-dev");
body.put("accountId", "1878420900609526784");
body.put("language", "zh_CN");
body.put("appId", appId);
body.put("appSecuret", appSecuret);
body.put("tenantid", tenantid);
body.put("accountId", accountId);
body.put("language", language);
HttpEntity reqEntity = new StringEntity(JSONUtil.toJsonStr(body), "utf-8");
@ -420,12 +441,12 @@ public class ProxyService {
Map<String, String> body = new HashMap<>();
body.put("user", "COSMIC");
body.put("user", user);
body.put("apptoken", appToken);
body.put("tenantid", "yxgz-prod");
body.put("accountId", "1878420900609526784");
body.put("language", "zh_CN");
body.put("usertype", "UserName");
body.put("tenantid", tenantid);
body.put("accountId", accountId);
body.put("language", language);
body.put("usertype", usertype);
HttpEntity reqEntity = new StringEntity(JSONUtil.toJsonStr(body), "utf-8");

View File

@ -272,4 +272,13 @@ ensign:
test-inner-end-point: 'http://10.64.112.152:8022'
prod-public-end-point: 'http://122.4.221.130:8022'
prod-inner-end-point: 'http://10.64.111.134:8022'
appToken:
appId: 'CRM'
appSecuret: 'yx.CRM.tksecurit@240924'
tenantid: 'yxzg-topview-dev'
accountId: '1878420900609526784'
language: 'zh_CN'
accessToken:
user: 'COSMIC'
usertype: 'UserName'
debug: false