fix(string): fixed translate string issues.

This commit is contained in:
OldHawk
2017-11-30 17:50:20 +08:00
parent b87f33e67d
commit 953138277e
6 changed files with 33 additions and 25 deletions

View File

@@ -558,7 +558,7 @@ exports.thumbsUp = function (req, res) {
});
if (exist) {
return res.status(422).send({
message: 'ALREADY_THUMBS_UP'
message: 'SERVER.ALREADY_THUMBS_UP'
});
} else {
if (req.user.score >= thumbsUpScore.topic) {
@@ -569,7 +569,7 @@ exports.thumbsUp = function (req, res) {
save();
} else {
return res.status(422).send({
message: 'SCORE_NOT_ENOUGH'
message: 'SERVER.SCORE_NOT_ENOUGH'
});
}
}
@@ -585,7 +585,7 @@ exports.thumbsUp = function (req, res) {
});
if (exist) {
return res.status(422).send({
message: 'ALREADY_THUMBS_UP'
message: 'SERVER.ALREADY_THUMBS_UP'
});
} else {
if (req.user.score >= thumbsUpScore.topic) {
@@ -596,7 +596,7 @@ exports.thumbsUp = function (req, res) {
save();
} else {
return res.status(422).send({
message: 'SCORE_NOT_ENOUGH'
message: 'SERVER.SCORE_NOT_ENOUGH'
});
}
}