protected function clientStep01() { $sendData = $this->msStatus(); $sendData['uids'] = array(); $sendData['has_new_report'] = 0; $typeReportSendStatus = new TypeReportSendStatus(); if ($typeReportSendStatus->hasNewReport()) { $sendData['has_new_report'] = 1; $scheduleTypeReportSendLog = new ScheduleTypeReportSendLog(); $reports = $scheduleTypeReportSendLog->getUnsentReportItems(0); $this->client_step01_found_reports = $reports; $sendData['uids'] = $reports['uids']; } $this->createClientMessage('01', 0, $sendData); }