| xqd
@@ -773,7 +773,7 @@ class AlbumController extends Controller
|
|
|
$goods = AlbumProductModel::find($goods_id);
|
|
|
$cat = AlbumCatModel::find($goods->cat_id);
|
|
|
$style = AlbumProductStyleModel::find($goods->style);
|
|
|
- $val->action == 1? $act = '收藏':$act = '查看';
|
|
|
+ $val->action == 1? $act = '收藏':$act = '查看';if(empty($style)||empty($cat)) continue;
|
|
|
$action = $act.'了您的'.$cat->name.'分类下的'.$style->name.'风格的商品 '.$goods->name;
|
|
|
}elseif($val->action == 2){
|
|
|
//dd(111);
|
| xqd
@@ -782,14 +782,14 @@ class AlbumController extends Controller
|
|
|
if($cat_data['cat_id']=="undefined"||$cat_data['style']=="undefined"||!$cat_data['style']||!$cat_data['cat_id']) continue;
|
|
|
$cat = AlbumCatModel::find($cat_data['cat_id']);
|
|
|
$style = AlbumProductStyleModel::find($cat_data['style']);
|
|
|
- dd($cat_data['style']);
|
|
|
+ if(empty($style)||empty($cat)) continue;
|
|
|
$action = '浏览了您的 '.$cat->name.'分类下的 '.$style->name.'风格的商品列表';
|
|
|
}elseif($val->action==5){
|
|
|
$goods_data = json_decode($val->detail,true);
|
|
|
$goods_id = $goods_data['goods_id'];
|
|
|
$goods = AlbumProductModel::find($goods_id);
|
|
|
$cat = AlbumCatModel::find($goods->cat_id);
|
|
|
- $style = AlbumProductStyleModel::find($goods->style);
|
|
|
+ $style = AlbumProductStyleModel::find($goods->style);if(empty($style)||empty($cat)) continue;
|
|
|
$action = '点击了您的'.$cat->name.'分类下的'.$style->name.'风格的商品 '.$goods->name.'的'.$goods_data['detail'];
|
|
|
}elseif($val->action==6){
|
|
|
$detail = json_decode($val->detail,true);
|