sanlin.shi 2 weeks ago
parent
commit
8f6c5f91d2

+ 4 - 3
src/main/java/cn/hanghui/outapi/platform/alipay/service/impl/AlipayOpenApiServiceImpl.java

@@ -222,7 +222,7 @@ public class AlipayOpenApiServiceImpl extends BaseService implements AlipayOpenA
     public RestResult createOperateRecordWithverified(AlipayOpenIotvspUserwithimageRequest openApiRequest) {
         log.info("--->自定义vid设备端实名入库入参:{}", JSONObject.toJSONString(openApiRequest));
         //查询用户是否在库
-        if (openApiRequest == null || openApiRequest.getCertNo() == null || openApiRequest.getAppId() == null) {
+        if (openApiRequest == null || openApiRequest.getCertNo() == null) {
             log.error("--->自定义vid设备端实名入库参数错误");
             return RestResponse.error("参数错误");
         }
@@ -257,7 +257,7 @@ public class AlipayOpenApiServiceImpl extends BaseService implements AlipayOpenA
     public RestResult createOperateRecordWithverifiedcommon(AlipayOpenIotvspUserwithimageRequest openApiRequest) {
         log.info("--->自定义vid接口实名入库入参:{}", JSONObject.toJSONString(openApiRequest));
         //查询用户是否在库
-        if (openApiRequest == null || openApiRequest.getCertNo() == null || openApiRequest.getAppId() == null) {
+        if (openApiRequest == null || openApiRequest.getCertNo() == null) {
             log.error("--->自定义vid接口实名入库参数错误");
             return RestResponse.error("参数错误");
         }
@@ -266,6 +266,7 @@ public class AlipayOpenApiServiceImpl extends BaseService implements AlipayOpenA
         openApiRequest.setComponentOutId(Preconditions.isNotBlank(openApiRequest.getComponentOutId()) ? openApiRequest.getComponentOutId() : getComponentOutId("common"));
         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);
     }
 
@@ -557,7 +558,7 @@ public class AlipayOpenApiServiceImpl extends BaseService implements AlipayOpenA
         IsvInfo isvInfo = getIsvInfo(openApiRequest.getAppId());
         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());
         List<String> vids = openApiRequest.getVidList().stream().distinct().collect(Collectors.toList());
         for (String vid : vids) {
             AlipayOpenIotvspUserDeleteRequest request = new AlipayOpenIotvspUserDeleteRequest();