| xqd
@@ -2373,11 +2373,19 @@ class AlbumController extends Controller
|
|
|
$arr[date('Y-m-d H:i', strtotime($val['created_at']))][$goods->id] = [
|
|
|
'name' => $goods->name,
|
|
|
'style' => $style->name,
|
|
|
- 'cat' => $style->name,
|
|
|
+ 'cat' => $cat->name,
|
|
|
'thumb' => $goods->thumb,
|
|
|
'times' => 1
|
|
|
];
|
|
|
}
|
|
|
+ } else {
|
|
|
+ $arr[date('Y-m-d H:i', strtotime($val['created_at']))][$goods->id] = [
|
|
|
+ 'name' => $goods->name,
|
|
|
+ 'style' => $style->name,
|
|
|
+ 'cat' => $cat->name,
|
|
|
+ 'thumb' => $goods->thumb,
|
|
|
+ 'times' => 1
|
|
|
+ ];
|
|
|
}
|
|
|
}
|
|
|
}
|