def certification_mobile_state(host, phone):
    try:
        sql = mobile_certification.format(1, phone)
        db.db_base(host, sql)
    except Exception as e:
        print("error_info:{}".format(str(e)))
Beispiel #2
0
def u_user_info(host, username, idcard, phone):
    sql = update_user_info % (username, idcard, 1, phone)
    db.db_base(host, sql)
Beispiel #3
0
def insert_ocr_back_info(host, phone, ocr_img_path_info):
    sql = insert_ocr_info % (query_mobile_info(
        host, phone), 1, ocr_img_path_info, get_local_time(), 1, 'back')
    db.db_base(host, sql)
Beispiel #4
0
def query_mobile_info(host, phone):
    sql = select_user_info.format(phone)
    return db.db_base(host, sql)[0]['id']