|
|
|
|
@ -69,11 +69,9 @@ class HomeController extends CommonController
|
|
|
|
|
$factor = FactorItems::where('factor_id', $product->statistic_factor_id)->get();
|
|
|
|
|
$order_total = OrderItems::whereIn('product_item_id', $productItem->pluck('id'))->sum('total');
|
|
|
|
|
|
|
|
|
|
// $lies = Cache::remember('lies', 24 * 60 * 60, function () use ($productItem, $factor, $order_total) {
|
|
|
|
|
// return $this->getLies($productItem, $factor, $order_total);
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
$lies= $this->getLies($productItem, $factor, $order_total);
|
|
|
|
|
$lies = Cache::remember('cache_lies', 24 * 60 * 60, function () use ($productItem, $factor, $order_total) {
|
|
|
|
|
return $this->getLies($productItem, $factor, $order_total);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$allMontn = [
|
|
|
|
|
date("Y") . '-01',
|
|
|
|
|
|