From cf68049323f6aff3adea9add24f0aa0684db59c4 Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Thu, 20 Feb 2025 21:04:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BD=99=E9=A2=9D=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/IndexController.php | 2 +- app/controller/admin/api/v1/DashboardController.php | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/controller/IndexController.php b/app/controller/IndexController.php index 08cc537..350ab2c 100644 --- a/app/controller/IndexController.php +++ b/app/controller/IndexController.php @@ -13,7 +13,7 @@ class IndexController public function index(Request $request) { - var_dump(PaymentNew::shopGetBalance()); + return response()->file(public_path() . '/index.html'); } diff --git a/app/controller/admin/api/v1/DashboardController.php b/app/controller/admin/api/v1/DashboardController.php index f330659..4276ec8 100644 --- a/app/controller/admin/api/v1/DashboardController.php +++ b/app/controller/admin/api/v1/DashboardController.php @@ -10,6 +10,7 @@ use app\model\User; use app\model\UserPhone; use hg\apidoc\annotation as Apidoc; use app\model\Withdraw; +use App\Utils\API\PaymentNew; /** * @Apidoc\Title("首页展示数据") @@ -69,4 +70,15 @@ class DashboardController $res['withdraw']=$withdraw; return ApiResponse::success(200, $res); } + /** + * @Apidoc\Title("1.0 查询第三方支付余额") + * @Apidoc\Url("admin/api/v1/Dashboard/shopGetBalance") + * @Apidoc\Method("POST") + */ + public function shopGetBalance(Request $request) + { + $res = []; + $res['AmountAvailable']=PaymentNew::shopGetBalance(); + return ApiResponse::success(200, $res); + } }