This commit is contained in:
richboo111
2023-05-06 12:04:30 +08:00
parent ca1cf10632
commit 76ce507f61
7 changed files with 187 additions and 126 deletions

View File

@@ -2,7 +2,9 @@ package trenditapi
import (
"fmt"
"git.rosy.net.cn/baseapi/utils"
"testing"
"time"
)
var api = New(TiAppID, TiAppSecret)
@@ -40,10 +42,7 @@ func TestAPI_Print(t *testing.T) {
}
func TestCal(t *testing.T) {
str := "豌豆米-手工剥豆约100g/份"
//ans := "--------------------------------"
cnt := CalWidth(str)
fmt.Println(cnt)
fmt.Println(utils.Time2Str(time.Now()))
}
//打印取消/退货模板