'require', 'otherUserId' => 'require', 'content' => 'require' ]; new Validate($params); } public function chatList() { } public function hello($name = 'ThinkPHP5') { return 'hello,' . $name; } public function daka() { $service = new DaKaService(); $service->run(); } public function ribao() { $data = [ 'msgtype' => 'text', 'text' => [ 'content' => '汇报日报了各位大佬(已写的请忽略)' ] ]; $date = date('Y-m-d'); var_dump($date); $hm = date('H:i'); $w = date('w', strtotime($date)); if($w==6 || $w == 0){ var_dump($date . '周末,跳过'); die(); } $wishTime = '22:36'; if ($hm !== $wishTime) { var_dump('不是期望时间不提示'.$wishTime); die(); } $riBao = new RiBaoService(); $riBao->sendMsg($data); } }