zoujiajian 2 лет назад
Родитель
Сommit
c29e8ec326

+ 4 - 1
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -622,6 +622,9 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 				}
 				return urlPref + code;
 			}
+			if (StrUtil.isEmpty(code)) {
+				throw BusinessRuntimeException.getInstance("查询失败,请检查是否发送了登陆码..");
+			}
 		}
 		//迪士尼
 		if (goodsId == 3) {
@@ -638,7 +641,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 		code = getVerifyCode(code);
 		if (!Validator.isNumber(code)) {
 			log.error("获取账号验证码失败:{}", StrUtil.subSufByLength(code, 512));
-			throw BusinessRuntimeException.getInstance("获取验证码失败,请重新获取...");
+			throw BusinessRuntimeException.getInstance("获取验证码失败,请重新获取..");
 		}
 		return code.trim();
 	}