程序代码

$sql = DB::getQueryLog();
$query = end($sql);
return $query;

happy coding!