2 Star 11 Fork 3

zvms / zvms-backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
report.py 545 Bytes
一键复制 编辑 原始数据 按行查看 历史
So1aric 提交于 2022-10-23 16:27 . fix bugs
from flask import Blueprint, request
import json
from deco import *
from res import *
import oppressor as OP
import datetime
Report = Blueprint('report', __name__)
@Report.route('/report', methods = ['GET', 'OPTIONS', 'POST'])
@Deco
def submitReport_NoToken(json_data, token_data):
report = json_data.get('report')
f = open('./report.log', 'a+')
# 2021.11.22 10.40 Modified by nekomoyi
f.write('[' + str(datetime.datetime.now()) + '] ' + report + '\n')
f.close()
return { "type": "SUCCESS", "message": "提交成功" }
Python
1
https://gitee.com/zvms/zvms-backend.git
git@gitee.com:zvms/zvms-backend.git
zvms
zvms-backend
zvms-backend
master

搜索帮助