|
@@ -50,7 +50,7 @@ public class UserLoginController {
|
|
|
public ResponseVO getVerifyCode(String murmur,HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws CustomException {
|
|
|
// 三个参数分别为宽、高、位数
|
|
|
try {
|
|
|
- if (murmur.length()!=32){
|
|
|
+ if (murmur==null || murmur.length()!=32){
|
|
|
return ResponseVO.fail("不能生成验证码!");
|
|
|
}
|
|
|
String textcode = "";
|