app.py 文件源码

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

项目:sns-push-notification-service 作者: futurice 项目源码 文件源码
def decode_base64_id(encoded_string):
    try:
        item_id = base64.b64decode(encoded_string).decode()
    except (binascii.Error, binascii.Incomplete):
        abort(400, error_message="Incorrect or corrupted base64 data")
    if len(item_id) < 10:
        abort(400, error_message="Invalid ID")
    return item_id
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号