京东商城创建门店

This commit is contained in:
苏尹岚
2020-05-15 16:08:06 +08:00
parent a528f1da5b
commit f972503364
3 changed files with 15 additions and 10 deletions

View File

@@ -9,14 +9,14 @@ import (
func TestCreateEntityStore(t *testing.T) {
data, _, err := DownloadFileByURL("http://image.jxc4.com/image/b90ae8585e8cf2f3871f6e8318bde1dc.tem.png")
err = api.CreateEntityStore(&CreateEntityStoreParam{
result, err := api.CreateEntityStore(&CreateEntityStoreParam{
Name: "京西菜市门店1",
AddCode: 50946,
AddCodeName: "金牛区",
AddName: "成都金牛区@!加州湾v派",
Coordinate: "29.707870,115.980868",
Phone: "18160030913",
ExtendJSON: `{"businessBeginTime":"09:00","businessEndTime":"22:00"}`,
ExtendJSON: `{"businessBeginTime":"9:00","businessEndTime":"22:00"}`,
ImageFile: base64.StdEncoding.EncodeToString(data),
CategoryName: "pop-mendian-Selfdelivery",
CustomerID: "666934",
@@ -24,7 +24,7 @@ func TestCreateEntityStore(t *testing.T) {
if err != nil {
t.Fatal(err)
}
// t.Log(utils.Format4Output(result, false))
t.Log(utils.Format4Output(result, false))
}
func TestGetProvince(t *testing.T) {