Skip to content

Commit

Permalink
优化用户协议和隐私协议的渲染
Browse files Browse the repository at this point in the history
  • Loading branch information
xxx committed Apr 1, 2024
1 parent c01492e commit f3adf4e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions resources/views/index/aboutus.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!doctype html>
@if(mb_substr($aboutus, -7,7) === '</html>')
{!! $aboutus !!}
@else
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
Expand All @@ -10,4 +13,6 @@
<body>
{!! $aboutus !!}
</body>
</html>
</html>
@endif

9 changes: 7 additions & 2 deletions resources/views/index/user_protocol.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!doctype html>
@if(mb_substr($protocol, -7,7) === '</html>')
{!! $protocol !!}
@else
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
Expand All @@ -10,4 +13,6 @@
<body>
{!! $protocol !!}
</body>
</html>
</html>
@endif

0 comments on commit f3adf4e

Please sign in to comment.