def _decrypt(self):
    try:
        json_data = Cryption.aes_base64_decrypt(self.origin_data, self.des_key)
        message = json.loads(json_data)
    except Exception as e:
        logger.error(('Response from the function of `judge._decrypt`, error_msg=%s, rel_err_msg=%s' % (EncryptError.message, e.message)), exc_info=True)
        raise EncryptError
    self.apply_id = message.get('apply_id', None)
    if (not self.apply_id):
        logger.error(('Response from the function of `judge._decrypt`, error_msg=%s, rel_err_msg=%s' % (GetApplyIdError.message, 'Missing apply_id in the post_data')), exc_info=True)
        raise GetApplyIdError
    self.target_features = message.get('res_keys', None)
    if (not self.target_features):
        logger.error(('Response from the function of `judge._decrypt`, error_msg=%s, rel_err_msg=%s' % (GetResKeysError.message, 'Missing res_keys in the post_data')), exc_info=True)
        raise GetResKeysError
    apply_base = ApplyContext(self.apply_id)
    self.arguments = apply_base.load()
    if (not self.arguments):
        logger.error(('Response from the function of `judge._decrypt`, error_msg=%s, rel_err_msg=%s' % (GetArgumentsError.message, 'Missing arguments in the post_data')), exc_info=True)
        raise GetArgumentsError
def _decrypt(self):
    try:
        json_data = Cryption.aes_base64_decrypt(self.origin_data, self.des_key)
        message = json.loads(json_data)
    except Exception as e:
        logger.error(('Response from the function of `judge._decrypt`, error_msg=%s, rel_err_msg=%s' % (EncryptError.message, e.message)), exc_info=True)
        raise EncryptError
    self.apply_id = message.get('apply_id', None)
    if (not self.apply_id):
        logger.error(('Response from the function of `judge._decrypt`, error_msg=%s, rel_err_msg=%s' % (GetApplyIdError.message, 'Missing apply_id in the post_data')), exc_info=True)
        raise GetApplyIdError
    self.target_features = message.get('res_keys', None)
    if (not self.target_features):
        logger.error(('Response from the function of `judge._decrypt`, error_msg=%s, rel_err_msg=%s' % (GetResKeysError.message, 'Missing res_keys in the post_data')), exc_info=True)
        raise GetResKeysError
    apply_base = ApplyContext(self.apply_id)
    self.arguments = apply_base.load()
    if (not self.arguments):
        logger.error(('Response from the function of `judge._decrypt`, error_msg=%s, rel_err_msg=%s' % (GetArgumentsError.message, 'Missing arguments in the post_data')), exc_info=True)
        raise GetArgumentsError