黄宗昌 2 年之前
父節點
當前提交
68b162ae4f
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      app/Http/Controllers/V1/ProductController.php
  2. 1 1
      app/Http/Controllers/V1/UserController.php

+ 3 - 3
app/Http/Controllers/V1/ProductController.php

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

+ 1 - 1
app/Http/Controllers/V1/UserController.php

xqd
@@ -113,7 +113,7 @@ class UserController extends Controller
         if($collect){
             return $this->error("您已关注过了!");
         }
-        $data =[
+        $data = [
             'user_id' => $this->userId,
             'to_user_id' => $user->id,
         ];