api2.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:codex-backend 作者: codexgigassys 项目源码 文件源码
def api_process_file():
    file_hash = clean_hash(request.query.file_hash)
    if len(file_hash) != 40:
        response.status = 400
        return jsonize({'message': 'Invalid hash format (use sha1)'})

    res = process_file(file_hash, True)
    if res is None:
        response.status = 404
        return jsonize("File not found in the database")

    return jsonize("File processed")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号