Ver código fonte

feat: e证通入参存在endType则获取,否则取配置文件

李学松 2 anos atrás
pai
commit
9720b62109

+ 6 - 2
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/ApiController.java

@@ -4343,7 +4343,9 @@ public class ApiController {
 							@RequestParam(value = "realName") String realName,
 							@RequestParam(value = "endType", required = false) String endType) {
 
-		endType = upmsConfig.getEndType();
+		if (StrUtil.isBlank(endType)) {
+			endType = upmsConfig.getEndType();
+		}
 
 		String tokenUrl = upmsConfig.getGigServiceUrl() + "/gig/operation/eid?idCard={idCard}&realName={realName}&endType={endType}";
 
@@ -4369,7 +4371,9 @@ public class ApiController {
 	public R<?> getEidResult(@RequestParam(value = "token") String token,
 							 @RequestParam(value = "endType", required = false) String endType) {
 
-		endType = upmsConfig.getEndType();
+		if (StrUtil.isBlank(endType)) {
+			endType = upmsConfig.getEndType();
+		}
 
 		String tokenUrl = upmsConfig.getGigServiceUrl() + "/gig/operation/eid/result?token={token}&endType={endType}";