This commit is contained in:
苏尹岚
2020-11-19 15:06:14 +08:00
parent 4551594f91
commit 264d1ea1ea
4 changed files with 56 additions and 5 deletions

View File

@@ -176,7 +176,7 @@ func TestUpdateBasic(t *testing.T) {
}
func TestUpdateExpand(t *testing.T) {
err := api.UpdateExpand(24562992)
err := api.UpdateExpand(24563694)
if err != nil {
t.Fatal(err)
}
@@ -191,6 +191,15 @@ func TestUploadImageNew(t *testing.T) {
// t.Fatal(err)
// }
// t.Log(utils.Format4Output(result, false))
str := "http://image.jxc4.com/image/b90ae8585e8cf2f3871f6e8318bde1dc.tem.png"
fmt.Println(str[strings.LastIndex(str, "/")+1 : len(str)])
str := "京西菜市松林农贸市场.生鲜店"
str2 := str[0:strings.Index(str, ".")] + str[strings.Index(str, ".")+1:len(str)]
fmt.Println(str2)
}
func TestShopList(t *testing.T) {
result, err := api.ShopList(1)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}