|
|
@@ -68,9 +68,9 @@ public class YangGuangRequestApiComponents {
|
|
|
private <Q extends YangGuangBaseRequest, S extends YangGuangBaseResponse> S post(Q q, Class<S> tClass) throws JsonProcessingException {
|
|
|
|
|
|
// 发送请求
|
|
|
- String url = yangGuangApiConfigurationProperties.getUrlProd();
|
|
|
+ String url = yangGuangApiConfigurationProperties.getUrl();
|
|
|
String encryptRequestBody = yangGuangEncryption.encryptRequestBody
|
|
|
- (q, yangGuangApiConfigurationProperties.getProdKey());
|
|
|
+ (q, yangGuangApiConfigurationProperties.getKey());
|
|
|
//设置请求头类型
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
|
HttpEntity<String> entity = new HttpEntity<>(encryptRequestBody, headers);
|
|
|
@@ -78,7 +78,7 @@ public class YangGuangRequestApiComponents {
|
|
|
String body = response.getBody();
|
|
|
|
|
|
// 处理解密
|
|
|
- String decryptedResponse = yangGuangEncryption.authcodeDecode(body, yangGuangApiConfigurationProperties.getProdKey());
|
|
|
+ String decryptedResponse = yangGuangEncryption.authcodeDecode(body, yangGuangApiConfigurationProperties.getKey());
|
|
|
|
|
|
InsuranceLog.infoLog(InsuranceEnum.YGBX.getPinyin(), "\n\n---------> 响应参数:{}", decryptedResponse);
|
|
|
JSONObject jsonObject = JSON.parseObject(decryptedResponse);
|
|
|
@@ -135,7 +135,7 @@ public class YangGuangRequestApiComponents {
|
|
|
*/
|
|
|
public String upload(String json) throws Exception {
|
|
|
String responesStr = "";
|
|
|
- String url = yangGuangApiConfigurationProperties.getUploadUrlProd();
|
|
|
+ String url = yangGuangApiConfigurationProperties.getUploadUrl();
|
|
|
String secret = yangGuangApiConfigurationProperties.getSecret();
|
|
|
String referer = yangGuangApiConfigurationProperties.getReferer();
|
|
|
String encode = EncodeAccessParam.getEncodeParam(String.valueOf(json), 1000L,secret);
|