From 20e2e3c1592df27eec4a0f44df2aadeee8b2a37c Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Wed, 13 Dec 2023 16:26:52 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=96=AD=E5=BC=80=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/DataCollectController.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/api/controller/DataCollectController.php b/app/api/controller/DataCollectController.php index 208da856..8f0e6f34 100644 --- a/app/api/controller/DataCollectController.php +++ b/app/api/controller/DataCollectController.php @@ -1,13 +1,14 @@ toArray(); + + return $this->success('接收成功', ['user_name'=>$parmas['username'], 'topic'=>$parmas['topic']]); } catch (Exception $e) { return $this->fail($e->getMessage()); } } + + public function disabled() + { + $parmas = $this->request->post(); + Log::info(json_encode($parmas)); + } } \ No newline at end of file