dever 6 سال پیش
والد
کامیت
c05456a998
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      act/lib/Comment.php

+ 5 - 1
act/lib/Comment.php

@@ -62,8 +62,12 @@ class Comment
         if (!$info) {
             Dever::db($table)->insert($where);
         }
+        Dever::score($uid, 'submit_commit', '发表评论');
 
         # 更新评论数
+        if ($type == 5) {
+            return true;
+        }
         $where = array();
         $where['data_id'] = $id;
         $where['type'] = $type;
@@ -72,7 +76,7 @@ class Comment
         $table = Dever::config('base')->type_table[$type];
         Dever::db($table)->update(array('where_id' => $id, 'num_comment' => $total));
 
-        Dever::score($uid, 'submit_commit', '发表评论');
+        
 
         return true;
     }