|
|
@@ -6,6 +6,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.map.HashedMap;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
import org.springframework.http.*;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.util.LinkedMultiValueMap;
|
|
|
@@ -27,13 +28,14 @@ import java.util.Map;
|
|
|
@Slf4j
|
|
|
@Component
|
|
|
@RequiredArgsConstructor
|
|
|
+@RefreshScope
|
|
|
public class AiUserViolationUtils {
|
|
|
|
|
|
private final RestTemplate restTemplate;
|
|
|
private final LifeUserMapper lifeUserMapper;
|
|
|
private final LifeMessageMapper lifeMessageMapper;
|
|
|
|
|
|
- @Value("${third-party-login.base-url1:http://192.168.2.250:9000/ai/user-auth-core/api/v1/auth/login}")
|
|
|
+ @Value("${third-party-login.base-url}")
|
|
|
private String loginUrl;
|
|
|
|
|
|
@Value("${third-party-user-name.base-url:UdUser}")
|
|
|
@@ -42,7 +44,7 @@ public class AiUserViolationUtils {
|
|
|
@Value("${third-party-pass-word.base-url:123456}")
|
|
|
private String passWord;
|
|
|
|
|
|
- @Value("${third-party-userComplaintRecordUrl.base-url1:http://192.168.2.250:9000/ai/auto-review/api/v1/user_complaint_record/submit}")
|
|
|
+ @Value("${third-party-userComplaintRecordUrl.base-url}")
|
|
|
private String userComplaintRecordUrl;
|
|
|
|
|
|
|