zoujiajian 1 anno fa
parent
commit
d38cd990be

+ 6 - 0
netflix-service/src/main/java/com/cyksj/service/mange/account/CmsAccountServiceImpl.java

@@ -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);
 		}