modify base/controller/rest.php