jdsh2
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user