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