From 9b008a9d23d1454fb896aecf146d7f8619e96c5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AA=97=E8=BE=B9=E7=9A=84=E5=B0=8F=E8=B1=86=E8=B1=86?= <4563196@qq.com> Date: Tue, 1 Aug 2023 05:17:30 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E8=BD=AC=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 窗边的小豆豆 <4563196@qq.com> --- WeChatLogin/app/Http/Controllers/ApiController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/WeChatLogin/app/Http/Controllers/ApiController.php b/WeChatLogin/app/Http/Controllers/ApiController.php index 45ff52db..3357a250 100644 --- a/WeChatLogin/app/Http/Controllers/ApiController.php +++ b/WeChatLogin/app/Http/Controllers/ApiController.php @@ -249,4 +249,12 @@ class ApiController extends Controller return $checkAccount; } + + public function getapi(Request $request){ + $app = new Application(ConfigHelper::getConfig($request->connectId)); + $response = $app->getClient()->postJson($request->action, $request->data ?? []); + $response = $response->toArray(); + + return $this->success($response); + } } -- Gitee