优化查询浪潮接口,身份证为空清空

This commit is contained in:
sh
2026-05-25 19:30:23 +08:00
parent ac7eec396c
commit 98fb18256e

View File

@@ -268,9 +268,11 @@ public class OauthClient {
* @return * @return
*/ */
public String nwLcUserTag(String idCard){ public String nwLcUserTag(String idCard){
String url=personTagUrl+"/"+idCard; if (StringUtils.isBlank(idCard)) {
return null;
}
try { try {
String result = HttpUtils.doGet(url); String result = HttpUtils.doGet(personTagUrl+"/"+idCard);
JSONObject json = JSONObject.parseObject(result); JSONObject json = JSONObject.parseObject(result);
if(json.getIntValue("code") != 200){ if(json.getIntValue("code") != 200){
return null; return null;