格式化返回的值为正确的类型
        :param response_data: 返回的数据

def format_response_data_type(self, response_data):
        """格式化返回的值为正确的类型
        :param response_data: 返回的数据
        """
        if isinstance(response_data, list) and not isinstance(
            response_data, str
        ):
            return response_data

        int_match_str = "|".join(self.config["response_format"]["int"])
        float_match_str = "|".join(self.config["response_format"]["float"])
        for item in response_data:
            for key in item:
                try:
                    if re.search(int_match_str, key) is not None:
                        item[key] = helpers.str2num(item[key], "int")
                    elif re.search(float_match_str, key) is not None:
                        item[key] = helpers.str2num(item[key], "float")
                except ValueError:
                    continue
        return response_data