查询语句->each(function ($item, $key) use (&$events) { $events[] = [ "attachment" => $item->screenpath, "black_url" => $item->blackurl, "dip" => null ];});