Method and device for repairing flow data in user interaction process, electronic equipment, readable storage medium and computer program product
By obtaining user interaction information and the collection of virtual items to be repaired, and using special processing functions to process the flow data of virtual items in live broadcast software, the problem of missing virtual items flow data is solved, efficient and accurate data repair is achieved, and operations are improved Efficiency and user experience.
Patent Information
- Application Number
- CN202411437238.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-02-14
AI Technical Summary
In live broadcast software, due to human factors and time-consuming, the flow data of virtual items during user interaction is easily missed, resulting in difficulty in processing data and increasing operational complexity and risks.
By obtaining the basic information of user interaction and the collection of virtual items to be repaired, a data list of the flow data to be repaired is generated, and special processing functions are used to process these data one by one to ensure that the flow data of the flow data of virtual items is accurately repaired.
It realizes efficient and accurate repair of user interactive virtual item flow data, simplifies the repair process, improves the reliability and integrity of data, and reduces the work burden of operation personnel.
Smart Images

Figure CN119444269A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software user interaction management, and in particular, to a method, device, electronic device, readable storage medium and computer program product for repairing pipeline data in a user interaction process. Background Art
[0002] In the operation of live broadcast software, user interaction is often used to attract and retain users as a key means to enhance user activity and improve the platform atmosphere. In order to increase the fun and participation of user interaction, live broadcast software often designs and specifies a batch of virtual items as the core elements of user interaction. These virtual items are not only the medium for interaction between users and anchors, but also an important factor in enhancing the live broadcast atmosphere.
[0003] However, when planning and executing user interactions for sending and receiving virtual items in such live broadcast software, virtual items that should have been included in the user interaction plan are occasionally omitted due to the inevitability of human factors (such as negligence, misjudgment) and the urgency of the preparation time for user interactions. This omission not only reduces the integrity and attractiveness of user interactions, but also poses challenges to subsequent data processing. Since the user interaction logic of live broadcast software is often complex and changeable, involving multiple links and a large amount of user interaction data, manually completing the missing virtual items and their corresponding gift flow data becomes time-consuming and error-prone, greatly increasing the complexity and risk of operational work.
[0004] Therefore, how to improve the security and reliability of repair data, thereby reducing the workload of operators and improving the efficiency of user interaction management and user satisfaction has become an urgent problem that needs to be solved. Summary of the invention
[0005] In order to solve the existing technical problems, the present application provides a method, device, electronic device, readable storage medium and computer program product for repairing flow data in a user interaction process.
[0006] In a first aspect, an embodiment of the present application provides a method for repairing pipeline data in a user interaction process, comprising:
[0007] Acquire first data, the first data being basic information of user interaction; the first data including a function name of a first processing function, the first processing function being configured to process flow data of sending and receiving virtual items based on user interaction;
[0008] Acquire second data, where the second data is a set of virtual items to be repaired;
[0009] Generate third data based on the first data and the second data, the third data being a data list of pipeline data to be repaired obtained by querying the database according to the first data and the second data;
[0010] Finding the execution entry of the first processing function according to the function name of the first processing function according to the corresponding relationship;
[0011] Traversing the third data, passing the pipeline data to be repaired as an input parameter into the execution entry of the first processing function and executing the first processing function;
[0012] The first processing function only processes the transaction data of the virtual items received and sent based on user interaction, and both the transaction data of the virtual items received and sent and the transaction data of the repaired virtual items are processed by the first function.
[0013] Optionally, the step of traversing the third data, passing the pipeline data to be repaired as an input parameter into the execution entry of the first processing function and executing the first processing function further includes:
[0014] Determine whether the amount of pipeline data to be repaired is greater than a first preset amount;
[0015] If the amount of pipeline data to be repaired is greater than the first preset amount, the third data is divided into a plurality of batches of data to generate processed third data, and the amount of each batch of data in the processed third data is less than or equal to the first preset amount;
[0016] The batch data are traversed separately, the pipeline data to be repaired is generated as input parameters, and the input parameters are passed into and executed in the first processing function.
[0017] Optionally, the pipeline data to be repaired includes a pipeline identification code, which is related to the content of the pipeline data to be repaired, and the pipeline identification codes generated by the same pipeline data to be repaired are the same.
[0018] Optionally, the step of generating third data based on the first data and the second data includes:
[0019] Generate a serial identification code according to the contents of the first data and the second data;
[0020] Arrange the first data, the second data and the serial number identification code to generate the serial number data to be repaired;
[0021] Determine whether the transaction data to be repaired has been stored in the database according to the transaction identification code;
[0022] If the transaction data to be repaired has not been stored in the warehouse, the transaction data to be repaired will be stored in the warehouse;
[0023] All the flow data to be repaired that have been processed by the storage are stored in a collection to generate third data.
[0024] Optionally, the step of generating input parameters from the pipeline data to be repaired, passing them into and executing the first processing function includes:
[0025] According to the flow identification code in the flow data to be repaired, it is inquired whether there is a repair record in the flow data to be repaired, and a judgment result is generated;
[0026] If the judgment result is that it is not repaired, the pipeline data to be repaired is used to generate input parameters, which are passed into and executed in the first processing function;
[0027] After the first processing function is executed, a repair record is generated based on the pipeline data to be repaired and stored in the database.
[0028] Optionally, before executing the method, the method further includes:
[0029] Get the repair configuration identifier, which is used to configure whether to allow repair of pipeline data;
[0030] Determine and repair the configuration identifier, and generate a configuration identifier determination result;
[0031] If the configuration identification judgment result does not meet the preset conditions, the subsequent steps will not be executed.
[0032] In a second aspect, an embodiment of the present application provides a device for repairing pipeline data in a user interaction process, comprising:
[0033] A first data acquisition module is configured to acquire first data, the first data being basic information of user interaction; the first data includes a function name of a first processing function, and the first processing function is configured to process the flow data of sending and receiving virtual items based on user interaction;
[0034] A second data acquisition module is configured to acquire second data, where the second data is a set of virtual items to be repaired;
[0035] A third data generating module is configured to generate third data based on the first data and the second data, wherein the third data is a data list of pipeline data to be repaired obtained by querying the database according to the first data and the second data;
[0036] The processor is configured to find the execution entry of the first processing function according to the corresponding relationship through the function name of the first processing function, traverse the third data, pass the pipeline data to be repaired as an input parameter into the execution entry of the first processing function and execute the first processing function;
[0037] The first processing function only processes the transaction data of the virtual items received and sent based on user interaction, and both the transaction data of the virtual items received and sent and the transaction data of the repaired virtual items are processed by the first function.
[0038] In a third aspect, an embodiment of the present application provides an electronic device, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via a bus, and when the computer program is executed by the processor, the steps in the method for repairing pipeline data during a user interaction process in any one of the first aspects are implemented.
[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in any one of the methods for repairing pipeline data in a user interaction process in the first aspect.
[0040] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps in any one of the methods for repairing pipeline data in a user interaction process in the first aspect.
[0041] The method for repairing pipeline data in the user interaction process described in the present invention has a significant beneficial effect in that by accurately locating the first processing function that specifically processes the receiving and sending pipeline data of virtual items, efficient and targeted repair of pipeline data of a specific type (i.e., the receiving and sending of virtual items related to user interaction) is achieved. This method not only simplifies the repair process, avoids the inefficiency and waste of resources that may be caused by using general data processing methods, but also ensures the accuracy and consistency of the repair process. By directly using the execution entry of the first processing function, the list of pipeline data to be repaired accurately retrieved from the database is processed one by one, which effectively improves the speed and reliability of data repair, ensures the integrity and accuracy of user interaction pipeline data, and is of great significance for maintaining user rights, optimizing user interaction experience, and supporting subsequent data analysis and decision making. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.
[0043] Figure 1 A flow chart of a method for repairing pipeline data in a user interaction process provided by an embodiment of the present application is shown.
[0044] Figure 2 A flowchart of traversing the third data provided by an embodiment of the present application, passing the pipeline data to be repaired as an input parameter into the execution entry of the first processing function and executing the first processing function is shown.
[0045] Figure 3A flowchart of the steps of generating third data based on first data and second data provided in an embodiment of the present application is shown.
[0046] Figure 4 A flowchart of the steps of generating input parameters from pipeline data to be repaired, passing them into and executing a first processing function provided by an embodiment of the present application is shown.
[0047] Figure 5 A flow chart of a method for repairing flow data in a user interaction process provided by an embodiment of the present application and having a step of determining a repair configuration identifier is shown.
[0048] Figure 6 A specific structural schematic diagram of a device for repairing flow data in a user interaction process provided by an embodiment of the present application is shown.
[0049] Figure 7 A structural schematic diagram of an electronic device for a method for repairing flow data during a user interaction process provided by an embodiment of the present application is shown.
[0050] The reference numerals in the figure represent respectively:
[0051] 601: a first data acquisition module; 602: a second data acquisition module;
[0052] 603: a third data generating module; 604: a processor;
[0053] 1110: bus; 1120: processor; 1130: transceiver;
[0054] 1140: bus interface; 1150: memory; 1160: user interface;
[0055] 1151: operating system; 1152: application program. DETAILED DESCRIPTION
[0056] In the description of the embodiments of the present invention, those skilled in the art should know that the embodiments of the present invention can be implemented as methods, devices, electronic devices, computer-readable storage media, and computer program products. Therefore, the embodiments of the present invention can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), a combination of hardware and software. In addition, in some embodiments, the embodiments of the present invention can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.
[0057] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM), flash memories, optical fibers, compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices or any combination of the above. In an embodiment of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device, or device.
[0058] The computer program code contained in the above-mentioned computer-readable storage medium can be transmitted using any appropriate medium, including: wireless, wire, optical cable, radio frequency (RF) or any suitable combination thereof.
[0059] The computer program code for performing the operation of the embodiments of the present invention can be written in assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or in one or more programming languages or a combination thereof, wherein the programming language includes an object-oriented programming language, such as Java, Smalltalk, C++, and also includes a conventional procedural programming language, such as C language or a similar programming language. The computer program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on a remote computer, and completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer or to an external computer through any type of network, including a local area network (LAN) or a wide area network (WAN).
[0060] The embodiments of the present invention describe the provided methods, devices, and electronic devices through flowcharts and / or block diagrams.
[0061] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.
[0062] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.
[0063] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0064] In today's digital age, live broadcast software has rapidly emerged as a new trend of social platforms that are popular with the public, thanks to its unique advantages of immediacy, interactivity and entertainment. In order to deepen the user experience and enhance communication and interaction between users, live broadcast software generally adopts the setting of rich and colorful user interactions as the driving engine. Among them, sending and receiving virtual items as the most direct and efficient means of interaction not only enriches the fun of the live broadcast scene, but also stimulates the enthusiasm of users to participate. By setting up exclusive virtual items for user interaction, such as granting double points rewards and unlocking specific tasks, live broadcast software has successfully taken an important step in improving user activity and interactivity.
[0065] However, as user interaction forms become increasingly diverse and complex, the temporary and random nature of user interaction also poses considerable challenges to the operations team. The time-sensitive preparation phase is often accompanied by high pressure, which makes it inevitable that there will be errors or omissions in the process of setting up the list of user interactive virtual items. These omissions not only affect the user's participation experience, but are also likely to cause deviations in the transaction data related to the sending and receiving of gift virtual items, which in turn affects the accurate evaluation of user interaction effects and the formulation of subsequent operations strategies.
[0066] In the face of this problem, the traditional method of relying on operators to manually check and repair data item by item seems to be inadequate. This method is not only inefficient, but also prone to omissions or errors due to human factors, making it difficult to ensure the accuracy and timeliness of data repair. Therefore, how to improve the automation of data repair and ensure the efficiency and accuracy of the repair process has become a key issue that the live broadcast software industry needs to solve.
[0067] The embodiments of the present invention are described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0068] Figure 1FIG. 1 is a flow chart showing a method for repairing flow data in a user interaction process provided by an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0069] Acquire first data, the first data being basic information of user interaction; the first data including a function name of a first processing function, the first processing function being configured to process flow data of sending and receiving virtual items based on user interaction;
[0070] Acquire second data, where the second data is a set of virtual items to be repaired;
[0071] Generate third data based on the first data and the second data, the third data being a data list of pipeline data to be repaired obtained by querying the database according to the first data and the second data;
[0072] Finding the execution entry of the first processing function according to the function name of the first processing function according to the corresponding relationship;
[0073] Traversing the third data, passing the pipeline data to be repaired as an input parameter into the execution entry of the first processing function and executing the first processing function;
[0074] The first processing function only processes the transaction data of the virtual items received and sent based on user interaction, and both the transaction data of the virtual items received and sent and the transaction data of the repaired virtual items are processed by the first function.
[0075] First, obtain the first data, which is the basic information of user interaction, and the first data includes the function name of the first processing function, and the first processing function is configured to process the flow data of the sending and receiving of virtual items based on user interaction. Among them, the first processing function is a functional function developed for a specified user interaction and only for the sending and receiving of virtual items and related data processing in user interaction, and has a certain independence and versatility. Optionally, the basic information of user interaction includes the user interaction name, the user interaction time period, the region involved in the user interaction, and the function name of the first processing function. Optionally, the basic information of user interaction is configured in a database and can be queried by the user interaction unique ID or other fields that have a corresponding relationship with the user interaction. This application does not specifically limit the basic information of user interaction, and any data related to user interaction can be understood as the basic information of user interaction. The second data is obtained, and the second data is a collection of virtual items to be repaired; for different user interactions, a collection of virtual items will be set for the user interaction. During the period when the user interaction is effective, sending and / or receiving virtual items in the collection of virtual items will generate benefits, such as double points, discounts, task completion, achievement system, double experience, etc. For different user interactions, or for different regions of the same user interaction, the collection of virtual items often has certain differences. Optionally, the collection-related data of virtual items is stored in a database, and can be queried through the user interaction unique ID or other fields that have a corresponding relationship with the user interaction. Based on the first data and the second data, the third data is generated, and the third data is a data list of the pipeline data to be repaired, wherein some fields in the first data and some fields in the second data are used as query conditions for querying and generating the pipeline data to be repaired, and all the pipeline data to be repaired obtained by the query are stored in the list to generate the third data. According to the function name provided in the first data, the execution entry of the first processing function is quickly located through a predefined function mapping table or a dynamic loading mechanism. Then, each of the pipeline data to be repaired in the third data is traversed, and each of them is passed as an input parameter to the first processing function one by one to execute the corresponding repair logic. The first processing function contains a specific repair algorithm for the receiving and sending pipeline data of the user interactive virtual item, including but not limited to data verification, error correction, missing data completion and other operations. Through this step, it is ensured that all pipeline data to be repaired can be accurately and efficiently restored to the correct state.
[0076] By using the above method, manual intervention is significantly reduced, the inefficiency caused by manual repair is avoided, a large amount of data to be repaired can be processed in a short time, and the overall operational efficiency is improved. Repairing through a specially designed first processing function ensures the pertinence and professionalism of the repair logic, effectively reduces the risk of inaccurate data repair due to human errors, and improves the reliability and accuracy of the data. Timely and accurate repair of the flow data of the user's interactive virtual items helps to maintain the fairness and transparency of user interaction, enhance users' trust and satisfaction with the live broadcast software, thereby attracting more users to participate and promoting the sustainable development of the platform. The automated repair solution reduces the workload of operators and reduces dependence on human resources, which helps the live broadcast platform control costs and improve profitability in long-term operations. By quickly responding to and repairing data errors, this method helps prevent system crashes or performance degradation problems that may be caused by data anomalies, and enhances the stability and reliability of the live broadcast software system.
[0077] In the embodiment of the present invention, optionally, the configuration information in the configuration file includes: a unique user interaction identifier, and a user interaction start time and a user interaction end time are set for different areas.
[0078] In the configuration file, a user interaction unique identification field is set in order to distinguish each user interaction, so that the processor can query the configuration information of the specified user interaction through the configuration manager. The same user interaction has the same unique identifier between different regions. Setting different user interaction start times and user interaction end times for different regions is to solve the time difference problem between regions caused by different regions, which may cause differences in the user interaction start time and user interaction end time of the same user interaction in different regions; the above configuration method provides a good data foundation for different actions of unified user interaction in different regions. It should be understood that one of the purposes of setting different user interaction start times and user interaction end times for different regions is to determine whether the user interaction status is in progress. Therefore, if the configuration file is set by other means, such as the user interaction start time and the user interaction duration, the configuration scheme of the user interaction end time in different regions can be calculated, which is also within the scope of protection of this application.
[0079] In some embodiments, optionally, Figure 2 As shown, the step of traversing the third data, passing the pipeline data to be repaired as an input parameter into the execution entry of the first processing function and executing the first processing function further includes:
[0080] Determine whether the amount of pipeline data to be repaired is greater than a first preset amount;
[0081] If the amount of pipeline data to be repaired is greater than the first preset amount, the third data is divided into a plurality of batches of data to generate processed third data, and the amount of each batch of data in the processed third data is less than or equal to the first preset amount;
[0082] The batch data are traversed separately, the pipeline data to be repaired is generated as input parameters, and the input parameters are passed into and executed in the first processing function.
[0083] First, the total amount of pipeline data to be repaired is pre-judged to determine whether its amount exceeds a preset reasonable processing threshold, that is, the first preset amount. This step is intended to evaluate whether the current data volume may exceed the carrying capacity of a single processing, so as to avoid low processing efficiency or exhaustion of system resources due to excessive data volume. If the amount of pipeline data to be repaired is indeed greater than the first preset amount, the data segmentation mechanism is started. The mechanism intelligently divides the third data (including the pipeline data to be repaired) into multiple smaller batches of data. The amount of each batch of data is strictly controlled to ensure that they are less than or equal to the first preset amount, thereby optimizing the memory usage during the processing, improving processing efficiency, and reducing processing time. Subsequently, the system will traverse each batch of data after segmentation one by one. During the traversal process, for the pipeline data to be repaired in each batch, the system will generate corresponding input parameters according to the requirements, and pass these parameters into the execution entry of the first processing function. The first processing function is then executed to perform corresponding processing on the input pipeline data to be repaired, such as data recovery, data refresh, ranking-related data update, etc., to restore the integrity and accuracy of the data. Optionally, a parallel processing mechanism is added. After the segmented batch data is prepared, multiple batches of data are processed in parallel using multi-core processors or distributed computing resources. This parallel processing method can significantly reduce the overall processing time, especially when processing large-scale data sets. Optionally, after all batches of data are processed, the system integrates the processing results of each batch to form a final processing result set. At the same time, the system provides feedback on the processing results to the user or related system, including the number of successful processing, the number of failed processing, and the reasons for failure, etc., to facilitate subsequent data management and maintenance.
[0084] In some embodiments, the transaction data to be repaired optionally includes a transaction identification code, which is related to the content in the transaction data to be repaired, and the transaction identification code generated by the same transaction data to be repaired is the same. By introducing the transaction identification code, the system can quickly identify and associate different data versions of the same transaction, thereby reducing duplication of work in the data verification and repair process and improving overall processing efficiency. The transaction identification code is closely related to the content of the transaction data to be repaired, ensuring the consistency and accuracy of the data in each link and reducing business errors caused by inconsistent data.
[0085] In some embodiments, optionally, Figure 3 As shown, the step of generating the third data based on the first data and the second data includes:
[0086] Generate a serial identification code according to the contents of the first data and the second data;
[0087] Arrange the first data, the second data and the serial number identification code to generate the serial number data to be repaired;
[0088] Determine whether the transaction data to be repaired has been stored in the database according to the transaction identification code;
[0089] If the transaction data to be repaired has not been stored in the warehouse, the transaction data to be repaired will be stored in the warehouse;
[0090] All the flow data to be repaired that have been processed by the storage are stored in a collection to generate third data.
[0091] Optionally, before generating the running water identification code, the first data and the second data are first cleaned to remove invalid, repeated or formatted data items. At the same time, the integrity and consistency of the data are verified to ensure the quality of the data for subsequent processing. Optionally, a unique running water identification code is generated by combining the key fields of the first data and the second data using a hash algorithm or a custom encoding rule. This step is intended to ensure the uniqueness and traceability of each running water data, and for each data to be repaired, the unique code generated each time is the same. Afterwards, the first data, the second data and the generated running water identification code are integrated into a complete record to form the running water data to be repaired. In this step, it is necessary to adjust the field order and add necessary metadata, such as the data generation time, whether it is stored, whether it is repaired, etc. Optionally, after the integration is completed, the running water data to be repaired is verified again to ensure the accuracy and integrity of the data. The running water identification code is used as a query condition to retrieve whether there is running water data with the same identification in the database. This step is intended to avoid repeated storage and improve the efficiency of data storage. According to the query result, it is determined whether the running water data to be repaired has been stored. If it has been stored, you can choose to skip the repair operation; if it has not been stored, continue to the next step. Write the unstored to-be-repaired flow data into the database or data warehouse to ensure the persistent storage of the data. Optionally, during the storage process, record detailed operation logs, including storage time, operator, storage results and other information, to facilitate subsequent problem tracking and auditing. Collect all the flow data to be repaired that have been stored into a set to form third data. This set can be a data structure in memory or a table stored in a file or database. Optionally, according to actual needs, the third data is output in an appropriate form, such as exporting to a CSV file, JSON format data or directly providing it to the downstream system for use. Through data preprocessing and verification, the quality of the input data is ensured, and errors and exceptions in subsequent processing are reduced. At the same time, the flow identification code is used for rapid storage judgment, avoiding repeated storage of data and improving storage efficiency. When generating the flow identification code, an encryption or obfuscation mechanism is added to protect the security of sensitive information. At the same time, the uniqueness of the flow identification code enables each flow data to be accurately tracked and located. The pipeline data to be repaired is integrated into a unified set and stored in a database or data warehouse to facilitate subsequent data management and analysis. At the same time, detailed operation logs also provide strong support for problem tracking and auditing.
[0092] In some embodiments, optionally, Figure 4 As shown, the steps of generating input parameters from the pipeline data to be repaired, and passing them into and executing the first processing function include:
[0093] According to the flow identification code in the flow data to be repaired, it is inquired whether there is a repair record in the flow data to be repaired, and a judgment result is generated;
[0094] If the judgment result is that it is not repaired, the pipeline data to be repaired is used to generate input parameters, which are passed into and executed in the first processing function;
[0095] After the first processing function is executed, a repair record is generated based on the pipeline data to be repaired and stored in the database.
[0096] First, according to the running water identification code in the running water data to be repaired, a database query condition is constructed. This running water identification code is generated in the previous step and is used to uniquely identify each running water data. The query condition is submitted to the database, and the query operation is performed to find out whether there is a repair record corresponding to the running water identification code. According to the query result, a judgment result is generated. If the repair record is found, it means that the running water data has been repaired; if the repair record is not found, it means that the running water data has not been repaired. According to the judgment result generated in the previous step, a conditional judgment is performed. If the judgment result is "not repaired", the subsequent steps are continued; if the judgment result is "repaired", you can choose to skip the processing of the current running water data, or perform other processing according to business needs. After confirming that the running water data to be repaired has not been repaired, it is converted into the input parameter format required by the first processing function. Optionally, the conversion process includes operations such as extracting key fields, converting data types, and setting default values. The generated input parameters are passed to the first processing function, and the function is executed. The specific function of the first processing function includes recording or repairing the running water data sent and received by the virtual items in the interaction with the specified user. Optionally, in the process of executing the first processing function, there is an exception handling step; if an exception occurs during the function execution, the exception information is captured and recorded in time for subsequent problem tracking and resolution. After the first processing function is executed, a repair record is generated based on the processing result and the information of the pipeline data to be repaired. Optionally, the repair record contains the repair time, the repairer, the repair content, etc. The generated repair record is stored in the database. This step is a key step to ensure the traceability and auditability of the repair work. When storing, it should be ensured that the association between the repair record and the corresponding pipeline data is correct. By querying the repair record first, the problem of repeated repair is avoided and the efficiency of data repair is improved. At the same time, unnecessary computing resource consumption is reduced. Through conditional judgment and exception handling mechanism, it is ensured that only the pipeline data that has not been repaired will be passed into the first processing function for processing, thereby improving the accuracy of data repair. By generating and storing the repair record, each repair operation can be checked. This not only helps to track and solve subsequent problems, but also meets the requirements of data governance and compliance.
[0097] In some embodiments, optionally, Figure 5 As shown, before executing the method, it also includes:
[0098] Get the repair configuration identifier, which is used to configure whether to allow repair of pipeline data;
[0099] Determine and repair the configuration identifier, and generate a configuration identifier determination result;
[0100] If the configuration identification judgment result does not meet the preset conditions, the subsequent steps will not be executed.
[0101] First, determine the source of the repair configuration identifier, which can be a configuration file, a configuration item in a database, an environment variable, or an interface provided by a remote service. According to the specific implementation and deployment environment of the system, select a suitable configuration source. Read the repair configuration identifier from the determined configuration source. Optionally, the repair configuration identifier is a Boolean value (such as true / false), an enumeration type (such as allow / deny), or a string with a specific meaning, which is used to indicate whether the system allows the repair operation of the pipeline data. Parse the read repair configuration identifier into a format understandable to the system. If the configuration is a string or enumeration type, it may need to be converted or mapped to a representation method within the system. Based on the parsed repair configuration identifier, generate a configuration identifier judgment result. This result is usually a Boolean value, which is used to indicate whether the current system configuration allows the subsequent pipeline data repair steps to be executed. Optionally, one or more conditions (i.e., preset conditions) are pre-set in the system or method, which define when the repair operation of the pipeline data should be allowed or prohibited. These conditions may be based on various factors such as business rules, security policies, system status, etc. Compare the configuration identifier judgment result with the preset conditions. If the judgment result does not meet the preset conditions (for example, the repair configuration identifier is "deny", and the preset condition requires that it must be "allow" to perform the repair), the system decides not to perform the subsequent pipeline data repair steps. If it is decided not to perform the subsequent repair steps, the system skips all operations related to pipeline data repair, including data query, processing function call, repair record generation, etc. By introducing the repair configuration identifier, the system administrator can flexibly configure whether to allow pipeline data repair based on actual needs and business rules. This configurability makes the system more flexible and able to adapt to different usage scenarios and changing needs. In some cases, it may be necessary to prohibit the repair of pipeline data for security reasons or system stability requirements. Through preset conditions and configuration identifier judgment, the system can automatically prevent unsafe or unnecessary repair operations, thereby reducing the risk of system attacks or failures.
[0102] Combination of the above Figures 1 to 5 , describes in detail a method for repairing stream data in a user interaction process provided by an embodiment of the present invention, which can also be implemented by a corresponding device. Figure 6, describes in detail a device for repairing pipeline data in a user interaction process provided by an embodiment of the present invention.
[0103] Figure 6 FIG. 1 is a schematic diagram showing a structure for repairing flow data in a user interaction process provided by an embodiment of the present invention. Figure 6 As shown, the device comprises:
[0104] The first data acquisition module 601 is configured to acquire first data, the first data being basic information of user interaction; the first data includes a function name of a first processing function, and the first processing function is configured to process the flow data of sending and receiving virtual items based on user interaction;
[0105] A second data acquisition module 602 is configured to acquire second data, where the second data is a set of virtual items to be repaired;
[0106] The third data generating module 603 is configured to generate third data based on the first data and the second data, where the third data is a data list of pipeline data to be repaired obtained by searching the database according to the first data and the second data;
[0107] The processor 604 is configured to find the execution entry of the first processing function according to the corresponding relationship through the function name of the first processing function, traverse the third data, pass the pipeline data to be repaired as an input parameter to the execution entry of the first processing function and execute the first processing function;
[0108] The first processing function only processes the transaction data of the virtual items received and sent based on user interaction, and both the transaction data of the virtual items received and sent and the transaction data of the repaired virtual items are processed by the first function.
[0109] The operation process of the device is:
[0110] The first data acquisition module 601 acquires first data based on the interaction of a specified user from the system;
[0111] The second data acquisition module 602 obtains second data based on the interaction of the designated user from the system;
[0112] The third data generation module 603 receives the first data from the first data acquisition module 601 and the second data from the second data acquisition module 602, uses the first data and the second data as query conditions, and converts the query results into a data list of the pipeline data to be repaired, i.e., the third data, through a database query;
[0113] Processor 604 traverses the third data, and finds the execution entry of the first processing function according to the corresponding relationship through the function name of the first processing function, passes the pipeline data to be repaired as an input parameter to the execution entry of the first processing function and executes the first processing function.
[0114] In addition, an embodiment of the present invention further provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor. The transceiver, the memory, and the processor are respectively connected via a bus. When the computer program is executed by the processor, each process of the embodiment of the above-mentioned method for repairing flow data during user interaction is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0115] For details, see Figure 7 As shown, an embodiment of the present invention further provides an electronic device, which includes a bus 1110 , a processor 1120 , a transceiver 1130 , a bus interface 1140 , a memory 1150 and a user interface 1160 .
[0116] The transceiver 1130 is configured to receive and send data under the control of the processor 1120 .
[0117] In an embodiment of the present invention, the bus architecture (represented by bus 1110), bus 1110 may include any number of interconnected buses and bridges, and bus 1110 connects various circuits including one or more processors represented by processor 1120 and a memory represented by memory 1150.
[0118] Bus 1110 represents one or more of any of several types of bus structures, including a memory bus and memory controller, a peripheral bus, an Accelerate Graphical Port (AGP), a processor, or a local bus using any of a variety of bus architectures. By way of example and not limitation, such architectures include: Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA), Peripheral Component Interconnect (PCI) bus.
[0119] The processor 1120 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processors include: a general-purpose processor, a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a complex programmable logic device (CPLD), a programmable logic array (PLA), a microcontroller unit (MCU) or other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. For example, the processor may be a single-core processor or a multi-core processor, and the processor may be integrated into a single chip or located in multiple different chips.
[0120] Processor 1120 can be a microprocessor or any conventional processor. The method steps disclosed in conjunction with the embodiments of the present invention can be directly executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a readable storage medium known in the art, such as a random access memory (RAM), a flash memory (FlashMemory), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a register, etc. The readable storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware.
[0121] The bus 1110 may also connect various other circuits such as peripheral devices, voltage regulators or power management circuits, and the bus interface 1140 provides an interface between the bus 1110 and the transceiver 1130, which are well known in the art. Therefore, the embodiments of the present invention will not be further described.
[0122] The transceiver 1130 may be one element or multiple elements, such as multiple receivers and transmitters, and provides a unit for communicating with various other devices on a transmission medium. For example, the transceiver 1130 receives external data from other devices, and the transceiver 1130 is used to send data processed by the processor 1120 to other devices. Depending on the nature of the computer system, a user interface 1160 may also be provided, such as a touch screen, a physical keyboard, a display, a mouse, a speaker, a microphone, a trackball, a joystick, and a stylus.
[0123] It should be understood that in an embodiment of the present invention, the memory 1150 may further include a memory remotely arranged relative to the processor 1120, and these remotely arranged memories may be connected to the server through a network. One or more parts of the above-mentioned network may be an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless local area network (WLAN), a wide area network (WAN), a wireless wide area network (WWAN), a metropolitan area network (MAN), the Internet, a public switched telephone network (PSTN), a plain old telephone service network (POTS), a cellular telephone network, a wireless network, a wireless fidelity (Wi-Fi) network, and a combination of two or more of the above-mentioned networks. For example, the cellular telephone network and the wireless network can be a Global System for Mobile Communications (GSM) system, a Code Division Multiple Access (CDMA) system, a Worldwide Interoperability for Microwave Access (WiMAX) system, a General Packet Radio Service (GPRS) system, a Wideband Code Division Multiple Access (WCDMA) system, a Long Term Evolution (LTE) system, a LTE Frequency Division Duplex (FDD) system, a LTE Time Division Duplex (TDD) system, an Advanced Long Term Evolution (LTE-A) system, a Universal Mobile Telecommunications (UMTS) system, an Enhanced Mobile Broadband (Enhance Mobile Broadband, eMBB) system, a massive Machine Type of Communication (mMTC) system, an Ultra-Reliable Low Latency Communications (UltraReliable Low Latency Communications, uRLLC) system, etc.
[0124] It should be understood that the memory 1150 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory includes: a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
[0125] Volatile memory may include random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 1150 of the electronic device described in the embodiment of the present invention includes but is not limited to the above and any other suitable types of memory.
[0126] In the embodiment of the present invention, the memory 1150 stores the following elements of the operating system 1151 and the application program 1152: executable modules, data structures, or subsets thereof, or extended sets thereof.
[0127] Specifically, the operating system 1151 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 1152 includes various applications, such as a media player (Media Player) and a browser (Browser), which are used to implement various application services. The program for implementing the method of the embodiment of the present invention may be included in the application 1152. The application 1152 includes applets, objects, components, logic, data structures, and other computer system executable instructions that perform specific tasks or implement specific abstract data types.
[0128] In addition, an embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned method embodiment for repairing flow data during user interaction are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0129] Computer readable storage media include: transient and non-transient, permanent and non-permanent, removable and non-removable media, which are tangible devices that can retain and store instructions for use by instruction execution devices. Computer readable storage media include: electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, and any suitable combination of the above. Computer readable storage media include: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassette storage, magnetic tape disk storage or other magnetic storage devices, memory sticks, mechanical encoding devices (such as punched cards or raised structures in grooves with instructions recorded thereon) or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined in the embodiments of the present invention, computer-readable storage media do not include temporary signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (such as light pulses passing through fiber optic cables), or electrical signals transmitted through wires.
[0130] In the several embodiments provided in the present application, it should be understood that the disclosed devices, electronic devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one location or distributed on multiple network units. Some or all of the units may be selected according to actual needs to solve the problem to be solved by the embodiments of the present invention.
[0132] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0133] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention is essentially or part of the contribution to the prior art, or all or part of the technical solution can be embodied in the form of a program product, which is stored in a storage medium and includes several instructions for a computer device (including: a personal computer, a server, a data center or other network device) to perform all or part of the steps of the method described in each embodiment of the present invention. The above-mentioned storage medium includes various media that can store program codes as listed above.
[0134] In addition, an embodiment of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the various processes of the above-mentioned method embodiment for repairing flow data during user interaction, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0135] Example 1
[0136] In a live broadcast software, users can interact with the anchor or other users by sending virtual items when participating in specific user interactions. The sending and receiving of these virtual items will be recorded by the system as transaction data. However, due to the negligence of the staff, some user interaction virtual items were not configured into the user interaction, resulting in errors in the transaction data, which need to be repaired. In order to improve the user experience and ensure the accuracy of the data, an automated repair process is designed to handle such problems.
[0137] Obtain user interaction information. When it is detected that there may be problems with the sending and receiving flow data of virtual items in a specific user interaction (such as "anniversary celebration"), the system first obtains the basic information of the user interaction as the first data. The first data includes the user interaction ID, the user interaction name, and the specified first processing function name, which is specifically used to process the sending and receiving flow data of virtual items in the user interaction. The system determines which virtual items may have data problems through user reports, log analysis, or database queries, and organizes the IDs and related information of these virtual items into a set of virtual items to be repaired as the second data. Based on the user interaction information in the first data and the information of the virtual items in the second data, the system queries and generates a data list of flow data to be repaired in the database, that is, the third data. This step includes: generating a unique flow identification code for each virtual item to be repaired, which is generated based on information such as the virtual item ID, user interaction ID, and gift timestamp to ensure the uniqueness of each flow data; checking whether the generated flow data to be repaired already exists in the database to avoid repeated processing; storing the flow data to be repaired that has not been stored in the database in the database and arranging it into a third data set. Before executing the repair operation, the system obtains the repair configuration identifier, which is used to configure whether to allow the repair of the flow data of the current user interaction. The system determines whether the identifier meets the preset conditions (such as the flag that allows repair is true). If the conditions are not met, the repair process ends directly. The system finds the corresponding execution entry through the function name of the first processing function. If the number of flow data to be repaired exceeds the preset threshold (such as 1000), it is divided into multiple batches for processing to improve processing efficiency and resource utilization. Traverse the flow data to be repaired in each batch, and check for each data whether there is a repair record for the flow data. If not, pass it as an input parameter to the first processing function to perform the repair operation. After the repair is completed, a repair record is generated according to the repair result and stored in the database for subsequent tracking and auditing.
[0138] This embodiment designs an automated repair process for specific user interactions in live broadcast software to process the flow data generated by the sending and receiving of virtual items. Through clear steps such as obtaining user interaction information, generating data to be repaired, configuration judgment, and batch processing, accurate repair of flow data is ensured, and processing efficiency and user experience are improved.
[0139] The above is only a specific implementation of the embodiment of the present invention, but the protection scope of the embodiment of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiment of the present invention, which should be included in the protection scope of the embodiment of the present invention. Therefore, the protection scope of the embodiment of the present invention should be based on the protection scope of the claims.
Claims
1. A method for repairing pipeline data in a user interaction process, characterized in that: include: Acquire first data, where the first data is basic information of the user interaction; the first data includes a function name of a first processing function, where the first processing function is configured to process flow data of sending and receiving virtual items based on the user interaction; Acquire second data, where the second data is a set of virtual items to be repaired; Generate third data based on the first data and the second data, wherein the third data is a data list of pipeline data to be repaired obtained by querying the database according to the first data and the second data; Finding the execution entry of the first processing function according to the function name of the first processing function according to the corresponding relationship; Traversing the third data, passing the pipeline data to be repaired as an input parameter into the execution entry of the first processing function and executing the first processing function; The first processing function only processes the transaction data of the virtual items received and sent based on the user interaction, and both the transaction data of the virtual items received and sent and the transaction data of the virtual items repaired and sent are processed by the first function.
2. The method according to claim 1, characterized in that: The step of traversing the third data, passing the pipeline data to be repaired as an input parameter into the execution entry of the first processing function and executing the first processing function further includes: Determining whether the amount of the pipeline data to be repaired is greater than a first preset amount; If the number of the pipeline data to be repaired is greater than a first preset number, the third data is divided into a plurality of batches of data to generate processed third data, and the number of each batch of data in the processed third data is less than or equal to the first preset number; The batch data are traversed respectively, the pipeline data to be repaired is used to generate input parameters, which are passed into and executed as the first processing function.
3. The method according to claim 1, characterized in that The pipeline data to be repaired includes a pipeline identification code, which is related to the content of the pipeline data to be repaired, and the pipeline identification codes generated by the same pipeline data to be repaired are the same.
4. The method according to claim 3, characterized in that The step of generating third data based on the first data and the second data comprises: Generate the serial identification code according to the content of the first data and the second data; Arrange the first data, the second data and the serial number identification code to generate the serial number data to be repaired; Determine whether the transaction data to be repaired has been stored in the database according to the transaction identification code; In the case where the flow data to be repaired has not been stored in the warehouse, storing the flow data to be repaired in the warehouse; All the pipeline data to be repaired that have been processed by the storage are stored in a set to generate the third data.
5. The method according to claim 2, characterized in that: The step of generating input parameters from the pipeline data to be repaired, and passing them into and executing the first processing function comprises: Querying whether there is a repair record for the flow data to be repaired according to the flow identification code in the flow data to be repaired, and generating a judgment result; If the judgment result is that the repair is not completed, the pipeline data to be repaired is used to generate input parameters, which are passed into and executed as the first processing function; After the first processing function is executed, a repair record is generated based on the pipeline data to be repaired and stored in a database.
6. The method according to claim 1, characterized in that Before executing the method, the method further includes: Obtaining a repair configuration identifier, wherein the repair configuration identifier is used to configure whether to allow repair of pipeline data; Determine the repair configuration identifier and generate a configuration identifier determination result; If the configuration identification judgment result does not meet the preset conditions, the subsequent steps are not executed.
7. A device for repairing pipeline data during user interaction, characterized in that: include: A first data acquisition module is configured to acquire the first data, where the first data is basic information of the user interaction; The first data includes a function name of a first processing function, and the first processing function is configured to process the flow data of sending and receiving virtual items based on the user interaction; A second data acquisition module is configured to acquire the second data, where the second data is a set of virtual items to be repaired; A third data generating module is configured to generate third data based on the first data and the second data, wherein the third data is a data list of pipeline data to be repaired obtained by querying a database according to the first data and the second data; The processor is configured to find the execution entry of the first processing function according to the corresponding relationship through the function name of the first processing function, traverse the third data, pass the pipeline data to be repaired as an input parameter into the execution entry of the first processing function and execute the first processing function; The first processing function only processes the transaction data of the virtual items received and sent based on the user interaction, and both the transaction data of the virtual items received and sent and the transaction data of the virtual items repaired and sent are processed by the first function.
8. An electronic device, characterized in that: The invention comprises a bus, a transceiver, a memory, a processor and a computer program stored in the memory and executable on the processor. The transceiver, the memory and the processor are connected via the bus. When the computer program is executed by the processor, the steps in the method for repairing pipeline data in a user interaction process described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for repairing pipeline data in a user interaction process described in any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for repairing pipeline data in a user interaction process described in any one of claims 1 to 6 are implemented.