This commit is contained in:
邹宗楠
2023-02-24 16:59:07 +08:00
parent 6eac242b06
commit 719507863a
4 changed files with 38 additions and 40 deletions

View File

@@ -49,36 +49,36 @@ func TestGetStoreInfoByStationNo(t *testing.T) {
}
//
//func TestUpdateStoreInfo4Open(t *testing.T) {
// result, err := api.GetStoreInfoByStationNo2(mustExistStoreID)
// if err != nil {
// t.Fatal(err)
// }
// oldAddress := result.StationAddress
// params := &OpStoreParams{
// StationNo: mustExistStoreID,
// Operator: "test",
// StationAddress: oldAddress + "T",
// }
// err = api.UpdateStoreInfo4Open2(params, false)
// if err != nil {
// t.Fatal(err)
// }
//
// result, err = api.GetStoreInfoByStationNo2(mustExistStoreID)
// newAddress := result.StationAddress
// if newAddress != params.StationAddress {
// t.Fatalf("address not match, newAddress:%s, oldAddress:%s", newAddress, oldAddress)
// }
//
// params.StationAddress = oldAddress
// api.UpdateStoreInfo4Open2(params, false)
// if err != nil {
// t.Fatal(err)
// }
//}
//
func TestUpdateStoreInfo4Open(t *testing.T) {
params := &OpStoreParams{
StationNo: "12664100",
StationName: "",
OutSystemID: "",
Mobile: "",
Phone: "",
Lat: 43.622098,
Lng: 122.275918,
StationAddress: "内蒙古自治区通辽市科尔沁区百花新城",
Operator: "liulei",
ServiceTimeEnd1: 0,
ServiceTimeStart1: 0,
ServiceTimeEnd2: 0,
ServiceTimeStart2: 0,
DeliveryRangeType: 0,
CoordinateType: 0,
DeliveryRangeRadius: 0,
CoordinatePoints: "",
CloseStatus: 0,
StoreNotice: "",
StandByPhone: "",
}
err := api.UpdateStoreInfo4Open2(params, false)
if err != nil {
t.Fatal(err)
}
}
//func TestGetCommentByOrderId(t *testing.T) {
// testOrderID := int64(922520919000622)
// result, err := api.GetCommentByOrderId2(testOrderID)