|
@@ -2365,7 +2365,7 @@ class AlbumController extends Controller
|
|
if($goods){
|
|
if($goods){
|
|
$style = AlbumProductStyleModel::where([['store_id',$store_id],['id',$goods->style]])->first();
|
|
$style = AlbumProductStyleModel::where([['store_id',$store_id],['id',$goods->style]])->first();
|
|
$cat = AlbumCatModel::where([['store_id',$store_id],['id',$goods->cat_id]])->first();
|
|
$cat = AlbumCatModel::where([['store_id',$store_id],['id',$goods->cat_id]])->first();
|
|
- $arr[] = ['name'=>$goods->name,'time'=>date('Y-m-d H:i',strtotime($val['created_at'])), 'style'=>$style->name, 'cat'=>$cat->name, 'thumb'=>$goods->thumb];
|
|
|
|
|
|
+ //$arr[] = ['name'=>$goods->name,'time'=>date('Y-m-d H:i',strtotime($val['created_at'])), 'style'=>$style->name, 'cat'=>$cat->name, 'thumb'=>$goods->thumb];
|
|
if (isset($arr[date('Y-m-d H:i', strtotime($val['created_at']))])) {
|
|
if (isset($arr[date('Y-m-d H:i', strtotime($val['created_at']))])) {
|
|
if (isset($arr[date('Y-m-d H:i', strtotime($val['created_at']))][$goods->id])) {
|
|
if (isset($arr[date('Y-m-d H:i', strtotime($val['created_at']))][$goods->id])) {
|
|
$arr[date('Y-m-d H:i', strtotime($val['created_at']))][$goods->id]['times']++;
|
|
$arr[date('Y-m-d H:i', strtotime($val['created_at']))][$goods->id]['times']++;
|