13283339616 6 yıl önce
ebeveyn
işleme
35d1517158
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      app/Models/VestPublish.php

+ 3 - 3
app/Models/VestPublish.php

@@ -72,7 +72,7 @@ class VestPublish extends Model
72 72
                     //视频个数
73 73
                     $info['counts']=1;
74 74
                     //点赞
75
-                    $datas=self::thumb_up($publish_info[0]['id']);
75
+                    $datas=self::thumb_up($info['id']);
76 76
                     $info['thumb_up_num'] =$datas['thumb_up_num'];
77 77
                     $info['thumb_up_imgs']=$datas['thumb_up_imgs'];
78 78
                     $publish_info[$key]=$info;
@@ -88,7 +88,7 @@ class VestPublish extends Model
88 88
                             //图集个数
89 89
                             $info['counts']=1;
90 90
                             //点赞
91
-                            $datas=self::thumb_up($publish_info[0]['id']);
91
+                            $datas=self::thumb_up($info['id']);
92 92
                             $info['thumb_up_num'] =$datas['thumb_up_num'];
93 93
                             $info['thumb_up_imgs']=$datas['thumb_up_imgs'];
94 94
                             $publish_info[$key]=$info;
@@ -100,7 +100,7 @@ class VestPublish extends Model
100 100
                             //图集个数
101 101
                             $info['counts']=count($info['publish_info']);
102 102
                             //点赞
103
-                            $datas=self::thumb_up($publish_info[0]['id']);
103
+                            $datas=self::thumb_up($info['id']);
104 104
                             $info['thumb_up_num'] =$datas['thumb_up_num'];
105 105
                             $info['thumb_up_imgs']=$datas['thumb_up_imgs'];
106 106
                             $publish_info[$key]=$info;