$buynowinfoid])->find(); if (!empty($buynowinfo)) { $buynowinfo = $buynowinfo->toArray(); $buynowinfodata = iunserializer($buynowinfo['data']);; } $data = ServiceTime::where(['weid' => weid(),'ptype'=>(int)$buynowinfodata['shopList']['category']['servicetime_ptype']]) ->order('id asc,sort asc') ->select() ->toArray(); foreach ($data as &$vo) { $vo['time'] = $vo['begin_time']; $vo['seltime'] = $vo['begin_time'] . '-' . $vo['end_time']; if (!empty($technicalId)) { if (OrderStaff::checkstaff($technicalId, $selectDate, $vo['begin_time'], $vo['end_time'])) { $vo['disable'] = true; } } } return $this->json(['data' => $data]); } }