修改命令

This commit is contained in:
Minho
2017-05-03 16:03:51 +08:00
parent 91c7707a1f
commit d02aad28b9
2 changed files with 7 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ func (c *SearchController) Index() {
src = re.ReplaceAllString(src, "\n")
r := []rune(src)
beego.Info(r)
if len(r) > 100 {
src = string(r[:100])
}else{