Commit 2a0c4307d15bc74f3d9d0d3a7ddd7cb473c76b15
1 parent
156231380a
Exists in
master
修改返回错误提示
Showing 1 changed file with 5 additions and 2 deletions
webApi/src/main/java/com/lyms/yimiao/web/controller/v1/KidsController.java
View file @
2a0c430
| ... | ... | @@ -115,7 +115,7 @@ | 
| 115 | 115 | if (verCodeObj == null) { | 
| 116 | 116 | //参数错误 | 
| 117 | 117 | resultMsgMap.put(ResultUtils.ERROR_CODE, ConstantInterface.VER_CODE_EXPIRE); | 
| 118 | - resultMsgMap.put(ResultUtils.ERROR_MSG, "验证码已过期,请重新获取."); | |
| 118 | + resultMsgMap.put(ResultUtils.ERROR_MSG, "验证码错误"); | |
| 119 | 119 | writeJson(response, JsonUtil.obj2JsonString(resultMsgMap));//把这个map转成一个json字符串输出到前台 | 
| 120 | 120 | return; | 
| 121 | 121 | } | 
| ... | ... | @@ -154,7 +154,10 @@ | 
| 154 | 154 | |
| 155 | 155 | MedKidsQuery medKidsQuery = new MedKidsQuery(); | 
| 156 | 156 | medKidsQuery.setBirthday(birthday); | 
| 157 | - medKidsQuery.setBarCode(barCode); | |
| 157 | + if (StringUtils.isNotEmpty(barCode)){ | |
| 158 | + //去掉前后空白 | |
| 159 | + medKidsQuery.setBarCode(barCode.trim()); | |
| 160 | + } | |
| 158 | 161 | medKidsQuery.setPhone(phone); | 
| 159 | 162 | medKidsQuery.setSort("ki_buildtime desc");//时间排序 | 
| 160 | 163 | medKidsQuery.setIsDelete(isDelete); |