thinkphp5 未定义数组索引解决办法
2023-03-29 23:03:03
194
{{single.collect_count}}

这是由于没有判断type是否存在,解决方法如下:

$type=isset($_POST["type"])?$_POST["type"]:0;

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}