uuid
This commit is contained in:
parent
d2fe83bed5
commit
b0b90e1f35
|
|
@ -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","")));
|
||||
}
|
||||
}
|
||||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue