Migrated from Redmine #462 | Author: 刚 宋
Status: New | Priority: High, I’m very impatient | Created: 2020-01-07
我在某一个服务中添加了预定订单,比如我给A服务添加了一个13:00到14:00的订单,我在获取其他服务的可用时间时怎么也没有了13:00-14:00这一时间段,不是应该只有A服务才没有吗
var availableTime = client.getServiceAvailableTimeIntervals(dateFrom,dateTo,eventId,unitId,0);
返回结果如下
{“2020-01-07”:{“1”:[{“from”:“10:00:00”,“to”:“13:00:00”},{“from”:“14:00:00”,“to”:“24:00:00”}],“2”:[{“from”:“10:00:00”,“to”:“13:00:00”},{“from”:“14:00:00”,“to”:“24:00:00”}],“3”:[{“from”:“10:00:00”,“to”:“13:00:00”},{“from”:“14:00:00”,“to”:“24:00:00”}],“4”:[{“from”:“10:00:00”,“to”:“13:00:00”},{“from”:“14:00:00”,“to”:“24:00:00”}],“5”:[{“from”:“10:00:00”,“to”:“13:00:00”},{“from”:“14:00:00”,“to”:“24:00:00”}],“6”:[{“from”:“10:00:00”,“to”:“13:00:00”},{“from”:“14:00:00”,“to”:“24:00:00”}],“7”:[{“from”:“10:00:00”,“to”:“13:00:00”},{“from”:“14:00:00”,“to”:“24:00:00”}]}}
事实上我只有eventId为7的那个服务才有一个订单
这是怎么回事