示例#1
0
def downloadqr(data=None):
    client=currentSession()
    xbt = Xbt()
    img = xbt.getqr(data)
    resp = serve_pil_image(img)
    resp.headers["Content-Disposition"] = "attachment; filename=" + xbt.getUriAddress(data) + ".png"
    return resp
示例#2
0
def qr(data=None):
    client=currentSession()
    xbt = Xbt()
    img = xbt.getqr(data)
    return serve_pil_image(img)