diff --git a/app/auth.php b/app/auth.php index 299c662..4385c26 100755 --- a/app/auth.php +++ b/app/auth.php @@ -37,7 +37,14 @@ function requireAdmin(): void requireLogin(); if (!isAdmin()) { http_response_code(403); - echo 'Forbidden'; + $me = currentUser(); + if ($me && function_exists('pageHeader') && function_exists('fusionRestrictedCard')) { + pageHeader($me); + fusionRestrictedCard(); + pageFooter(); + } else { + echo '需要管理员权限'; + } exit; } } diff --git a/app/views/acceptance_discount_calculator.php b/app/views/acceptance_discount_calculator.php index 32209a3..3c6b74a 100644 --- a/app/views/acceptance_discount_calculator.php +++ b/app/views/acceptance_discount_calculator.php @@ -2,121 +2,100 @@ declare(strict_types=1); /** @var array $me */ ?> -
银承信用风险相对较低;商承请结合承兑人资信评估。
+银承信用风险相对较低;商承请结合承兑人资信评估。
-填写左侧并点击「计算」
- -保存在本浏览器,可对比多次试算。
-填写左侧并点击「计算」
+ +保存在本浏览器,最多对照多次试算。
+