This commit is contained in:
Silent YANG 2024-02-25 16:08:17 +08:00
parent f705e2a189
commit 740f864b06

2
app.py
View file

@ -14,7 +14,7 @@ def local2utc(local_dtm):
# 本地时间转 UTC 时间( -8:00 # 本地时间转 UTC 时间( -8:00
return datetime.utcfromtimestamp(local_dtm.timestamp()) return datetime.utcfromtimestamp(local_dtm.timestamp())
@app.route("/lol") @app.route("/lol", methods=['POST'])
@cross_origin() @cross_origin()
def lol(): def lol():
func = request.json.get('func', 0) func = request.json.get('func', 0)