|
|
@@ -4,6 +4,7 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.http.HttpRequest;
|
|
|
import cn.hutool.http.HttpStatus;
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.common.util.StringUtil;
|
|
|
@@ -46,6 +47,12 @@ public class YhEmailServiceImpl implements YhMailService {
|
|
|
String prefix = "https://auth0.openai.com/u/reset-verify";
|
|
|
if (body.contains(prefix)) {
|
|
|
String query = StrUtil.subBetween(body, "<" + prefix, ">");
|
|
|
+ if(StringUtils.isBlank(query)){
|
|
|
+ query = StrUtil.subBetween(body, "(" + prefix, ")");
|
|
|
+ if(StringUtils.isBlank(query)){
|
|
|
+ query = StrUtil.subBetween(body, "( " + prefix, " )");
|
|
|
+ }
|
|
|
+ }
|
|
|
return prefix + query;
|
|
|
}
|
|
|
throw BusinessRuntimeException.getInstance("读取重置密码邮件失败或被新邮件覆盖");
|