jds
This commit is contained in:
@@ -15,7 +15,7 @@ func TestCreateShopCategory(t *testing.T) {
|
||||
var CreateShopCategoryParams = []*CreateShopCategoryParam{
|
||||
&CreateShopCategoryParam{
|
||||
HomeShow: "0",
|
||||
ID: "0",
|
||||
ID: "1",
|
||||
Open: "",
|
||||
OrderNo: "0",
|
||||
ParentID: "",
|
||||
@@ -132,3 +132,54 @@ func PKCS5UnPadding(decrypted []byte) []byte {
|
||||
unPadding := int(decrypted[length-1])
|
||||
return decrypted[:(length - unPadding)]
|
||||
}
|
||||
|
||||
func TestShopDetail(t *testing.T) {
|
||||
result, err := api.ShopDetail(24562992)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestUpdateBasic(t *testing.T) {
|
||||
err := api.UpdateBasic(&UpdateBasicParam{
|
||||
StoreID: 24562992,
|
||||
StoreName: "京西菜市温江旗舰生鲜店",
|
||||
CategoryID2: 62,
|
||||
Lng: "103.858781",
|
||||
Lat: "30.692941",
|
||||
Coordinate: "30.692941,103.858781",
|
||||
BussinessBeginTime: "08:30",
|
||||
BussinessEndTime: "20:00",
|
||||
ImgURL: "jfs/t1/141918/10/14803/148865/5fb4e8cbE95a606cb/08a8dc277eb97a16.png",
|
||||
StorePhone: "13706546496",
|
||||
AddName: "四川成都市温江区@!温江区锦泉街116号(优取舍)",
|
||||
AddCode1: 22,
|
||||
AddCode2: 1930,
|
||||
AddCode3: 49315,
|
||||
CategoryID1: 34,
|
||||
QualificationRequests: []*QualificationRequests{
|
||||
&QualificationRequests{
|
||||
QualificationID: 41,
|
||||
QualificationName: "营业执照",
|
||||
QualificationNo: "11111",
|
||||
QualificationURL: "jfs/t1/148622/37/14846/10266/5fb4e3e2Ef2f61870/a7cfba9c1513d95e.png",
|
||||
StartTime: "2020-11-04 00:00:00",
|
||||
EndingTime: "2020-11-06 23:59:59",
|
||||
Time: []string{"2020-11-04 00:00:00", "2020-11-06 23:59:59"},
|
||||
},
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestUpdateExpand(t *testing.T) {
|
||||
err := api.UpdateExpand(24562992)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user