Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sentinel
Commits
2be4bf23
Commit
2be4bf23
authored
Nov 26, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
a566f92d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
2 deletions
+48
-2
AdminFirstController.java
...va/com/egolm/film/api/web/admin/AdminFirstController.java
+16
-1
first_pass_zh_CN.txt
src/main/resources/doc/first_pass_zh_CN.txt
+32
-1
No files found.
src/main/java/com/egolm/film/api/web/admin/AdminFirstController.java
View file @
2be4bf23
...
...
@@ -116,7 +116,22 @@ public class AdminFirstController {
}
String
subject
=
messages
.
get
(
"email.getPassword.subject"
,
locale
);
String
content
=
Common
.
getStringAsStream
(
"doc/first_pass_"
+
locale
.
getLanguage
().
toLowerCase
()
+
"_"
+
locale
.
getCountry
().
toUpperCase
()
+
".txt"
);
MessageFormat
.
format
(
content
,
member
.
getUsername
(),
memberFilm
.
getId
());
String
filmName
=
null
;
if
(
locale
.
getLanguage
().
toLowerCase
().
equals
(
"zh"
))
{
filmName
=
memberFilm
.
getCn_name
();
}
else
if
(
locale
.
getLanguage
().
toLowerCase
().
equals
(
"en"
))
{
filmName
=
memberFilm
.
getEn_name
();
}
if
(
filmName
==
null
||
filmName
.
trim
().
length
()
==
0
)
{
filmName
=
memberFilm
.
getOrigion_name
();
}
if
(
filmName
==
null
||
filmName
.
trim
().
length
()
==
0
)
{
filmName
=
memberFilm
.
getEn_name
();
}
if
(
filmName
==
null
||
filmName
.
trim
().
length
()
==
0
)
{
filmName
=
memberFilm
.
getCn_name
();
}
MessageFormat
.
format
(
content
,
member
.
getUsername
(),
memberFilm
.
getId
(),
filmName
);
emailService
.
send
(
subject
,
content
,
member
.
getEmail
());
return
Rjx
.
jsonOk
();
}
...
...
src/main/resources/doc/first_pass_zh_CN.txt
View file @
2be4bf23
初审通过
用户 {0}
影片编号 {1}
尊敬的{0}先生/女士:
首先代表上海国际电影节向您致以诚挚的问候!
非常感谢您的影片报名第二十二届上海国际电影节。
我们非常荣幸的通知您,我们已经收到您提交的影片报名资料,以下为您的影片报名信息:
影片编号:{1}
影片名称:{2}
上海国际电影节会非常专业及谨慎的对待每一部报名影片,最终结果将会在2019年5月15日以后通过邮件告知您。
如您有任何问题,请随时联系您所申报单元的负责人。
祝您的影片在上海国际电影节取得成功!
此致
敬礼!
上海国际影视节中心/上海国际电影节
上海市静安区康定路211号,艺海大厦20层, 邮编200041
官网:www.siff.com
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment