mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
hotfix
This commit is contained in:
parent
2267b8c306
commit
672b3a3536
@ -110,7 +110,7 @@ exports.put = function (req, res, next) {
|
||||
var editError;
|
||||
if (title === '') {
|
||||
editError = '标题不能是空的。';
|
||||
} else if (title.length >= 5 && title.length <= 100) {
|
||||
} else if (title.length < 5 && title.length > 100) {
|
||||
editError = '标题字数太多或太少。';
|
||||
} else if (!tab) {
|
||||
editError = '必须选择一个版块。';
|
||||
@ -209,7 +209,7 @@ exports.update = function (req, res, next) {
|
||||
var editError;
|
||||
if (title === '') {
|
||||
editError = '标题不能是空的。';
|
||||
} else if (title.length >= 5 && title.length <= 100) {
|
||||
} else if (title.length < 5 && title.length > 100) {
|
||||
editError = '标题字数太多或太少。';
|
||||
} else if (!tab) {
|
||||
editError = '必须选择一个版块。';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user