rabin 7 years ago
parent
commit
346ba95c54
2 changed files with 5 additions and 5 deletions
  1. 1 1
      comment/src/Vote.php
  2. 4 4
      content/lib/Base.php

+ 1 - 1
comment/src/Vote.php

@@ -38,7 +38,7 @@ class Vote extends Base
 
             # 增加原表数据 以后要添加crontab来定时矫正数据
             $table = $this->type($source_table);
-            Dever::db('content/' . $table)->addUp($source_id);
+            Dever::db($table)->addUp($source_id);
         }
         return $id;
     }

+ 4 - 4
content/lib/Base.php

@@ -148,10 +148,10 @@ class Base
     {
         $config = array
         (
-            1 => 'news',
-            2 => 'course',
-            3 => 'meeting',
-            4 => 'review',
+            1 => 'content/news',
+            2 => 'content/course',
+            3 => 'content/meeting',
+            4 => 'comment/review',
         );
         return $config[$type];
     }