



技术领域technical field
本发明实施例涉及计算机技术,尤其涉及一种直播间中数据的加工方法、装置、设备及存储介质。The embodiments of the present invention relate to computer technology, and in particular to a data processing method, device, equipment and storage medium in a live broadcast room.
背景技术Background technique
在网络直播间中存在一类数据,这类数据中会包含多个图片(例如,不同分辨率,不同尺寸的图,不同价值状态下不同的图标等),且每个图片的信息中包含图片的完整地址信息,如相同的域名信息和各自不同的图片存储路径信息等。这类数据可以是直播间中的礼物数据、道具数据或弹幕数据等。There is a type of data in the webcast room, which will contain multiple pictures (for example, pictures of different resolutions, different sizes, different icons in different value states, etc.), and the information of each picture includes the picture Complete address information, such as the same domain name information and different picture storage path information. This type of data can be gift data, prop data, or barrage data in the live broadcast room.
以礼物数据为例,当直播间客户端发出网络数据请求后,服务端会将请求的礼物数据中的所有图片的信息封装至一个JSON格式的对象中,并将该JSON对象发送至直播间客户端。这样,返回的JSON对象中便包含了大量重复的数据,例如图片的域名信息,导致了返回数据的数据量的增加,以及数据传输过程中过多的流量损耗。Taking the gift data as an example, when the live room client sends a network data request, the server will encapsulate all the picture information in the requested gift data into an object in JSON format, and send the JSON object to the live room client end. In this way, the returned JSON object contains a large amount of repeated data, such as the domain name information of the picture, resulting in an increase in the amount of returned data and excessive traffic loss during data transmission.
发明内容Contents of the invention
本发明实施例提供一种直播间中数据的加工方法、装置、设备及存储介质,以实现在保证直播间中数据完整性的基础上,简化直播间中包含重复信息的数据,从而节省数据传输流量。Embodiments of the present invention provide a data processing method, device, device, and storage medium in a live broadcast room, so as to simplify the data containing repeated information in the live broadcast room on the basis of ensuring the integrity of the data in the live broadcast room, thereby saving data transmission flow.
第一方面,本发明实施例提供了一种直播间中数据的加工方法,包括:In the first aspect, the embodiment of the present invention provides a method for processing data in a live broadcast room, including:
获取直播间中以预设数据结构存储的目标数据,所述目标数据中包含至少两个相同类型的目标子数据,且每个所述目标子数据中包含相同的数据元素,所述预设数据结构包含共享字段和目标子数据字段,所述共享字段用于存储所述数据元素,所述目标子数据字段用于存储所述目标子数据中除所述数据元素之外的剩余数据;Obtain the target data stored in the live room with a preset data structure, the target data contains at least two target sub-data of the same type, and each of the target sub-data contains the same data elements, the preset data The structure includes a shared field and a target sub-data field, the shared field is used to store the data element, and the target sub-data field is used to store the remaining data in the target sub-data except the data element;
解析所述目标数据,获得各所述目标子数据,以用于直播间中的数据流转。The target data is analyzed to obtain each target sub-data for data transfer in the live broadcast room.
第二方面,本发明实施例还提供了一种直播间中数据的加工装置,该装置包括:In the second aspect, the embodiment of the present invention also provides a data processing device in a live broadcast room, the device comprising:
目标数据获取模块,用于获取直播间中以预设数据结构存储的目标数据,所述目标数据中包含至少两个相同类型的目标子数据,且每个所述目标子数据中包含相同的数据元素,所述预设数据结构包含共享字段和目标子数据字段,所述共享字段用于存储所述数据元素,所述目标子数据字段用于存储所述目标子数据中除所述数据元素之外的剩余数据;A target data acquisition module, configured to acquire target data stored in a preset data structure in the live broadcast room, wherein the target data contains at least two target sub-data of the same type, and each of the target sub-data contains the same data element, the preset data structure includes a shared field and a target sub-data field, the shared field is used to store the data element, and the target sub-data field is used to store the target sub-data except the data element the rest of the data;
数据加工模块,用于解析所述目标数据,获得各所述目标子数据,以用于直播间中的数据流转。The data processing module is used to analyze the target data and obtain each target sub-data for data transfer in the live broadcast room.
第三方面,本发明实施例还提供了一种电子设备,该电子设备包括:In a third aspect, an embodiment of the present invention also provides an electronic device, the electronic device comprising:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序,storage means for storing one or more programs,
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明任意实施例所提供的直播间中数据的加工方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the data processing method in the live broadcast room provided by any embodiment of the present invention.
第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现本发明任意实施例所提供的直播间中数据的加工方法。In a fourth aspect, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for processing data in a live broadcast room provided by any embodiment of the present invention is implemented .
本发明实施例通过设计包含共享字段和目标子数据字段的预设数据结构,将目标数据中的每个目标子数据均拆分为信息共享的数据元素和信息有差异的剩余数据,实现了在保证目标数据完整性和可用性的基础上,简化目标数据的数据量,从而减少了目标数据传输过程中的流量损耗。In the embodiment of the present invention, by designing a preset data structure including a shared field and a target sub-data field, each target sub-data in the target data is split into data elements for information sharing and remaining data with different information, thereby achieving On the basis of ensuring the integrity and availability of the target data, the data volume of the target data is simplified, thereby reducing the traffic loss in the process of target data transmission.
附图说明Description of drawings
图1是本发明实施例一中的一种直播间中数据的加工方法的流程图;Fig. 1 is a flowchart of a data processing method in a live broadcast room in Embodiment 1 of the present invention;
图2是本发明实施例二中的一种直播间中数据的加工方法的流程图;Fig. 2 is a flowchart of a data processing method in a live broadcast room in Embodiment 2 of the present invention;
图3是本发明实施例三中的一种直播间中数据的加工装置的结构示意图;3 is a schematic structural diagram of a data processing device in a live broadcast room in Embodiment 3 of the present invention;
图4是本发明实施例四中的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device in Embodiment 4 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
实施例一Embodiment one
本实施例提供的直播间中数据的加工方法可适用于直播间中包含重复信息的数据的加工,例如礼物数据、道具数据和弹幕数据等。该方法可以由直播间中数据的加工装置来执行,该装置可以由软件和/或硬件的方式实现,该装置可以集成在安装有直播间客户端的电子设备中,例如典型的是用户终端设备,例如手机、平板电脑或台式电脑等。参见图1,本实施例的方法包括:The data processing method in the live broadcast room provided by this embodiment is applicable to the processing of data containing repetitive information in the live broadcast room, such as gift data, item data, and barrage data. The method can be performed by a data processing device in the live broadcast room, which can be implemented by software and/or hardware, and which can be integrated in an electronic device installed with a live broadcast room client, such as a typical user terminal device, Such as mobile phone, tablet or desktop computer etc. Referring to Fig. 1, the method of the present embodiment comprises:
S110、获取直播间中以预设数据结构存储的目标数据。S110. Obtain target data stored in a preset data structure in the live broadcast room.
其中,目标数据是指需要在直播间客户端中被加工处理的数据,例如可以是礼物数据、道具数据或弹幕数据等。目标数据中包含至少两个相同类型的目标子数据,且每个目标子数据中包含相同的数据元素。目标子数据是目标数据的内部数据,其内包含部分与其他目标子数据的数据内容重复的信息。这些内容重复的信息即为数据元素。预设数据结构是预先设计的数据存储结构,其用于简化目标数据。预设数据结构包含共享字段和目标子数据字段,共享字段用于存储数据元素,目标子数据字段用于存储目标子数据中除数据元素之外的剩余数据。Among them, the target data refers to the data that needs to be processed in the client of the live broadcast room, for example, it can be gift data, prop data or barrage data. The target data contains at least two target sub-data of the same type, and each target sub-data contains the same data element. The target sub-data is the internal data of the target data, which contains part of the information that is repeated with the data content of other target sub-data. The information with repeated content is the data element. Preset data structures are predesigned data storage structures that are used to simplify target data. The preset data structure includes a shared field and a target sub-data field, the shared field is used to store data elements, and the target sub-data field is used to store remaining data in the target sub-data except the data elements.
相关技术中,在目标数据对应的原始数据存储结构中并没有共享字段,而只有目标子数据字段,即目标子数据字段存储了一个目标子数据包含的数据元素和剩余数据的全部数据,其并不进行数据拆分,由此导致了目标数据中会存储多个数据元素,造成数据冗余。而本发明实施例中在预设数据结构中新增了共享字段,且保留了目标子数据字段,这样便可以将每个目标子数据进行拆分,使得共享字段中存储数据元素,而每个目标子数据字段中存储目标子数据中的数据差异部分,即目标子数据中的剩余数据。如此,便可减少目标数据中的冗余数据量,简化目标数据的数据量。In related technologies, there is no shared field in the original data storage structure corresponding to the target data, but only the target sub-data field, that is, the target sub-data field stores all the data elements and remaining data contained in a target sub-data, and it does not Data splitting is not performed, resulting in the storage of multiple data elements in the target data, resulting in data redundancy. However, in the embodiment of the present invention, a shared field is newly added in the preset data structure, and the target sub-data field is reserved, so that each target sub-data can be split, so that the data elements are stored in the shared field, and each The data difference part in the target sub-data is stored in the target sub-data field, that is, the remaining data in the target sub-data. In this way, the amount of redundant data in the target data can be reduced, and the data amount of the target data can be simplified.
示例性地,目标子数据为图片信息,数据元素为图片信息中的域名,剩余数据为图片信息中的存储路径。例如,目标数据中包含两个图片类型的目标子数据,分别为“https://gfs-test-op.douyucdn.cn/dygift/1533881378191.png”和“https://gfs-test-op.douyucdn.cn/dygift/1533881317525.png”,那么上述数据元素便为“https://gfs-test-op.douyucdn.cn/dygift”,而剩余数据分别为“1533881378191.png”和“1533881317525.png”的存储路径。Exemplarily, the target sub-data is picture information, the data element is a domain name in the picture information, and the remaining data is a storage path in the picture information. For example, the target data contains two image-type target sub-data, namely "https://gfs-test-op.douyucdn.cn/dygift/1533881378191.png" and "https://gfs-test-op. douyucdn.cn/dygift/1533881317525.png", then the above data element is "https://gfs-test-op.douyucdn.cn/dygift", and the remaining data are "1533881378191.png" and "1533881317525.png" " storage path.
当直播间客户端需要利用目标数据进行相应操作(如显示)时,首先会通过标准的HTTP请求来从网络端(或服务端)请求该目标数据。当网络端(或服务端)接收到数据请求后,便会将目标数据按照预设数据结构打包,以形成便于网络传输的数据,例如形成JSON格式的目标数据,此处的JSON格式满足预设数据结构要求。之后,网络端(或服务端)便将目标数据发送至直播间客户端。至此,直播间客户端便获取到了按照预设数据结构存储的目标数据。When the live room client needs to use the target data to perform corresponding operations (such as display), it will first request the target data from the network side (or server side) through a standard HTTP request. When the network (or server) receives the data request, it will package the target data according to the preset data structure to form data that is convenient for network transmission, such as forming target data in JSON format, where the JSON format meets the preset Data structure requirements. Afterwards, the network end (or server end) sends the target data to the live room client. So far, the live room client has obtained the target data stored according to the preset data structure.
S120、解析目标数据,获得各目标子数据,以用于直播间中的数据流转。S120. Parse the target data to obtain each target sub-data for data transfer in the live broadcast room.
直播间客户端获得目标数据之后,便会解析目标数据,以实现目标数据的加工,进而获得其中包含的各子数据(目标数据的内部数据),也就获得了各目标子数据,这些目标子数据和其他子数据均用于直播间中的数据流转,例如数据显示、运算和存储等。After the live room client obtains the target data, it will analyze the target data to realize the processing of the target data, and then obtain the sub-data contained in it (internal data of the target data), and also obtain the target sub-data, these target sub-data Data and other sub-data are used for data flow in the live broadcast room, such as data display, calculation and storage, etc.
示例性地,解析目标数据,获得各目标子数据包括:Exemplarily, parsing the target data and obtaining each target sub-data includes:
A、解析目标数据,以获得数据元素和各剩余数据。A. Parse the target data to obtain data elements and respective remaining data.
根据上述说明,目标数据中的目标子数据被拆分为数据元素和剩余数据,那么如果直接按照JSON数据的解析方式来解析上述目标数据,便只能获得目标子数据中的剩余数据(例如图片的存储路径),而无法直接获得完整的目标子数据。故本实施例中在对目标数据进行加工的过程中,便需要先解析目标数据,以分别获得数据元素和剩余数据,进而对这些拆分的数据进行二次组装,以便获得数据完整的目标子数据,这样可以尽量减少数据传输过程中的流量损耗且提升目标数据的获取效率,同时提高目标数据在后续操作中的访问便捷性。According to the above description, the target sub-data in the target data is split into data elements and remaining data, so if the above-mentioned target data is parsed directly according to the parsing method of JSON data, only the remaining data in the target sub-data (such as picture storage path), but cannot directly obtain the complete target sub-data. Therefore, in the process of processing the target data in this embodiment, it is necessary to analyze the target data first to obtain the data elements and the remaining data respectively, and then perform secondary assembly on these split data in order to obtain the target data with complete data. Data, which can minimize the traffic loss during data transmission and improve the efficiency of target data acquisition, while improving the convenience of accessing target data in subsequent operations.
示例性地,解析目标数据,以获得数据元素和各剩余数据包括:依据共享字段和各目标子数据字段,基于字符串处理算法,从目标数据中提取出数据元素和各剩余数据。Exemplarily, parsing the target data to obtain the data elements and the remaining data includes: extracting the data elements and the remaining data from the target data based on a string processing algorithm according to the shared fields and the target sub-data fields.
从目标数据中获取数据元素和剩余数据的方式可以为:由于目标数据是以JSON字符串形式存储,故可以按照字符串处理算法,利用共享字段和目标子数据字段对目标数据进行字符串拆分和提取,以分别从目标数据中提取出数据元素和各个剩余数据。虽然JSON格式层级关系复杂,字符串提取操作相应地复杂化,但是该操作无需转换数据格式,能够在一定程度上简化数据提取逻辑。The method of obtaining data elements and remaining data from the target data can be as follows: Since the target data is stored in the form of JSON string, the target data can be split into strings by using the shared field and the target sub-data field according to the string processing algorithm and extraction to extract data elements and respective remaining data from the target data, respectively. Although the hierarchical relationship of the JSON format is complex, the string extraction operation is correspondingly complicated, but this operation does not need to convert the data format, which can simplify the data extraction logic to a certain extent.
B、依据数据元素和各剩余数据,生成各目标子数据,并将各目标子数据存储至相应的目标子数据字段中,以覆盖各目标子数据字段中的剩余数据,完成目标数据的加工。B. Generate each target sub-data according to the data element and each remaining data, and store each target sub-data in a corresponding target sub-data field, so as to cover the remaining data in each target sub-data field, and complete the processing of the target data.
本实施例中二次组装的思路为:向目标子数据字段对应的剩余数据中自动添加其缺失的数据元素,并将添加数据元素后的剩余数据回填到对应的目标子数据字段对应的字段值位置处。具体实施时,将获得的数据元素和每个剩余数据进行字符串拼接。例如,将数据元素“https://gfs-test-op.douyucdn.cn/dygift”分别和剩余数据“1533881378191.png”和“1533881317525.png”拼接,获得完整的目标子数据“https://gfs-test-op.douyucdn.cn/dygift/1533881378191.png”和“https://gfs-test-op.douyucdn.cn/dygift/1533881317525.png”。之后,将完整的目标子数据回填至相应的目标子数据字段中,覆盖掉目标子数据字段对应的剩余数据。例如,目标子数据字段“giftPic”原本对应的字段值为剩余数据“1533881378191.png”,经过上述数据加工之后,目标子数据字段“giftPic”对应的字段值便为“https://gfs-test-op.douyucdn.cn/dygift/1533881378191.png”。这样既能够保证目标表数据的数据结构完整性,又能保证目标子数据的完整性,便于后续数据流转过程中的数据访问。The idea of secondary assembly in this embodiment is: automatically add the missing data elements to the remaining data corresponding to the target sub-data field, and backfill the remaining data after adding the data elements to the field value corresponding to the corresponding target sub-data field location. During specific implementation, string concatenation is performed on the obtained data elements and each remaining data. For example, splice the data element "https://gfs-test-op.douyucdn.cn/dygift" with the remaining data "1533881378191.png" and "1533881317525.png" respectively to obtain the complete target sub-data "https:// gfs-test-op.douyucdn.cn/dygift/1533881378191.png” and “https://gfs-test-op.douyucdn.cn/dygift/1533881317525.png”. Afterwards, the complete target sub-data is backfilled into the corresponding target sub-data field, and the remaining data corresponding to the target sub-data field is overwritten. For example, the target sub-data field "giftPic" originally corresponds to the remaining data "1533881378191.png". After the above data processing, the field value corresponding to the target sub-data field "giftPic" is "https://gfs-test -op.douyucdn.cn/dygift/1533881378191.png". This can not only ensure the integrity of the data structure of the target table data, but also ensure the integrity of the target sub-data, which facilitates data access during the subsequent data transfer process.
本实施例的技术方案,通过设计包含共享字段和目标子数据字段的预设数据结构,将目标数据中的每个目标子数据均拆分为信息共享的数据元素和信息有差异的剩余数据,实现了在保证目标数据完整性和可用性的基础上,简化目标数据的数据量,从而减少了目标数据传输过程中的流量损耗。In the technical solution of this embodiment, by designing a preset data structure including a shared field and a target sub-data field, each target sub-data in the target data is split into information sharing data elements and remaining data with different information, On the basis of ensuring the integrity and availability of the target data, the data volume of the target data is simplified, thereby reducing the traffic loss in the process of target data transmission.
实施例二Embodiment two
本实施例在上述实施例的基础上,对“解析目标数据,以数据元素和各剩余数据”进行了进一步优化。其中与上述各实施例相同或相应的术语的解释在此不再赘述。本实施例中以目标数据为礼物数据进行说明。参见图2,本实施例提供的直播间中数据的加工方法包括:On the basis of the above-mentioned embodiments, this embodiment further optimizes "parsing target data to obtain data elements and remaining data". The explanations of terms that are the same as or corresponding to the above-mentioned embodiments will not be repeated here. In this embodiment, the target data is used as gift data for description. Referring to Fig. 2, the processing method of the data in the live broadcast room provided by this embodiment includes:
S210、获取直播间中以预设数据结构存储的目标数据。S210. Obtain target data stored in a preset data structure in the live broadcast room.
其中,目标数据中包含至少两个相同类型的目标子数据,且每个目标子数据中包含相同的数据元素,预设数据结构包含共享字段和目标子数据字段,共享字段用于存储数据元素,目标子数据字段用于存储目标子数据中除数据元素之外的剩余数据。Wherein, the target data contains at least two target sub-data of the same type, and each target sub-data contains the same data elements, the preset data structure includes shared fields and target sub-data fields, and the shared fields are used to store data elements, The target sub-data field is used to store remaining data in the target sub-data except data elements.
例如,以预设数据结构存储的目标数据中的一部分数据可示例如下:For example, some data in the target data stored in a preset data structure can be exemplified as follows:
上述目标数据中,字段“picUrlPrefix”便为新增的共享字段,而字段“giftPic”、“chatPic”、“focusPic”和“bannerPics”等便为目标子数据字段。In the above target data, the field "picUrlPrefix" is a newly added shared field, and the fields "giftPic", "chatPic", "focusPic" and "bannerPics" are target sub-data fields.
S220、解析目标数据,以将其转换为JavaBean类型的目标对象,并遍历目标对象包含的数据列表,获得数据列表中的各字段值和各子数据对象。S220. Parse the target data to convert it into a target object of JavaBean type, and traverse the data list contained in the target object to obtain each field value and each sub-data object in the data list.
其中,目标对象为目标数据对应的对象。字段值是指数据列表中各字段对应的字符串。子数据对象是指数据列表中具有更深层级的嵌套结构对应的JavaBean对象,即子数据对象为JavaBean类型。Wherein, the target object is an object corresponding to the target data. The field value refers to the string corresponding to each field in the data list. The child data object refers to the JavaBean object corresponding to the deeper nested structure in the data list, that is, the child data object is a JavaBean type.
解析目标数据,将其从JSON格式转换为JavaBean格式。由于礼物数据的层级较深,所以会存在多个Bean嵌套的情况,为了后续描述的方便,将JSON中的所有对象信息直接通过其相应的KEY+Bean的方式来进行描述,其中KEY表示的是JSON中的键信息。Parse the target data and convert it from JSON format to JavaBean format. Due to the deep level of gift data, there will be multiple Bean nesting situations. For the convenience of subsequent descriptions, all object information in JSON is directly described by its corresponding KEY+Bean, where KEY represents is the key information in JSON.
例如,上述整个礼物数据结构描述为AllGiftBean(整个礼物数据比较特殊,没有key),礼物列表数据(即字段“giftlist”及其后中括号中的数据段)会描述为giftListBean,列表中具体的礼物数据(例如字段“id”、“picUrlPrefix”及“basicInfo”等对应的数据段)会描述为GiftBean,以此类推来描述相关的数据Bean信息。For example, the entire gift data structure described above is described as AllGiftBean (the entire gift data is special and has no key), and the gift list data (that is, the field "giftlist" and the data segment in brackets after it) will be described as giftListBean, and the specific gift in the list The data (such as the data segments corresponding to the fields "id", "picUrlPrefix" and "basicInfo") will be described as GiftBean, and so on to describe related data Bean information.
由于目标子数据处于数据列表中,故在获得目标对象AllGiftBean后,便需要访问其中的giftList字段对应的数据列表。首先,通过AllGiftBean.giftList==null的方式来对数据列表进行判空处理。如果为空对象null,那么说明目标数据中没有需要处理的数据,可直接结束本次数据加工流程。反之,通过目标对象访问数据列表字段AllGiftBean.giftList来获得目标对象中的数据列表giftListBean数据。之后,通过增强for循环的方式来遍历数据列表对象giftListBean中的数据,具体可以是通过for(GiftBean in giftListBean)的方式来进行遍历,这样每次的循环体中得到的是数据列表giftListBean中的一条数据,例如字段“id”对应的字段值“869”,共享字段"picUrlPrefix"对应的字段值"https://gfs-test-op.douyucdn.cn/dygift",子数据对象GiftbasicInfoBean和子数据对象gifteffectInfoBean等。Since the target sub-data is in the data list, after obtaining the target object AllGiftBean, it is necessary to access the data list corresponding to the giftList field therein. Firstly, perform null judgment on the data list by means of AllGiftBean.giftList==null. If it is an empty object null, it means that there is no data to be processed in the target data, and this data processing process can be ended directly. On the contrary, access the data list field AllGiftBean.giftList through the target object to obtain the data list giftListBean data in the target object. Afterwards, the data in the data list object giftListBean is traversed by enhancing the for loop. Specifically, it can be traversed by for (GiftBean in giftListBean), so that each time the loop body gets a piece of the data list giftListBean Data, such as the field value "869" corresponding to the field "id", the field value "https://gfs-test-op.douyucdn.cn/dygift" corresponding to the shared field "picUrlPrefix", sub-data object GiftbasicInfoBean and sub-data object gifteffectInfoBean wait.
S230、依据共享字段及各字段值对应的字段,从各字段值中确定数据元素。S230. Determine the data element from each field value according to the shared field and the field corresponding to each field value.
通过上述操作,可以获得多个字段值,其中包含共享字段对应的数据元素。此时,以共享字段为查找索引,从获得的各字段值中查找出共享字段对应的字段值,作为数据元素。例如,将共享字段“picUrlPrefix”与S220所获得的“id”、“name”和“picUrlPrefix”等字段进行匹配,当匹配一致时,将匹配一致的字段“picUrlPrefix”对应的字段值“https://gfs-test-op.douyucdn.cn/dygift”作为从各字段值中确定的数据元素。Through the above operations, multiple field values can be obtained, including data elements corresponding to shared fields. At this time, the shared field is used as a search index, and the field value corresponding to the shared field is found from the obtained field values as a data element. For example, match the shared field "picUrlPrefix" with the fields such as "id", "name" and "picUrlPrefix" obtained by S220, and when the matches are consistent, match the field value "https:/ /gfs-test-op.douyucdn.cn/dygift” as data elements determined from the values of each field.
S240、若子数据对象对应的字段与预设字段一致,则通过子数据对象访问目标子数据字段,获得目标子数据字段对应的剩余数据。S240. If the field corresponding to the sub-data object is consistent with the preset field, access the target sub-data field through the sub-data object to obtain the remaining data corresponding to the target sub-data field.
其中,预设字段对应的数据段中包含目标子数据字段。根据上述说明,预设数据结构中针对目标子数据进行了特殊的改进,故对目标数据的加工,需要将目标子数据组装完整。而目标子数据对应的目标子数据字段是预先确定的,故可以将其作为预设字段。示例性地,目标数据为礼物数据,预设字段至少包含礼物基本信息字段basicInfo和礼物特效信息字段effectInfo。Wherein, the data segment corresponding to the preset field includes the target sub-data field. According to the above description, special improvements have been made for the target sub-data in the preset data structure, so the processing of the target data requires the complete assembly of the target sub-data. The target subdata field corresponding to the target subdata is predetermined, so it can be used as a preset field. Exemplarily, the target data is gift data, and the preset fields include at least a gift basic information field basicInfo and a gift special effect information field effectInfo.
对于S220所获得的各子数据对象,将其对应的字段与预设字段进行比较。如果比较结果一致,那么该子数据对象便是需要进行二次组装的目标子数据对应的bean对象。此时,可以先判断该子数据对象是否为空对象,在其不为空对象时,通过该子数据对象内部的元素访问函数,来访问该子数据对象包含的目标子数据字段,从而获得目标子数据字段对应的字段值,即剩余数据。For each sub-data object obtained in S220, its corresponding field is compared with a preset field. If the comparison results are consistent, then the sub-data object is the bean object corresponding to the target sub-data that needs to be reassembled. At this point, you can first judge whether the sub-data object is an empty object, and if it is not an empty object, use the element access function inside the sub-data object to access the target sub-data field contained in the sub-data object, thereby obtaining the target The field value corresponding to the subdata field, that is, the remaining data.
例如,通过GiftBean.basicInfo?.giftPic、GiftBean.basicInfo?.chatPic和GiftBean.basicInfo?.focusPic分别来获得子数据对象GiftbasicInfoBean中包含的目标子数据字段giftPic、chatPic和focusPic对应的剩余数据“1533881378191.png”、“1533881317525.png”和“1533881326994.gif”。上述代码中“?.”的作用为先判断“?”之前的对象是否为空,不为空时执行“.”之后的数据访问操作。For example, via GiftBean.basicInfo? .giftPic, GiftBean.basicInfo? .chatPic and GiftBean.basicInfo? .focusPic to obtain the remaining data "1533881378191.png", "1533881317525.png" and "1533881326994.gif" corresponding to the target sub-data fields giftPic, chatPic and focusPic contained in the sub-data object GiftbasicInfoBean respectively. The role of "?." in the above code is to first judge whether the object before "?" is empty, and execute the data access operation after "." if it is not empty.
示例性地,通过子数据对象访问目标子数据字段,获得目标子数据字段对应的剩余数据包括:若预设字段为具有键值对集合结构的子数据对象对应的字段,则通过子数据对象调用元素遍历函数,获得子数据对象中包含的各键值对对象;通过键值对对象,调用值信息获取函数,获得键值对对象中包含的目标子数据列表对象;遍历目标子数据列表对象,获得子数据对象对应的各剩余数据。Exemplarily, accessing the target sub-data field through a sub-data object, and obtaining the remaining data corresponding to the target sub-data field includes: if the preset field is a field corresponding to a sub-data object with a key-value pair set structure, calling The element traversal function obtains each key-value pair object contained in the sub-data object; through the key-value pair object, call the value information acquisition function to obtain the target sub-data list object contained in the key-value pair object; traverse the target sub-data list object, Obtain the remaining data corresponding to the child data object.
根据上述目标数据的示例代码可知,目标数据的数据列表中除了包含礼物基本信息字段对应的子数据对象之外,还包含礼物特效信息字段effectInfo对应的子数据对象gifteffectInfoBean。并且,子数据对象gifteffectInfoBean的结构更加复杂,其是一个具有键值对集合结构map性质的集合,因此需要针对这个数据进行特殊的逻辑处理,具体的处理方法如下:According to the sample code of the above target data, in addition to the sub data object corresponding to the gift basic information field, the data list of the target data also includes the sub data object gifteffectInfoBean corresponding to the gift effect information field effectInfo. In addition, the structure of the child data object gifteffectInfoBean is more complex, which is a collection with the property of a key-value pair collection structure map, so special logic processing is required for this data. The specific processing method is as follows:
首先调用子数据对象中的元素遍历函数,如GiftBean.effectInfo?.forEach(),来得到map中具体的键值对对象,如键信息为“55”,值信息为该键信息对应的花括号中的数据段。之后,通过键值对对象,调用值信息获取函数,获得键值对对象中包含的目标子数据列表对象。具体实施过程为:在forEach中通过val giftEffectBean:GiftEffectInfoBean=it.value的方式将获取到的键值对对象中的值信息新赋值给一个局部变量giftEffectBean中。然后通过giftEffectBean.banner?.bannerPics?.entries?.iterator()的方法获取到bannerPicsBean对象的目标子数据列表对象iterator,并将其赋值给变量bannerPicsIterator对象,具体的实现方法是val bannerPicsIterator=giftEffectBean.banner?.bannerPics?.entries?.iterator()。最后,在判断bannerPicsIterator对象不为空对象的基础上,通过while(bannerPicsIterator.hasNext())函数调用的方式来判定bannerPicsIterator对象中是否还有数据需要处理。如果有数据待处理,那么通过val entry=bannerPicsIterator.next()的调用来遍历并获取到bannerPicsIterator中的一个entry对象,那么entry其实就是具体的bannerPics的存储路径,即目标子数据对应的一个剩余数据,如"xxxx1.png"、"xxxx1.png"或"xxxx1.png"。First call the element traversal function in the child data object, such as GiftBean.effectInfo? .forEach() to get the specific key-value pair object in the map. For example, the key information is "55", and the value information is the data segment in curly braces corresponding to the key information. After that, call the value information acquisition function through the key-value pair object to obtain the target sub-data list object contained in the key-value pair object. The specific implementation process is: in forEach, newly assign the value information in the obtained key-value pair object to a local variable giftEffectBean by means of val giftEffectBean:GiftEffectInfoBean=it.value. Then pass giftEffectBean.banner? .bannerPics? .entries? The .iterator() method obtains the target sub-data list object iterator of the bannerPicsBean object, and assigns it to the variable bannerPicsIterator object. The specific implementation method is val bannerPicsIterator=giftEffectBean.banner? .bannerPics? .entries? .iterator(). Finally, on the basis of judging that the bannerPicsIterator object is not an empty object, it is determined whether there is still data in the bannerPicsIterator object to be processed by calling the while(bannerPicsIterator.hasNext()) function. If there is data to be processed, then traverse and obtain an entry object in bannerPicsIterator by calling val entry=bannerPicsIterator.next(), then the entry is actually the storage path of the specific bannerPics, that is, a remaining data corresponding to the target sub-data , such as "xxxx1.png", "xxxx1.png" or "xxxx1.png".
S250、依据数据元素和各剩余数据,生成各目标子数据,并将各目标子数据存储至相应的目标子数据字段中,以覆盖各目标子数据字段中的剩余数据,完成目标数据的加工。S250. Generate each target sub-data according to the data element and each remaining data, and store each target sub-data in a corresponding target sub-data field, so as to cover the remaining data in each target sub-data field, and complete the processing of the target data.
对于目标子数据字段basicInfo,其字符串拼接及数据覆盖方式可以为:GiftBean.basicInfo?.giftPic=GiftBean.picUrlPrefix+GiftBean.basicInfo?.giftPic、GiftBean.basicInfo?.chatPic=GiftBean.picUrlPrefix+GiftBean.basicInfo?.chatPic以及GiftBean.basicInfo?.focusPic=GiftBean.picUrlPrefix+GiftBean.basicInfo?.focusPic。而对于目标子数据字段effectInfo,其字符串拼接及数据覆盖方式可以为:val url=GiftBean.picUrlPrefix+entry.value,其将目标子数据列表对象中的每个剩余数据与数据元素拼接,并将拼接所得的长字符串赋值给变量url,之后通调用entry.setValue(url)方法将组装完整的目标子数据回填到原始数据结构中,完成相应剩余数据的覆盖。For the target sub-data field basicInfo, its string splicing and data overwriting method can be: GiftBean.basicInfo? .giftPic=GiftBean.picUrlPrefix+GiftBean.basicInfo? .giftPic, GiftBean.basicInfo? .chatPic=GiftBean.picUrlPrefix+GiftBean.basicInfo? .chatPic and GiftBean.basicInfo? .focusPic=GiftBean.picUrlPrefix+GiftBean.basicInfo? .focusPic. For the target sub-data field effectInfo, its character string concatenation and data coverage method can be: val url=GiftBean.picUrlPrefix+entry.value, which splices each remaining data in the target sub-data list object with data elements, and Assign the spliced long string to the variable url, and then call the entry.setValue(url) method to backfill the assembled target subdata into the original data structure to complete the coverage of the corresponding remaining data.
本实施例的技术方案,通过解析目标数据,以将其转换为JavaBean类型的目标对象,并遍历目标对象包含的数据列表,获得数据列表中的各字段值和各子数据对象;依据共享字段及各字段值对应的字段,从各字段值中确定数据元素;若子数据对象对应的字段与预设字段一致,则通过子数据对象访问目标子数据字段,获得目标子数据字段对应的剩余数据。实现了数据元素和各剩余数据的快速解析,从而提高了目标数据的数据加工效率,提高了目标数据中目标子数据的访问便捷性。The technical solution of this embodiment converts it into a JavaBean type target object by parsing the target data, and traverses the data list contained in the target object to obtain each field value and each sub-data object in the data list; according to the shared field and The field corresponding to each field value determines the data element from each field value; if the field corresponding to the sub-data object is consistent with the preset field, access the target sub-data field through the sub-data object to obtain the remaining data corresponding to the target sub-data field. The rapid analysis of the data elements and each remaining data is realized, thereby improving the data processing efficiency of the target data and improving the convenience of accessing the target sub-data in the target data.
实施例三Embodiment three
本实施例提供一种直播间中数据的加工装置,参见图3,该装置具体包括:This embodiment provides a data processing device in a live broadcast room, as shown in Figure 3, the device specifically includes:
目标数据获取模块310,用于获取直播间中以预设数据结构存储的目标数据,目标数据中包含至少两个相同类型的目标子数据,且每个目标子数据中包含相同的数据元素,预设数据结构包含共享字段和目标子数据字段,共享字段用于存储数据元素,目标子数据字段用于存储目标子数据中除数据元素之外的剩余数据;The target
数据加工模块320,用于解析目标数据,获得各目标子数据,以用于直播间中的数据流转。The
可选地,数据加工模块320包括:Optionally, the
数据解析子模块,用于解析目标数据,以获得数据元素和各剩余数据;The data parsing sub-module is used for parsing target data to obtain data elements and respective remaining data;
数据加工子模块,用于依据数据元素和各剩余数据,生成各目标子数据,并将各目标子数据存储至相应的目标子数据字段中,以覆盖各目标子数据字段中的剩余数据,完成目标数据的加工。The data processing sub-module is used to generate each target sub-data according to the data elements and each remaining data, and store each target sub-data in the corresponding target sub-data field, so as to cover the remaining data in each target sub-data field, and complete Processing of target data.
可选地,数据解析子模块具体用于:Optionally, the data parsing submodule is specifically used for:
解析目标数据,以将其转换为JavaBean类型的目标对象,并遍历目标对象包含的数据列表,获得数据列表中的各字段值和各子数据对象,子数据对象为JavaBean类型;Parse the target data to convert it into a target object of JavaBean type, and traverse the data list contained in the target object to obtain each field value and each sub-data object in the data list, and the sub-data object is of JavaBean type;
依据共享字段及各字段值对应的字段,从各字段值中确定数据元素;According to the shared field and the field corresponding to each field value, determine the data element from each field value;
若子数据对象对应的字段与预设字段一致,则通过子数据对象访问目标子数据字段,获得目标子数据字段对应的剩余数据,其中,预设字段对应的数据段中包含目标子数据字段。If the field corresponding to the sub-data object is consistent with the preset field, access the target sub-data field through the sub-data object to obtain the remaining data corresponding to the target sub-data field, wherein the data segment corresponding to the preset field includes the target sub-data field.
进一步地,数据解析子模块具体用于:Further, the data parsing sub-module is specifically used for:
若预设字段为具有键值对集合结构的子数据对象对应的字段,则通过子数据对象调用元素遍历函数,获得子数据对象中包含的各键值对对象;If the preset field is a field corresponding to a sub-data object with a key-value pair collection structure, call the element traversal function through the sub-data object to obtain each key-value pair object contained in the sub-data object;
通过键值对对象,调用值信息获取函数,获得键值对对象中包含的目标子数据列表对象;Through the key-value pair object, call the value information acquisition function to obtain the target sub-data list object contained in the key-value pair object;
遍历目标子数据列表对象,获得子数据对象对应的各剩余数据。Traverse the target sub-data list object to obtain the remaining data corresponding to the sub-data object.
可选地,数据解析子模块具体用于:Optionally, the data parsing submodule is specifically used for:
依据共享字段和各目标子数据字段,基于字符串处理算法,从目标数据中提取出数据元素和各剩余数据。Based on the shared field and each target sub-data field, the data element and each remaining data are extracted from the target data based on a string processing algorithm.
可选地,目标子数据为图片信息,数据元素为图片信息中的域名,剩余数据为图片信息中的存储路径。Optionally, the target sub-data is picture information, the data element is a domain name in the picture information, and the remaining data is a storage path in the picture information.
进一步地,目标数据为礼物数据,预设字段至少包含礼物基本信息字段和礼物特效信息字段。Further, the target data is gift data, and the preset fields at least include a gift basic information field and a gift special effect information field.
通过本发明实施例三的一种直播间中数据的加工装置,实现了在保证目标数据完整性和可用性的基础上,简化目标数据的数据量,从而减少了目标数据传输过程中的流量损耗。Through the data processing device in the live broadcast room according to the third embodiment of the present invention, the data volume of the target data is simplified on the basis of ensuring the integrity and availability of the target data, thereby reducing the traffic loss during the transmission of the target data.
本发明实施例所提供的直播间中数据的加工装置可执行本发明任意实施例所提供的直播间中数据的加工方法,具备执行方法相应的功能模块和有益效果。The data processing device in the live broadcast room provided by the embodiment of the present invention can execute the data processing method in the live broadcast room provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
值得注意的是,上述直播间中数据的加工装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the embodiment of the data processing device in the above-mentioned live broadcast room, each unit and module included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized ; In addition, the specific names of each functional unit are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention.
实施例四Embodiment Four
参见图4,本实施例提供了一种电子设备,其包括:一个或多个处理器420;存储装置410,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器420执行,使得一个或多个处理器420实现本发明实施例所提供的直播间中数据的加工方法,包括:Referring to Fig. 4, the present embodiment provides an electronic device, which includes: one or
获取直播间中以预设数据结构存储的目标数据,目标数据中包含至少两个相同类型的目标子数据,且每个目标子数据中包含相同的数据元素,预设数据结构包含共享字段和目标子数据字段,共享字段用于存储数据元素,目标子数据字段用于存储目标子数据中除数据元素之外的剩余数据;Obtain the target data stored in the live broadcast room with a preset data structure. The target data contains at least two target sub-data of the same type, and each target sub-data contains the same data elements. The preset data structure includes shared fields and targets The sub-data field, the shared field is used to store data elements, and the target sub-data field is used to store the remaining data in the target sub-data except data elements;
解析目标数据,获得各目标子数据,以用于直播间中的数据流转。Parse the target data and obtain each target sub-data for data transfer in the live broadcast room.
当然,本领域技术人员可以理解,处理器420还可以实现本发明任意实施例所提供的直播间中数据的加工方法的技术方案。Of course, those skilled in the art can understand that the
图4显示的电子设备仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。如图4所示,该电子设备包括处理器420、存储装置410、输入装置430和输出装置440;设备中处理器420的数量可以是一个或多个,图4中以一个处理器420为例;设备中的处理器420、存储装置410、输入装置430和输出装置440可以通过总线或其他方式连接,图4中以通过总线450连接为例。The electronic device shown in FIG. 4 is only an example, and should not limit the functions and scope of use of this embodiment of the present invention. As shown in Figure 4, the electronic device includes a
存储装置410作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明实施例中的直播间中数据的加工方法对应的程序指令/模块(例如,直播间中数据的加工装置中的目标数据获取模块和数据加工模块)。The storage device 410, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as the program instructions/modules corresponding to the data processing method in the live room in the embodiment of the present invention (for example, the live room The target data acquisition module and the data processing module in the data processing device).
存储装置410可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储装置410可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储装置410可进一步包括相对于处理器420远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The storage device 410 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required by a function; the data storage area may store data created according to the use of the terminal, and the like. In addition, the storage device 410 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some examples, the storage device 410 may further include memory located remotely relative to the
输入装置430可用于接收输入的数字或字符信息,以及产生与设备的用户设置以及功能控制有关的键信号输入。输出装置440可包括显示屏等显示设备。The input device 430 can be used for receiving inputted number or character information, and generating key signal input related to user setting and function control of the device. The output device 440 may include a display device such as a display screen.
实施例五Embodiment five
本实施例提供一种包含计算机可执行指令的存储介质,计算机可执行指令在由计算机处理器执行时用于执行一种直播间中数据的加工方法,该方法包括:This embodiment provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute a data processing method in a live broadcast room when executed by a computer processor. The method includes:
获取直播间中以预设数据结构存储的目标数据,目标数据中包含至少两个相同类型的目标子数据,且每个目标子数据中包含相同的数据元素,预设数据结构包含共享字段和目标子数据字段,共享字段用于存储数据元素,目标子数据字段用于存储目标子数据中除数据元素之外的剩余数据;Obtain the target data stored in the live broadcast room with a preset data structure. The target data contains at least two target sub-data of the same type, and each target sub-data contains the same data elements. The preset data structure includes shared fields and targets The sub-data field, the shared field is used to store data elements, and the target sub-data field is used to store the remaining data in the target sub-data except data elements;
解析目标数据,获得各目标子数据,以用于直播间中的数据流转。Parse the target data and obtain each target sub-data for data transfer in the live broadcast room.
当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上的方法操作,还可以执行本发明任意实施例所提供的直播间中数据的加工方法中的相关操作。Of course, the storage medium containing computer-executable instructions provided by the embodiments of the present invention, the computer-executable instructions are not limited to the above method operations, and can also execute the data processing method in the live broadcast room provided by any embodiment of the present invention Related operations in .
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台电子设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所提供的直播间中数据的加工方法。Through the above description about the implementation mode, those skilled in the art can clearly understand that the present invention can be realized by means of software and necessary general-purpose hardware, and of course it can also be realized by hardware, but in many cases the former is a better implementation mode . Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a floppy disk of a computer , read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or optical disc, etc., including a number of instructions to make an electronic device (which can be a personal computer, A server, or a network device, etc.) executes the data processing method in the live room provided by various embodiments of the present invention.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, rearrangements and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910866699.2ACN112492353B (en) | 2019-09-12 | 2019-09-12 | Data processing method, device, equipment and storage medium in live broadcast room |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910866699.2ACN112492353B (en) | 2019-09-12 | 2019-09-12 | Data processing method, device, equipment and storage medium in live broadcast room |
| Publication Number | Publication Date |
|---|---|
| CN112492353A CN112492353A (en) | 2021-03-12 |
| CN112492353Btrue CN112492353B (en) | 2023-06-23 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910866699.2AExpired - Fee RelatedCN112492353B (en) | 2019-09-12 | 2019-09-12 | Data processing method, device, equipment and storage medium in live broadcast room |
| Country | Link |
|---|---|
| CN (1) | CN112492353B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CA2465098A1 (en)* | 2001-11-21 | 2003-06-05 | International Business Machines Corporation | Enhancing resource adapters to facilitate communication in a distributed computer network |
| EP1676387A2 (en)* | 2003-10-23 | 2006-07-05 | Microsoft Corporation | Schema hierarchy for electronic messages |
| CN107404515A (en)* | 2017-06-21 | 2017-11-28 | 武汉斗鱼网络科技有限公司 | The processing method and processing device of asynchronous http request |
| CN108304545A (en)* | 2018-01-31 | 2018-07-20 | 杭州迪普科技股份有限公司 | A kind of URL log storing methods and device |
| CN108694041A (en)* | 2017-03-06 | 2018-10-23 | 武汉斗鱼网络科技有限公司 | Data transfer device, device and service terminal |
| CN109359250A (en)* | 2018-08-31 | 2019-02-19 | 阿里巴巴集团控股有限公司 | Uniform resource locator processing method, device, server and readable storage medium storing program for executing |
| CN109617708A (en)* | 2018-10-31 | 2019-04-12 | 浙江口碑网络技术有限公司 | A kind of compression method burying a log, equipment and system |
| CN110096379A (en)* | 2019-04-30 | 2019-08-06 | 武汉斗鱼鱼乐网络科技有限公司 | Message distributing method, device, equipment and storage medium based on puppy parc |
| CN110188160A (en)* | 2019-05-31 | 2019-08-30 | 联想(北京)有限公司 | Date storage method and method for reading data |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CA2465098A1 (en)* | 2001-11-21 | 2003-06-05 | International Business Machines Corporation | Enhancing resource adapters to facilitate communication in a distributed computer network |
| EP1676387A2 (en)* | 2003-10-23 | 2006-07-05 | Microsoft Corporation | Schema hierarchy for electronic messages |
| CN108694041A (en)* | 2017-03-06 | 2018-10-23 | 武汉斗鱼网络科技有限公司 | Data transfer device, device and service terminal |
| CN107404515A (en)* | 2017-06-21 | 2017-11-28 | 武汉斗鱼网络科技有限公司 | The processing method and processing device of asynchronous http request |
| CN108304545A (en)* | 2018-01-31 | 2018-07-20 | 杭州迪普科技股份有限公司 | A kind of URL log storing methods and device |
| CN109359250A (en)* | 2018-08-31 | 2019-02-19 | 阿里巴巴集团控股有限公司 | Uniform resource locator processing method, device, server and readable storage medium storing program for executing |
| CN109617708A (en)* | 2018-10-31 | 2019-04-12 | 浙江口碑网络技术有限公司 | A kind of compression method burying a log, equipment and system |
| CN110096379A (en)* | 2019-04-30 | 2019-08-06 | 武汉斗鱼鱼乐网络科技有限公司 | Message distributing method, device, equipment and storage medium based on puppy parc |
| CN110188160A (en)* | 2019-05-31 | 2019-08-30 | 联想(北京)有限公司 | Date storage method and method for reading data |
| Publication number | Publication date |
|---|---|
| CN112492353A (en) | 2021-03-12 |
| Publication | Publication Date | Title |
|---|---|---|
| CN108287839B (en) | Page loading method and equipment | |
| US11451629B2 (en) | Distributed metadata management method for distributed file system | |
| CN113126990B (en) | Page development method, device, equipment and storage medium | |
| US10754628B2 (en) | Extracting web API endpoint data from source code to identify potential security threats | |
| US10678482B2 (en) | Multi-tier data synchronizer based on concurrent linked list | |
| CN110727417B (en) | A data processing method and device | |
| CN110764748B (en) | Code calling method, device, terminal and storage medium | |
| CN109614569A (en) | Page rendering method, apparatus and intelligent terminal | |
| CN110471709B (en) | Method, device, medium and electronic equipment for accelerating webpage opening speed | |
| CN109033302A (en) | A kind of method for page jump, device, terminal and storage medium | |
| CN111723314B (en) | Webpage display method and device, electronic equipment and computer readable storage medium | |
| CN113761871A (en) | Rich text rendering method and device, electronic equipment and storage medium | |
| US9223557B1 (en) | Application provided browser plugin | |
| CN110554877A (en) | JSON data analysis method, device, equipment and storage medium | |
| CN110321510A (en) | Page rendering method and system | |
| CN113392352B (en) | Element isolation method, device, equipment, and storage medium | |
| WO2021233042A1 (en) | Page data loading method, apparatus, and system | |
| CN112492353B (en) | Data processing method, device, equipment and storage medium in live broadcast room | |
| CN114385382A (en) | Access method, device, computer device and storage medium for light application | |
| CN110231935B (en) | Script execution and updating method, device, equipment and storage medium | |
| CN109068170B (en) | Storage method, device, terminal and storage medium for barrage message | |
| CN103793459B (en) | A method and device for opening a web page | |
| CN111310076A (en) | Geographic position query method, device, medium and electronic equipment | |
| US11038765B2 (en) | Cloud software defined networking application programming interface converter | |
| CN115203228A (en) | Data processing method, device, medium, and electronic apparatus |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right | ||
| TA01 | Transfer of patent application right | Effective date of registration:20230602 Address after:Room 801, Floor 8, Block A, No. 611, Dongguan Road, Puyan Street, Binjiang District, Hangzhou City, Zhejiang Province, 310000 Applicant after:Hangzhou Shancao Interactive Entertainment Technology Co.,Ltd. Address before:1-1-505-1, Xindu building, southwest of the intersection of Weijin road and wandezhuang street, Nankai District, Tianjin Applicant before:HUIJIAWANG (TIANJIN) TECHNOLOGY CO.,LTD. Effective date of registration:20230602 Address after:1-1-505-1, Xindu building, southwest of the intersection of Weijin road and wandezhuang street, Nankai District, Tianjin Applicant after:HUIJIAWANG (TIANJIN) TECHNOLOGY CO.,LTD. Address before:430070 room 007, A301, third floor, building B1, software industry phase 4.1, No. 1, Software Park East Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province (Wuhan area of free trade zone) Applicant before:WUHAN DOUYU YULE NETWORK TECHNOLOGY Co.,Ltd. | |
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20230623 |