Commit a29573d3 authored by fangxinjiang's avatar fangxinjiang

Merge remote-tracking branch 'origin/develop' into develop

parents 4d32c429 80f09c69
...@@ -19,6 +19,7 @@ public interface ChecksConstants { ...@@ -19,6 +19,7 @@ public interface ChecksConstants {
String NO_DATA_RESULT="接口无返回数据"; String NO_DATA_RESULT="接口无返回数据";
String MESSAGE="message"; String MESSAGE="message";
String MESSAGE_INFO = ",msg:";
String MOBILE="mobile"; String MOBILE="mobile";
......
...@@ -100,7 +100,7 @@ public class ChecksUtil { ...@@ -100,7 +100,7 @@ public class ChecksUtil {
} }
} else { } else {
// 记录错误日志,正式项目中请换成log打印 // 记录错误日志,正式项目中请换成log打印
return R.failed("银行卡号校验失败,code:" + code + ",msg:" + jsonObject.get(ChecksConstants.MESSAGE).getAsString()); return R.failed("银行卡号校验失败,code:" + code + ChecksConstants.MESSAGE_INFO + jsonObject.get(ChecksConstants.MESSAGE).getAsString());
} }
} else { } else {
return R.failed(ChecksConstants.NO_DATA_RESULT); return R.failed(ChecksConstants.NO_DATA_RESULT);
...@@ -146,7 +146,7 @@ public class ChecksUtil { ...@@ -146,7 +146,7 @@ public class ChecksUtil {
} }
} else { } else {
// 记录错误日志,正式项目中请换成log打印 // 记录错误日志,正式项目中请换成log打印
return R.failed("手机号校验失败,code:" + code + ",msg:" + jsonObject.get(ChecksConstants.MESSAGE).getAsString()); return R.failed("手机号校验失败,code:" + code + ChecksConstants.MESSAGE_INFO + jsonObject.get(ChecksConstants.MESSAGE).getAsString());
} }
} else { } else {
return R.failed(ChecksConstants.NO_DATA_RESULT); return R.failed(ChecksConstants.NO_DATA_RESULT);
...@@ -173,12 +173,12 @@ public class ChecksUtil { ...@@ -173,12 +173,12 @@ public class ChecksUtil {
} else { } else {
checkIdCard.setIsTrue(CommonConstants.ZERO_INT); checkIdCard.setIsTrue(CommonConstants.ZERO_INT);
String remark = getJsonElementValue(resultJson.get(ChecksConstants.REMARK)); String remark = getJsonElementValue(resultJson.get(ChecksConstants.REMARK));
checkIdCard.setReason("调用身份信息校验失败,resultStr:" + resultStr + ",msg:" + remark); checkIdCard.setReason("调用身份信息校验失败,resultStr:" + resultStr + ChecksConstants.MESSAGE_INFO + remark);
} }
} else { } else {
// 记录错误日志,正式项目中请换成log打印 // 记录错误日志,正式项目中请换成log打印
checkIdCard.setIsTrue(CommonConstants.ZERO_INT); checkIdCard.setIsTrue(CommonConstants.ZERO_INT);
checkIdCard.setReason("调用身份信息校验失败,code:" + code + ",msg:" + jsonObject.get(ChecksConstants.MESSAGE).getAsString()); checkIdCard.setReason("调用身份信息校验失败,code:" + code + ChecksConstants.MESSAGE_INFO + jsonObject.get(ChecksConstants.MESSAGE).getAsString());
} }
} else { } else {
checkIdCard.setIsTrue(CommonConstants.ZERO_INT); checkIdCard.setIsTrue(CommonConstants.ZERO_INT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment