|
|
@@ -461,6 +461,9 @@ public class CmsAccountServiceImpl extends ServiceImpl<AccountMapper, Account> i
|
|
|
if (StrUtil.hasEmpty(account, password)) {
|
|
|
throw BusinessRuntimeException.getInstance("账户异常");
|
|
|
}
|
|
|
+ if (StrUtil.isNotEmpty(at.getRelateEmail())) {
|
|
|
+ account = at.getRelateEmail();
|
|
|
+ }
|
|
|
if (cuiQiuMailService.isCuiQiuEmail(account)) {
|
|
|
return cuiQiuMailService.getVerifyCode(account, at.getGoodsId(), null, 1, false);
|
|
|
}
|
|
|
@@ -487,6 +490,9 @@ public class CmsAccountServiceImpl extends ServiceImpl<AccountMapper, Account> i
|
|
|
if (StrUtil.hasEmpty(account, password)) {
|
|
|
throw BusinessRuntimeException.getInstance("账户异常");
|
|
|
}
|
|
|
+ if (StrUtil.isNotEmpty(at.getRelateEmail())) {
|
|
|
+ account = at.getRelateEmail();
|
|
|
+ }
|
|
|
if (cuiQiuMailService.isCuiQiuEmail(account)) {
|
|
|
return cuiQiuMailService.getVerifyCode(account, at.getGoodsId(), null, null, false);
|
|
|
}
|