1
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package app_model
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-print/model"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
@@ -14,6 +16,6 @@ func TestPrintOrder(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestIsNil(t *testing.T) {
|
||||
var data *PrintBindStore
|
||||
fmt.Println(data == nil)
|
||||
aa := fmt.Sprintf("%x", md5.Sum([]byte(model.RegisterKey+"96e79218965eb72c92a549dd5a330112")))
|
||||
fmt.Println(aa)
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ func (t *TempServer) AddOrUpdateTemp(param *tempModel.AddTemp) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if len(temp) > 0 {
|
||||
if len(temp) > 1 {
|
||||
return errors.New("模板名称重复")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user