Commit 2279fd65 authored by Quxl's avatar Quxl

x

parent bed43d86
...@@ -13,6 +13,6 @@ public interface EmailService { ...@@ -13,6 +13,6 @@ public interface EmailService {
* @param member_film_id * @param member_film_id
* @param template * @param template
*/ */
Map<String, Object> sendByTemplate_01(Long member_film_id, String template); Map<String, Object> sendByTemplate_01(Long member_film_id, String prefix);
} }
...@@ -74,7 +74,7 @@ public class EmailServiceImpl implements EmailService { ...@@ -74,7 +74,7 @@ public class EmailServiceImpl implements EmailService {
@Autowired @Autowired
Messages messages; Messages messages;
public Map<String, Object> sendByTemplate_01(Long member_film_id, String template) { public Map<String, Object> sendByTemplate_01(Long member_film_id, String prefix) {
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
Integer adminid = (Integer)adminTokenService.getToken().getId(); Integer adminid = (Integer)adminTokenService.getToken().getId();
Fc_member_film memberFilm = filmService.queryMemberFilmById(member_film_id); Fc_member_film memberFilm = filmService.queryMemberFilmById(member_film_id);
...@@ -84,7 +84,7 @@ public class EmailServiceImpl implements EmailService { ...@@ -84,7 +84,7 @@ public class EmailServiceImpl implements EmailService {
locale = new Locale("en", "US"); locale = new Locale("en", "US");
} }
String subject = messages.get("email.getPassword.subject", locale); String subject = messages.get("email.getPassword.subject", locale);
String content = Common.getStringAsStream(template + "_" + locale.getLanguage().toLowerCase() + "_" + locale.getCountry().toUpperCase() + ".txt"); String content = Common.getStringAsStream(prefix + "_" + locale.getLanguage().toLowerCase() + "_" + locale.getCountry().toUpperCase() + ".txt");
String filmName = null; String filmName = null;
if(locale.getLanguage().toLowerCase().equals("zh")) { if(locale.getLanguage().toLowerCase().equals("zh")) {
filmName = memberFilm.getCn_name(); filmName = memberFilm.getCn_name();
......
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