就是老师的源代码里的
public function getRecent($count = 15)
{
(new Count())->goCheck();
$products = ProductModel::getMostRecent($count);
if (!$products->isEmpty()) {
throw new ProductException();
}
$products = $products->hidden(['summary']);
return $products;
}