|
@@ -7,6 +7,7 @@ import com.zksy.common.domain.response.BaseResponse;
|
|
|
import com.zksy.common.exception.CommonException;
|
|
import com.zksy.common.exception.CommonException;
|
|
|
import com.zksy.common.utils.BeanUtils;
|
|
import com.zksy.common.utils.BeanUtils;
|
|
|
import com.zksy.data.config.XhConfigProperty;
|
|
import com.zksy.data.config.XhConfigProperty;
|
|
|
|
|
+import com.zksy.data.config.XinyonghuaihuaProperty;
|
|
|
import com.zksy.data.constant.RedisKeyConstant;
|
|
import com.zksy.data.constant.RedisKeyConstant;
|
|
|
import com.zksy.data.domain.po.BasePo;
|
|
import com.zksy.data.domain.po.BasePo;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -26,6 +27,8 @@ public class XhRequestUtil {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private XhConfigProperty xhConfigProperty;
|
|
private XhConfigProperty xhConfigProperty;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
|
|
+ private XinyonghuaihuaProperty xinyonghuaihuaProperty;
|
|
|
|
|
+ @Autowired
|
|
|
private OkHttpClient okHttpClient;
|
|
private OkHttpClient okHttpClient;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ObjectMapper objectMapper;
|
|
private ObjectMapper objectMapper;
|
|
@@ -127,7 +130,7 @@ public class XhRequestUtil {
|
|
|
refreshToken();
|
|
refreshToken();
|
|
|
HttpUrl url = new HttpUrl.Builder()
|
|
HttpUrl url = new HttpUrl.Builder()
|
|
|
.scheme("http")
|
|
.scheme("http")
|
|
|
- .host("59.231.127.12")
|
|
|
|
|
|
|
+ .host(xinyonghuaihuaProperty.getHost())
|
|
|
.addPathSegment("interface/v1/doublePublic/findLicensingList")
|
|
.addPathSegment("interface/v1/doublePublic/findLicensingList")
|
|
|
.build();
|
|
.build();
|
|
|
Map<String, Object> requestBodyMap = new HashMap<>();
|
|
Map<String, Object> requestBodyMap = new HashMap<>();
|
|
@@ -165,9 +168,9 @@ public class XhRequestUtil {
|
|
|
private void refreshToken() {
|
|
private void refreshToken() {
|
|
|
HttpUrl url = new HttpUrl.Builder()
|
|
HttpUrl url = new HttpUrl.Builder()
|
|
|
.scheme("http")
|
|
.scheme("http")
|
|
|
- .host("59.231.127.12")
|
|
|
|
|
|
|
+ .host(xinyonghuaihuaProperty.getHost())
|
|
|
.addPathSegment("interface/v1/auth/getToken")
|
|
.addPathSegment("interface/v1/auth/getToken")
|
|
|
- .addQueryParameter("refreshToken", "sV7l0nLP2Ui157VRd1TvIkSpfixf22ij")
|
|
|
|
|
|
|
+ .addQueryParameter("refreshToken", xinyonghuaihuaProperty.getRefreshToken())
|
|
|
.build();
|
|
.build();
|
|
|
Request request = new Request.Builder()
|
|
Request request = new Request.Builder()
|
|
|
.url(url)
|
|
.url(url)
|