...
|
...
|
@@ -4,7 +4,6 @@ import ( |
|
|
"database/sql"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
orm2 "github.com/astaxie/beego/orm"
|
|
|
"oppmg/common/log"
|
|
|
"oppmg/models"
|
|
|
"oppmg/protocol"
|
...
|
...
|
@@ -12,6 +11,8 @@ import ( |
|
|
"oppmg/utils"
|
|
|
"strings"
|
|
|
"time"
|
|
|
|
|
|
orm2 "github.com/astaxie/beego/orm"
|
|
|
)
|
|
|
|
|
|
//添加模板
|
...
|
...
|
@@ -433,7 +434,7 @@ func TemplateOperateCategory(uid, companyId int64, request *protocol.TemplateOpe |
|
|
}
|
|
|
return
|
|
|
}
|
|
|
if len([]rune(request.Code)) != 6 {
|
|
|
if len([]rune(request.Code)) > 6 {
|
|
|
err = protocol.NewErrWithMessage("10065")
|
|
|
return
|
|
|
}
|
...
|
...
|
|