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

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

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 人关注

相关问题

无论怎么填都提示出错
有没有整合UC的anwsion的,求助
怎么没有Anwsion_2_Beta_1全新安装版本……
装上wecenter最新版后后台验证码一直提示错误,求解决方法。
乌云上看到几个wecenter的漏洞怎么都没有回应
QQ登录提示100010
有没有现成的火车头采集,可以付费
请问一下,现在有没有可以在注册的时候限制实名的代码+姓氏数据?
码农1024还没有备案好?
有没有用户使用手册

推荐内容

如何调用同一作者的其他文章?
手机版怎么发文章?
WeCenter 2.5 如何调用文章标题列表?
重新编辑文章的时候,提示“跳转至建议编辑”怎么办?
请教WeCenter如何设置首页文章摘要的字数即在哪儿设置
希望文章增加编辑话题的功能
怎样关闭首页文章下面的详细内容展示啊?
文章发布不了吗
网站出现这种情况是怎么回事?文章显示不了
手机版不能发文章?