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); + } }