Browse Source

修复专访详情 变量错误

tbphp 1 year ago
parent
commit
c4810996de
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/admin/controller/Watch.php

+ 2 - 1
application/admin/controller/Watch.php

@@ -1,4 +1,5 @@
 <?php
+
 namespace app\admin\controller;
 
 use app\admin\model\Member;
@@ -44,7 +45,7 @@ class Watch extends Base
         $data->bannerImg = config('project.upload') . '/' . $data->banner;
         $data->coverImg  = config('project.upload') . '/' . $data->cover;
         $data->summary   = $data->getData('summary');
-        $this->cid       = 1;
+        $data->cid       = 1;
         if ($data->content) {
             $ds = array_column($data->content, 'd');
             if (!$ds) {