|
@@ -49,7 +49,7 @@ class Review extends Base
|
|
|
$uid = Dever::input('uid');
|
|
|
|
|
|
$user = Dever::load('passport/user-one', $uid);
|
|
|
- if ($user && $user['pic']) {
|
|
|
+ if ($user) {
|
|
|
$data = Dever::load('comment/review-one', array('option_info_id' => $this->data['info']['id'], 'option_source_table' => $source_table, 'option_source_id' => $source_id, 'option_uid' => $uid, 'option_content' => $content));
|
|
|
|
|
|
if ($data) {
|
|
@@ -67,9 +67,8 @@ class Review extends Base
|
|
|
|
|
|
$id = Dever::load('comment/review-insert', $insert);
|
|
|
|
|
|
-
|
|
|
- $table = $this->type($source_table);
|
|
|
- Dever::db('content/' . $table)->addReview($source_id);
|
|
|
+ $this->count($source_table, $source_id, 'comment/review', 'num_review');
|
|
|
+
|
|
|
}
|
|
|
return $id;
|
|
|
}
|