1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-24 20:06:09 +08:00

修复评论审核路由问题

This commit is contained in:
koogua 2021-06-23 11:02:50 +08:00
parent 31c87faeaf
commit 44c5b0ce04
2 changed files with 5 additions and 2 deletions

View File

@ -30,7 +30,7 @@
<tbody>
{% for item in pager.items %}
{% set owner_url = url({'for':'home.user.show','id':item.owner.id}) %}
{% set review_url = url({'for':'admin.answer.publish_review','id':item.id}) %}
{% set review_url = url({'for':'admin.comment.publish_review','id':item.id}) %}
<tr>
<td>{{ substr(item.content,0,32) }}</td>
<td>

View File

@ -141,8 +141,10 @@ $error['question.invalid_reject_reason'] = '无效的拒绝理由';
$error['question.edit_not_allowed'] = '当前不允许编辑问题';
$error['question.delete_not_allowed'] = '当前不允许删除问题';
$error['answer.not_found'] = '回答不存在';
$error['answer.content_too_short'] = '内容太短少于10个字符';
$error['answer.content_too_long'] = '内容太长多于30000个字符';
$error['answer.invalid_reject_reason'] = '无效的拒绝理由';
$error['answer.post_not_allowed'] = '当前不允许发布回答';
$error['answer.edit_not_allowed'] = '当前不允许编辑回答';
$error['answer.delete_not_allowed'] = '当前不允许删除回答';
@ -155,7 +157,8 @@ $error['comment.parent_not_found'] = '上级评论不存在';
$error['comment.to_user_not_found'] = '回复用户不存在';
$error['comment.invalid_item_type'] = '无效的条目类型';
$error['comment.invalid_publish_status'] = '无效的发布状态';
$error['comment.content_too_short'] = '内容太短少于10个字符';
$error['comment.invalid_reject_reason'] = '无效的拒绝理由';
$error['comment.content_too_short'] = '内容太短少于2个字符';
$error['comment.content_too_long'] = '内容太长多于1000个字符';
/**