优化查询浪潮接口,身份证为空清空
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user