This commit is contained in:
Silent YANG 2024-02-25 16:25:23 +08:00
parent 0c6156008b
commit 748e7c4e90

1
app.py
View file

@ -23,6 +23,7 @@ def lol():
if func == 0: if func == 0:
r.set(_uuid, _cache, 600) r.set(_uuid, _cache, 600)
else: else:
if r.get(_uuid):
_cache = r.get(_uuid).decode("utf-8") _cache = r.get(_uuid).decode("utf-8")
return jsonify({'code': 200, 'uuid': _uuid, 'cache': _cache}) return jsonify({'code': 200, 'uuid': _uuid, 'cache': _cache})