|
@@ -167,8 +167,13 @@ public class AlipayOpenApiServiceImpl extends BaseService implements AlipayOpenA
|
|
|
userStateRequest.setIsvPid(openApiRequest.getIsvPid());
|
|
|
userStateRequest.setOrgOutId(openApiRequest.getOrgOutId());
|
|
|
userStateRequest.setVid(vid);
|
|
|
- userStateRequest.setAppId(openApiRequest.getAppId());
|
|
|
Boolean existed = queryUserState(userStateRequest);
|
|
|
+
|
|
|
+ userStateRequest.setAppId(openApiRequest.getAppId());
|
|
|
+ openApiRequest.setIsvPid(Preconditions.isNotBlank(openApiRequest.getIsvPid()) ? openApiRequest.getIsvPid() : userStateRequest.getAppId());
|
|
|
+ openApiRequest.setOrgOutId(Preconditions.isNotBlank(openApiRequest.getIsvPid()) ? openApiRequest.getIsvPid() : userStateRequest.getAppId());
|
|
|
+ openApiRequest.setComponentOutId(Preconditions.isNotBlank(openApiRequest.getComponentOutId()) ? openApiRequest.getComponentOutId() : getComponentOutId("common"));
|
|
|
+
|
|
|
AlipayOpenIotvspUserwithimageResponse userwithimageResponse = new AlipayOpenIotvspUserwithimageResponse();
|
|
|
if (existed != null && existed) {
|
|
|
log.error("--->用户{}信息已入库vid:{}", openApiRequest.getCertName(), vid);
|
|
@@ -226,6 +231,7 @@ public class AlipayOpenApiServiceImpl extends BaseService implements AlipayOpenA
|
|
|
openApiRequest.setComponentOutId(Preconditions.isNotBlank(openApiRequest.getComponentOutId()) ? openApiRequest.getComponentOutId() : getComponentOutId("verified"));
|
|
|
openApiRequest.setIsvPid(Preconditions.isNotBlank(openApiRequest.getIsvPid()) ? openApiRequest.getIsvPid() : isvInfo.getIsvPid());
|
|
|
openApiRequest.setOrgOutId(Preconditions.isNotBlank(openApiRequest.getOrgOutId()) ? openApiRequest.getOrgOutId() : isvInfo.getOrgOutId());
|
|
|
+ openApiRequest.setAppId(Preconditions.isNotBlank(openApiRequest.getAppId()) ? openApiRequest.getAppId() : isvInfo.getAppId());
|
|
|
return createOperateRecordWithoutImage(openApiRequest);
|
|
|
}
|
|
|
|
|
@@ -591,7 +597,7 @@ public class AlipayOpenApiServiceImpl extends BaseService implements AlipayOpenA
|
|
|
IsvInfo isvInfo = getIsvInfo(openApiRequest.getAppId());
|
|
|
openApiRequest.setIsvPid(isvInfo.getIsvPid());
|
|
|
openApiRequest.setOrgOutId(isvInfo.getOrgOutId());
|
|
|
-
|
|
|
+ openApiRequest.setAppId(isvInfo.getAppId());
|
|
|
AlipayOpenIotvspUserstateQueryRequest request = new AlipayOpenIotvspUserstateQueryRequest();
|
|
|
request.setBizContent(JSON.toJSONString(openApiRequest));
|
|
|
try {
|