作者 sgj
1 个管道 的构建 通过 耗费 0 秒

评论增加积分

... ... @@ -36,7 +36,7 @@ class IndexController extends PluginBaseController
Db::name('portal_post')->where('id', $post['object_id'])->setInc('comment_count');
$site=cmf_get_option('site_info');
addScore($user_id,$site['comment'],'评论文章');
$this->success('留言成功! 获得20积分!', url('portal/Article/index', ['id' => $post['object_id']]));
$this->success('留言成功! 获得'.$site['comment'].'积分!', url('portal/Article/index', ['id' => $post['object_id']]));
}else{
$this->error('数据传入失败!');
}
... ...