Skip to content

Commit f3adf4e

Browse files
author
xxx
committed
优化用户协议和隐私协议的渲染
1 parent c01492e commit f3adf4e

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

resources/views/index/aboutus.blade.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
<!doctype html>
1+
@if(mb_substr($aboutus, -7,7) === '</html>')
2+
{!! $aboutus !!}
3+
@else
4+
<!doctype html>
25
<html lang="en">
36
<head>
47
<meta charset="UTF-8">
@@ -10,4 +13,6 @@
1013
<body>
1114
{!! $aboutus !!}
1215
</body>
13-
</html>
16+
</html>
17+
@endif
18+

resources/views/index/user_protocol.blade.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
<!doctype html>
1+
@if(mb_substr($protocol, -7,7) === '</html>')
2+
{!! $protocol !!}
3+
@else
4+
<!doctype html>
25
<html lang="en">
36
<head>
47
<meta charset="UTF-8">
@@ -10,4 +13,6 @@
1013
<body>
1114
{!! $protocol !!}
1215
</body>
13-
</html>
16+
</html>
17+
@endif
18+

0 commit comments

Comments
 (0)