正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -137,6 +137,10 @@ func (this *TemplateController) TemplateUpdate() { | @@ -137,6 +137,10 @@ func (this *TemplateController) TemplateUpdate() { | ||
| 137 | msg = m | 137 | msg = m |
| 138 | return | 138 | return |
| 139 | } | 139 | } |
| 140 | + if len([]rune(request.Template.Name)) > 10 { | ||
| 141 | + msg = protocol.BadRequestParam("10070") | ||
| 142 | + return | ||
| 143 | + } | ||
| 140 | if len([]rune(request.Template.Doc)) > 30 { | 144 | if len([]rune(request.Template.Doc)) > 30 { |
| 141 | msg = protocol.BadRequestParam("10272") | 145 | msg = protocol.BadRequestParam("10272") |
| 142 | return | 146 | return |
-
请 注册 或 登录 后发表评论