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