From b0b90e1f35a666b99bb2aeea3317b2a54a1b9ef5 Mon Sep 17 00:00:00 2001 From: zhang zhuo Date: Tue, 9 Sep 2025 13:43:16 +0800 Subject: [PATCH] uuid --- app/Controller/GaoDingController.php | 2 +- app/Model/Uuid.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Controller/GaoDingController.php b/app/Controller/GaoDingController.php index d9cd6cc..c3eb5b9 100644 --- a/app/Controller/GaoDingController.php +++ b/app/Controller/GaoDingController.php @@ -21,6 +21,6 @@ class GaoDingController extends AbstractController #[GetMapping("uuid/query")] public function query() { - return $this->success([]); + return $this->success(uModel::getByUuid($this->request->input("uuid",""))); } } \ No newline at end of file diff --git a/app/Model/Uuid.php b/app/Model/Uuid.php index bcc668a..bbfd2a3 100644 --- a/app/Model/Uuid.php +++ b/app/Model/Uuid.php @@ -51,4 +51,9 @@ class Uuid extends Model } return $uuid; } + + public static function getByUuid(string $uuid) + { + return self::where("uuid", $uuid)->where("del_flag", 0)->select(['uuid','status','exp'])->first(); + } }