Commit 2279fd65 authored by Quxl's avatar Quxl

x

parent bed43d86
......@@ -13,6 +13,6 @@ public interface EmailService {
* @param member_film_id
* @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 {
@Autowired
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>();
Integer adminid = (Integer)adminTokenService.getToken().getId();
Fc_member_film memberFilm = filmService.queryMemberFilmById(member_film_id);
......@@ -84,7 +84,7 @@ public class EmailServiceImpl implements EmailService {
locale = new Locale("en", "US");
}
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;
if(locale.getLanguage().toLowerCase().equals("zh")) {
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