diff --git a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/PushServiceImpl.java b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/PushServiceImpl.java index 6600ebd5d..731430e5e 100644 --- a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/PushServiceImpl.java +++ b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/PushServiceImpl.java @@ -62,6 +62,9 @@ public class PushServiceImpl implements PushService { @Value("${xgj.api.auth.url}") private String xgjUrl; + @Value("${xgj.api.token.url}") + private String xgjTokenUrl; + @Value("${xgj.api.auth.username}") private String xgjUsername; @@ -185,7 +188,7 @@ public class PushServiceImpl implements PushService { @Override public XgjAccessTokenDTO getXgjAccessToken() { - String apiUrl = "http://117.139.13.24:29000/oauth2/token?grant_type=client_credentials&scope=server"; + String apiUrl = xgjTokenUrl + "/oauth2/token?grant_type=client_credentials&scope=server"; String clientId = "dmp-join"; String clientSecret = "dmp20250528"; String auth = clientId + ":" + clientSecret; diff --git a/coolstore-partner-web/src/main/resources/application-online.properties b/coolstore-partner-web/src/main/resources/application-online.properties index d3ab0f329..24c8c53f5 100644 --- a/coolstore-partner-web/src/main/resources/application-online.properties +++ b/coolstore-partner-web/src/main/resources/application-online.properties @@ -97,6 +97,7 @@ api.auth.secret=NzVrnS3OWiupdDY xgj.api.auth.url=https://masterdata.zhengxinfood.com xgj.api.auth.username=6446346061e043e392dd53c9c8d1af0b xgj.api.auth.secret=3ba6e4c5632547b8b2b3acefe08667bb +xgj.api.token.url=http://121.199.29.202:9000 #yunliushui yls.api.auth.url=http://yuanguiwuliu.com diff --git a/coolstore-partner-web/src/main/resources/application-test.properties b/coolstore-partner-web/src/main/resources/application-test.properties index 80814286c..7a19ef419 100644 --- a/coolstore-partner-web/src/main/resources/application-test.properties +++ b/coolstore-partner-web/src/main/resources/application-test.properties @@ -108,6 +108,7 @@ api.auth.secret=H9YKHF6R7N16Fvy xgj.api.auth.url=http://117.139.13.24:11180 xgj.api.auth.username=6446346061e043e392dd53c9c8d1af0b xgj.api.auth.secret=3ba6e4c5632547b8b2b3acefe08667bb +xgj.api.token.url=http://121.199.29.202:9000 #云流水账号 #yls.api.auth.url=http://scm330-test.366ec.net