该问题已被锁定!
7
关注
3115
浏览

文章被赞了没有提示消息吗?

AI智能回复搜索中,请稍后...

为什么被折叠? 0 个回复被折叠
Alu 初级会员 用户来自于: 广东省东莞市
2014-09-10 18:17
是没有,可以自己加个。 app\article\ajax.php public function article_vote_action() { switch ($_POST['type']) { case 'article': $item_info = $this->model('article')->get_article_info_by_id($_POST['item_id']); break; case 'comment': $item_info = $this->model('article')->get_comment_by_id($_POST['item_id']); break; } if (!$item_info) { H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('内容不存在'))); } if ($item_info['uid'] == $this->user_id) { H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('不能对自己发表的内容进行投票'))); } $reputation_factor = $this->model('account')->get_user_group_by_id($this->user_info['reputation_group'], 'reputation_factor'); $this->model('article')->article_vote($_POST['type'], $_POST['item_id'], $_POST['rating'], $this->user_id, $reputation_factor, $item_info['uid']); if ($_POST['type'] == 'article' AND $item_info['uid'] != $this->user_id) { $this->model('message')->send_message($this->user_id, $item_info['uid'], AWS_APP::lang()->_t('您发布的文章有人投票了,点击查看') . ': ' . get_setting('base_url') . '/article/' . intval($_POST['item_id'])); } H::ajax_json_output(AWS_APP::RSM(null, 1, null)); }
meiwenti 初级会员 用户来自于: 北京市门头沟区
2014-09-10 17:20
你是说作者的提示信息吗

关于作者

问题动态

发布时间
2014-09-05 21:14
更新时间
2014-09-10 18:19
关注人数
7 人关注

推荐内容

文章编辑器是什么编辑器?
关于内容推送(类似于DZ等论坛的内容推送)功能建议,
文章列表页面中,这些东西该怎么去掉?
2.5版的文章模块,文章中支持不支持@功能,以增加对网站会员在信息方面的贡献?
希望在下个版本里文章分类能独立开来,甚至可以关闭
文章模块与运营的关系
发现列表页,怎样在文章标题前加上[文章]二字?
问答,文章调用摘要、源码和默认模板修改方法
文章页面如何只显示推荐内容?
文章栏如何不要摘要,只要图呢