2
0

api_image_view.py 252 B

123456789
  1. from .tool.func import *
  2. def api_image_view_2(conn, name):
  3. curs = conn.cursor()
  4. if os.path.exists(os.path.join(load_image_url(), name)):
  5. return flask.jsonify({ "exist" : "1" })
  6. else:
  7. return flask.jsonify({ "exist" : "0" })