|
@@ -719,7 +719,11 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
if (StrUtil.isEmpty(code)) {
|
|
if (StrUtil.isEmpty(code)) {
|
|
|
code = TicketCodeCommonUtil.getTicketCodeStr(body, goodsId);
|
|
code = TicketCodeCommonUtil.getTicketCodeStr(body, goodsId);
|
|
|
}
|
|
}
|
|
|
- code = StringUtil.getVerifyCodePattern(code);
|
|
|
|
|
|
|
+ int length = 4;
|
|
|
|
|
+ if (goodsId == 33l) {
|
|
|
|
|
+ length = 6;
|
|
|
|
|
+ }
|
|
|
|
|
+ code = StringUtil.getVerifyCodePattern(code, length);
|
|
|
if (!Validator.isNumber(code)) {
|
|
if (!Validator.isNumber(code)) {
|
|
|
log.error("获取账号验证码失败:{}", StrUtil.subSufByLength(code, 512));
|
|
log.error("获取账号验证码失败:{}", StrUtil.subSufByLength(code, 512));
|
|
|
throw BusinessRuntimeException.getInstance("获取验证码失败,请重新获取..");
|
|
throw BusinessRuntimeException.getInstance("获取验证码失败,请重新获取..");
|