rabin 7 years ago
parent
commit
851985a75a
2 changed files with 3 additions and 1 deletions
  1. 1 1
      content/lib/Base.php
  2. 2 0
      content/v1/Course.php

+ 1 - 1
content/lib/Base.php

@@ -37,7 +37,7 @@ class Base
     {
     {
         $config = array
         $config = array
         (
         (
-            'pic', 'content', 'logo', 'top', 'img'
+            'pic', 'content', 'logo', 'top', 'img', 'link'
         );
         );
 
 
         foreach ($config as $k => $v) {
         foreach ($config as $k => $v) {

+ 2 - 0
content/v1/Course.php

@@ -130,6 +130,8 @@ class Course extends Base
                     }
                     }
                 }
                 }
 
 
+                $this->data['course']['user_count'] = count($this->data['course']['user']);
+
                 # 增加阅读量
                 # 增加阅读量
                 Dever::load('content/course-addView', $id);
                 Dever::load('content/course-addView', $id);
             } else {
             } else {