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