update
This commit is contained in:
parent
de895227ef
commit
798e7aae92
|
|
@ -27,7 +27,6 @@ type OrderCreateRequest struct {
|
||||||
PetGoodsInfos []PetGoodsInfo //宠物商品信息列表
|
PetGoodsInfos []PetGoodsInfo //宠物商品信息列表
|
||||||
ServiceTime string //预约时间 yyyy-MM-dd HH:mm
|
ServiceTime string //预约时间 yyyy-MM-dd HH:mm
|
||||||
ServiceAddrId int64 //预约服务地址
|
ServiceAddrId int64 //预约服务地址
|
||||||
ServiceAreaId int64 //服务地址ID
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type OrderCreateResponse struct {
|
type OrderCreateResponse struct {
|
||||||
|
|
@ -50,11 +49,11 @@ func (p DefParty) orderCreate() web_iris.Party {
|
||||||
UserServiceAddrNotExistError.Fail(ctx, nil)
|
UserServiceAddrNotExistError.Fail(ctx, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
serviceAddr := ServiceAddrMap[orderCreateRequest.ServiceAreaId]
|
//serviceAddr := ServiceAddrMap[orderCreateRequest.ServiceAreaId]
|
||||||
if serviceAddr.Id == 0 {
|
//if serviceAddr.Id == 0 {
|
||||||
NotInServiceExistError.Fail(ctx, nil)
|
// NotInServiceExistError.Fail(ctx, nil)
|
||||||
return
|
// return
|
||||||
}
|
//}
|
||||||
/*if len(serviceAddr.ServiceArea) > 0 && serviceAddr.ServiceArea != userServiceAddr.AddrArea {
|
/*if len(serviceAddr.ServiceArea) > 0 && serviceAddr.ServiceArea != userServiceAddr.AddrArea {
|
||||||
ServiceAddrNotExistError.Fail(ctx, nil)
|
ServiceAddrNotExistError.Fail(ctx, nil)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ func GetStrDays(day int, minute int, reserveMap map[string]models.ReserveTimeFil
|
||||||
Time: nextHour.Format("15:04"),
|
Time: nextHour.Format("15:04"),
|
||||||
Y: false,
|
Y: false,
|
||||||
})
|
})
|
||||||
|
nextHour = nextHour.Add(time.Duration(minute) * time.Minute)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if _, ok := dayHoursMap[key]; ok {
|
if _, ok := dayHoursMap[key]; ok {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue