|
|
@@ -38,6 +38,9 @@ public class YhEmailServiceImpl implements YhMailService {
|
|
|
public String getVerifyCode(String account, Long goodsId, Integer type, Integer linkType, Boolean isReturnDeviceUrl) throws Exception {
|
|
|
String body = readEmail(account);
|
|
|
String code = getDifferentGoodsCode(goodsId, body, type, linkType, isReturnDeviceUrl);
|
|
|
+ if (StrUtil.isEmpty(code)) {
|
|
|
+ throw BusinessRuntimeException.getInstance("请重新发送对应邮件");
|
|
|
+ }
|
|
|
return code;
|
|
|
}
|
|
|
|