def check_res_fail(self, res):
    if (res == None):
        return True
    if ('hcode' not in res):
        return True
    if ('lcode' not in res):
        return True
    if ('msg' not in res):
        return True
    if ('result' not in res['msg']):
        return True
    return False
def check_res_fail(self, res):
    if (res == None):
        return True
    if ('hcode' not in res):
        return True
    if ('lcode' not in res):
        return True
    if ('msg' not in res):
        return True
    if ('result' not in res['msg']):
        return True
    return False