Commit 3eb11172 by vss宋顺

Merge branch 'bugfix_email_expriedTime' into 'release'

bugfix: email request expired time error See merge request !37
parents 50109173 86035e54
......@@ -42,7 +42,6 @@ public class CtripEmailRequestBuilder {
@Value("${ctrip.email.survival.duration}")
private int survivalDuration;
private Calendar expiredTime;
@PostConstruct
public void init() {
......@@ -60,8 +59,6 @@ public class CtripEmailRequestBuilder {
setExpiredTime = sendEmailRequestClazz.getMethod("setExpiredTime", Calendar.class);
setAppID = sendEmailRequestClazz.getMethod("setAppID", Integer.class);
expiredTime = calExpiredTime();
} catch (Throwable e) {
logger.error("init email request build failed", e);
Tracer.logError("init email request build failed", e);
......@@ -88,7 +85,7 @@ public class CtripEmailRequestBuilder {
setBodyTemplateID.invoke(request, templateId);
setIsBodyHtml.invoke(request, true);
setCharset.invoke(request, "UTF-8");
setExpiredTime.invoke(request, expiredTime);
setExpiredTime.invoke(request, calExpiredTime());
setAppID.invoke(request, appId);
return request;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment