Thinkphp6 获取当前协议+域名
2022-11-24 11:10:29
175
{{single.collect_count}}

echo input('server.REQUEST_SCHEME') . '://' . input('server.SERVER_NAME');

输出 http://your-domain.com  右边没有斜杠

助手函数 input 
https://www.kancloud.cn/manual/thinkphp6_0/1037519
https://www.kancloud.cn/manual/thinkphp6_0/1037653
http://www.thinkphp.cn/code/3952.html

回帖
全部回帖({{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 ? '加载中...' : '查看更多评论'}}