|
@@ -102,7 +102,7 @@ class ProductController extends Controller
|
|
}else{
|
|
}else{
|
|
$v['pid'] = $v['pid'];
|
|
$v['pid'] = $v['pid'];
|
|
}
|
|
}
|
|
- $data[] =[
|
|
|
|
|
|
+ $data[] = [
|
|
'id' => $v['id'],
|
|
'id' => $v['id'],
|
|
'icon' => $v['icon'],
|
|
'icon' => $v['icon'],
|
|
'zh_name' => $v['zh_name'],
|
|
'zh_name' => $v['zh_name'],
|
|
@@ -293,7 +293,7 @@ class ProductController extends Controller
|
|
$type_name = $product_type['zh_name'];
|
|
$type_name = $product_type['zh_name'];
|
|
}
|
|
}
|
|
$msg = [
|
|
$msg = [
|
|
- 'type' => 2,//喜欢通知
|
|
|
|
|
|
+ 'type' => 2,//下载通知
|
|
'title' => "下载通知",
|
|
'title' => "下载通知",
|
|
'content' => "您收藏了".$type_name."中的1张图片",
|
|
'content' => "您收藏了".$type_name."中的1张图片",
|
|
'user_id' => $this->userId,
|
|
'user_id' => $this->userId,
|
|
@@ -302,7 +302,7 @@ class ProductController extends Controller
|
|
Msg::query()->create($msg); // 添加通知消息
|
|
Msg::query()->create($msg); // 添加通知消息
|
|
|
|
|
|
$msg1 = [
|
|
$msg1 = [
|
|
- 'type' => 3,//喜欢通知
|
|
|
|
|
|
+ 'type' => 3,//保存通知
|
|
'title' => "保存通知",
|
|
'title' => "保存通知",
|
|
'content' => $user->name."收藏了您".$type_name."中的1张图片",
|
|
'content' => $user->name."收藏了您".$type_name."中的1张图片",
|
|
'user_id' => $this->userId,
|
|
'user_id' => $this->userId,
|