Method and device for processing business data
Processing business data through chain of responsibility technology solves the problem of inconsistent business data types, realizes the decoupling of business systems and audit systems, improves access efficiency, and solves the problem of low access difficulty.
Patent Information
- Application Number
- CN202111158392.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-09-30
AI Technical Summary
The types of business data generated by different business systems in large enterprises do not meet the access conditions of the audit system, resulting in low access efficiency and difficulty in accessing the audit system.
Using chain of responsibility technology, multiple processing units process the business data to be reviewed in a preset order. At least one processing unit converts the data into a target format so that it conforms to the data format of the review system, thus reducing the coupling between the business system and the review system. Improve access efficiency.
It realizes the decoupling of business data and audit system, reduces the difficulty of access, improves access efficiency, and enables the business system to efficiently access the audit system.
Smart Images

Figure CN113868479B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a method and device for processing business data. Background Art
[0002] In order to achieve different business functions, large enterprises will set up various types of business systems, such as financial business systems, wealth management business systems, online live broadcast business systems, etc. Different business systems can achieve different business functions.
[0003] During the operation of these business systems, the business data generated by each business system should be able to be audited by the audit system to ensure the security of the business data.
[0004] However, when the business system calls the audit system, the data type of the business data may not meet the access conditions of the audit system, so it is likely that it will not be able to access the audit system, resulting in low access efficiency. Summary of the invention
[0005] In view of this, the embodiments of this specification provide a method and device for processing business data, so as to reduce the difficulty of accessing the business data of the business system to the audit system and improve the access efficiency.
[0006] The present invention discloses a method for processing business data, which is applied to a responsibility chain, wherein the responsibility chain includes a plurality of processing units, each of which has a different processing rule, and each of which is arranged in a preset order in the responsibility chain; the processing method includes:
[0007] Obtain business data to be reviewed;
[0008] The business data to be reviewed is processed by each processing unit in the responsibility chain according to the processing rules of each processing unit; at least one processing unit in the responsibility chain is used to convert the business data to be reviewed into business data in a target format; the target format is the same as the data format of the review rules in the review system corresponding to the business system;
[0009] The business data in the target format is sent to the audit system.
[0010] Another aspect of the present invention discloses a processing device for business data, which is applied to a responsibility chain, wherein the responsibility chain includes a plurality of processing units, each processing unit has a different processing rule, and each processing unit is arranged in a preset order in the responsibility chain; the processing device includes:
[0011] Acquisition module, used to obtain the business data to be reviewed;
[0012] The business data to be reviewed is processed by each processing unit in the responsibility chain according to the processing rules of each processing unit; at least one processing unit in the responsibility chain is used to convert the business data to be reviewed into business data in a target format; the target format is the same as the data format of the review rules in the review system corresponding to the business system;
[0013] The business data in the target format is sent to the audit system.
[0014] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0015] The embodiment of the present invention provides a method and device for processing business data. The processing method is applied to the responsibility chain. The responsibility chain includes multiple processing units, each of which has different processing rules. Each processing unit is arranged in a preset order in the responsibility chain. The processing method first obtains the business data to be reviewed. Then, the business data to be reviewed is processed according to the processing rules of each processing unit through each processing unit in the responsibility chain. At least one processing unit in the responsibility chain is used to convert the business data to be reviewed into business data in a target format. The target format is the same as the data format of the audit rules in the audit system corresponding to the business system. Finally, the business data in the target format is sent to the audit system. The business system can be decoupled from the audit system, reducing the difficulty of the business data of the business system accessing the audit system and improving the access efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0017] Figure 1 It is a schematic diagram of the network architecture provided in the embodiments of this specification.
[0018] Figure 2 It is a flowchart of a method for processing business data shown in an embodiment of this specification.
[0019] Figure 3 Schematic diagram of the system structure of the processing device shown in the embodiment of the present invention.
[0020] Figure 4 It is a flow chart showing an embodiment of the present invention, in which the business data to be reviewed is processed according to the respective processing rules of each processing unit.
[0021] Figure 5It is a flow chart showing an embodiment of the present invention, in which the business data to be reviewed is processed according to the respective processing rules of each processing unit.
[0022] Figure 6 It is a flow chart showing an embodiment of the present invention, in which the business data to be reviewed is processed according to the respective processing rules of each processing unit.
[0023] Figure 7 It is a flow chart showing an embodiment of the present invention, in which the business data to be reviewed is processed according to the respective processing rules of each processing unit.
[0024] Figure 8 It is a flow chart showing an embodiment of the present invention, in which the business data to be reviewed is processed according to the respective processing rules of each processing unit.
[0025] Fig. 9 It is a flow chart showing an embodiment of the present invention, in which the business data to be reviewed is processed according to the respective processing rules of each processing unit.
[0026] Fig.10 It is a structural schematic diagram of an electronic device shown in an embodiment of this specification. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0028] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0029] Figure 1 This is a schematic diagram of the network architecture disclosed in the embodiments of this specification.
[0030] like Figure 1 As shown, it includes: a processing device 101, a business server 102, and an audit server 103.
[0031] Among them, the processing device 101 can be an electronic device, a server, etc. with processing capabilities. In the embodiment of the present invention, the processing device 101 adopts a responsibility chain, which is also called a responsibility chain. In the embodiment of the present invention, the responsibility chain can include multiple processing units, wherein the logical order of each unit in the responsibility chain is arranged in a preset order. Of course, each processing unit can be a processor with independent processing capabilities, or it can be a different application program. Each processing unit corresponds to its own processing rule. The business server 102 is a server that can execute specific business, such as a financial business server, a payment business server, etc. The audit server 103 is a server with audit capabilities, which can check the received data and determine whether the data complies with the audit rules. The audit rules can be set according to actual needs. Different business servers can correspond to different audit servers, or they can correspond to different audit rules in the same audit server. Whether the data complies with the audit rules, such as determining whether there are false propaganda terms, whether there are absolute terms, whether there are images that are not suitable for display, etc., can be different according to actual needs and different business data sent by the business server. The audit rules can have a corresponding relationship with the business data sent by the business server.
[0032] Figure 2 It is a flowchart of a method for processing business data shown in an embodiment of this specification.
[0033] like Figure 2 As shown, a method for processing business data provided by the present invention is applied to a responsibility chain, wherein the responsibility chain includes multiple processing units, each processing unit has a different processing rule, and each processing unit is arranged in a preset order in the responsibility chain.
[0034] In the embodiment of the present invention, the processing device 21 can be a responsibility chain, 22 is a business system, and 23 is an audit system, wherein each processing unit in the responsibility chain has its own processing rules, such as rules for converting to audio files, rules for extracting text content, rules for saving original data, etc. It can be set according to actual needs. Each processing unit is logically arranged in a preset order, that is, after the first processing unit completes the processing, the data is sent to the second processing unit according to the preset data, and the second processing unit is the subsequent processing unit of the first processing unit.
[0035] In the embodiment of the present invention, each processing unit on the responsibility chain only processes the data that it should process and processes it according to the processing rules. Regardless of whether the previous processing unit processes or not, after receiving the data, the current processing unit needs to process it according to the processing rules of the current processing unit and then send it to the next processing unit.
[0036] In an embodiment of the present invention, the processing method includes:
[0037] Step 200: Obtaining business data to be reviewed;
[0038] In the embodiment of the present invention, the business system may send the data to be reviewed to the responsibility chain, or the responsibility chain may actively obtain the business data to be reviewed in the business system connected to the processing device.
[0039] Among them, the business data to be reviewed may include: interactive draft images used for promotional activities, video files in online live broadcast rooms, H5 links, voice files to be converted, etc. The data type of the business data to be reviewed corresponding to different business systems is different.
[0040] In actual use, for example, in a financial management system, pictures of conversation content captured when a financial planner communicates with a client online or a chat text file generated, the pictures or text files are business data to be reviewed, and the review system can be a picture review system or a text review system. For example, images with larger pixels, such as posters for promotional activities and interactive drafts, can be regarded as business data to be reviewed, and the picture review system corresponding to the business system is required to review whether there is any illegal content in the image.
[0041] Of course, the business data to be reviewed may include multiple files or pictures, or may include only data of one data type, such as a text file of text type only, etc. It can be set according to actual needs, and will not be described in detail here.
[0042] Step 202: Process the business data to be reviewed according to the processing rules of each processing unit through each processing unit in the responsibility chain; at least one processing unit in the responsibility chain is used to convert the business data to be reviewed into business data in a target format; the target format is the same as the data format of the review rules in the review system corresponding to the business system;
[0043] In the embodiment of the present invention, each processing unit in the responsibility chain processes the received data to be reviewed or the processed data to be reviewed according to their own processing rules.
[0044] At least one processing unit may convert the data format of the to-be-audited business data into a data format specified by the audit rules in the business system.
[0045] Different rules of the processing unit have different processing processes for the audited data. For example, the processing unit can be a file landing platform processing unit, and the processing unit saves the received data to the platform. It can be logically connected to the file rule binding processing unit, and the data is sent to the file rule binding processing unit for processing.
[0046] For example, if the received data to be reviewed is a plurality of text files, and the processing unit is a rule binding unit, the text files can be respectively bound to the review rules, for example, the first text file can be bound to the advertising false propaganda review rule, and the second text file can be bound to the absolute user review rule, etc. Subsequently, different review algorithms can be executed or sent to different review systems for review according to different bound rules.
[0047] In the embodiment of the present invention, the processing of the to-be-audited business data by each processing unit in the responsibility chain according to the processing rules of each processing unit specifically includes:
[0048] After the first processing unit in the responsibility chain receives the business data to be reviewed, the first processing unit processes the business data to be reviewed according to the processing rule of the first processing unit;
[0049] The first processing unit sends the processed business data to be reviewed to the second processing unit, and the second processing unit is located next to the first processing unit in the responsibility chain.
[0050] In the embodiment of the present invention, the next position of the first processing unit is the second processing unit logically connected to the first processing unit. The first processing unit sends the processed data to be reviewed to the second processing unit. For example, the first processing unit extracts a voice file from the data to be reviewed, sends the voice file to the second processing unit, and the second processing unit converts the voice file into a text file.
[0051] It is understandable that the second processing unit receives the pending business data processed by the first processing unit, and of course, can also send the pending business data to the second processing unit at the same time. This can be set according to actual needs.
[0052] It can be understood that, in various embodiments of the present invention, the first processing unit and the second processing unit are merely descriptions of positions, and the first processing unit is not limited to being the first processing unit in the responsibility chain. Of course, the first processing unit can be the first processing unit or the last processing unit in the responsibility chain.
[0053] In the embodiment of the present invention, the detailed processing process of each processing unit will be described in detail later.
[0054] Step 204: Send the business data in the target format to the audit system.
[0055] In the embodiment of the present invention, the business data in the target format may be sent to the audit system for subsequent audit.
[0056] For example, the business system is a live broadcast system, and the audit system corresponding to the business system is a text audit system. The target format of the data to be audited obtained by step 202 in the embodiment of the present invention can be a text file in a text format, and the text parameters of the text file meet the text parameters specified by the audit rules in the audit system. The text file is sent to the text audit system, and the text audit system audits the text file in a text format according to the predetermined requirements after receiving the text file in a text format. Of course, the predetermined requirements can be pre-set requirements for auditing the content of the text file, such as determining whether there are absolute terms. If so, the text file is in violation.
[0057] In the embodiment of the present invention, the business data in the target format is sent to the audit system, and the audit algorithm of the audit system can also be directly called to reduce the pressure of the audit system. For example, the text compliance audit algorithm in the text audit system is called to audit whether the content in the text file complies with the preset rules. The text compliance audit algorithm can be similar to the aforementioned predetermined requirements, or it can be a pre-set audit algorithm.
[0058] In addition, since multiple processing units are set in the responsibility chain, the processing rules in each processing unit can be set according to different needs, so when a new processing unit is needed, it only needs to be inserted into the appropriate position. Other processing units do not need to be modified.
[0059] The embodiment of the present invention may further include:
[0060] receiving an insertion request sent after inserting a target processing unit at a specific position in the chain of responsibility;
[0061] updating the preset order according to the specific position;
[0062] The processing rules corresponding to the target processing unit are saved.
[0063] In an embodiment of the present invention, if a new target processing unit needs to be set up, for example, the target processing unit can be a legal document extraction unit, which can extract relevant legal documents from the business data to be reviewed. Then, when it is received at a specific position, such as inserted after the original data storage processing unit and before the video file processing unit, the preset arrangement order will be updated and the processing rules of the target processing unit will be saved, so that when the business data to be reviewed is received, it can be processed according to the processing rules of the target processing unit.
[0064] Of course, this can also include:
[0065] receiving a deletion request for deleting a target processing unit;
[0066] Deleting the identifier of the target processing unit in the preset sequence and updating the preset sequence;
[0067] Delete the processing rules corresponding to the target processing unit.
[0068] In the embodiment of the present invention, the processing rules corresponding to each processing unit in the responsibility chain cannot be modified, but new processing units and corresponding processing rules can be inserted. Of course, each processing unit can also exist in the form of a processing function, and the processing rules can be classes, triggers, etc. used in the operation of the function, as long as the above process can be executed.
[0069] In the embodiment of the present invention, the target processing unit can be deleted or added according to actual needs to achieve the increase and decrease of functions, which has strong flexibility. For the sender, there is no need to know the processing process in the responsibility chain, and it is decoupled from the receiver.
[0070] It can be seen from the above embodiments that different types of business data in the upstream system of the processing device, such as the business system, are sent to the responsibility chain. Different processing can be performed according to different processing units to obtain business data in the target format that complies with the audit rules in the audit system. Different material types can be processed differently by different processing units in the responsibility chain to obtain business data that can be efficiently accessed to the audit system. There is no need for the business system to reconvert the type of business data after each audit system returns an error, thereby improving the access efficiency. At the same time, the sender in the responsibility chain can asynchronously transmit the data to be audited, thereby achieving decoupling from the receiver.
[0071] Of course, in the embodiment of the present invention, after sending to the audit system, a process of returning the audit result to the business system may also be included.
[0072] The embodiment of the present invention may further include:
[0073] Receiving the audit result returned by the audit system after auditing the target business data;
[0074] The audit result is sent to the business system.
[0075] In the embodiment of the present invention, after the audit system audits the business data in the target format, it can also return the audit result.
[0076] After receiving the audit results, the audit results are sent to the business system. Of course, the audit results can also be sent to other terminals that need to know the audit results, such as the auditor's terminal, the regulatory department's terminal, etc.
[0077] In the embodiment of the present invention, the business system, as the sender, does not need to know the processing process after sending, nor does it need to establish a connection with the audit system, so that the sender and the receiver are decoupled, avoiding the input of redundant information and improving the working efficiency of the business system.
[0078] Figure 3 Schematic diagram of the system structure of the processing device in an embodiment of the present invention.
[0079] Among them, the system structure 300 can include a responsibility chain material processing framework and an underlying dependency framework, wherein the responsibility chain is adopted in the responsibility chain material processing framework, and can include multiple processing units, such as a degradation logic processing unit 31, an original data storage unit 32, an inspection screenshot unit 33, a video file processing unit 34, a voice file processing unit 35, a file OSS unit 36, a file rule binding unit 37, a packaging information call review unit 38, etc. Among them, the direction of the arrows in the figure is a preset order, and the various processing units are logically connected. Among them, the underlying dependency framework may include an inspection middle station unit 390, an algorithm engine unit 391, an FFMPEG unit 392, an OSS storage unit 393, etc.
[0080] It can be understood that the multiple processing units in the chain of responsibility material processing framework may include respective corresponding processing rules.
[0081] The embodiment of the present invention can be used in actual use as follows Figure 3 The system structure shown processes the data to be audited.
[0082] As mentioned above, different processing units have different processing rules. The following is a detailed introduction.
[0083] In the example of the present invention, the processing unit is an original data storage unit, and the processing of the pending business data according to the respective processing rules of each processing unit includes:
[0084] The business data to be reviewed is saved in a storage device.
[0085] In an embodiment of the present invention, the processing unit may be an original data storage unit. In order to prevent the original data from being unable to be restored if a processing failure occurs during subsequent processing, in an embodiment of the present invention, the original data may be saved first, so that when a failure occurs subsequently, the stored original data can be called back for processing.
[0086] Of course, the storage device can be a part of the processing device, or a storage device of a different processing system, which is not limited here. After the storage is completed, the business data to be reviewed is sent to the next processing unit. For example, if the processing unit is the first processing unit, the business data to be reviewed is sent to the second processing unit.
[0087] Figure 4 A flow chart showing an embodiment of the present invention showing processing of business data to be reviewed according to respective processing rules of respective processing units.
[0088] like Figure 4 As shown, in the embodiment of the present invention, the processing unit is a video file processing unit, and the processing of the to-be-audited business data according to the respective processing rules of each processing unit includes:
[0089] Step 400: Determine whether the data type of the to-be-audited business data is a video file type;
[0090] Step 402: if the data type of the service data to be reviewed is a video file type, extracting voice data from the service data to be reviewed to obtain a voice file;
[0091] Step 404: Use the voice file as processed business data to be reviewed.
[0092] In the embodiment of the present invention, if the processing unit is a video file processing unit, the corresponding processing rule may be to extract the voice data in the video file to obtain the voice file.
[0093] When the video file processing unit receives the business data to be reviewed, it determines whether its data type is a video file type. If so, it uses a processing tool such as FFMPEG to process the video file, extracts the voice data therein to obtain a voice file. Then the voice file is sent to the next processing unit as the processed data to be reviewed. Of course, the data to be reviewed can also be sent to the next processing unit at the same time.
[0094] The business data to be reviewed may also be sent to a data conversion platform, and the data conversion platform extracts the voice data therein to obtain a voice file and returns it to the sender.
[0095] In the embodiment of the present invention, if the business type of the business data to be reviewed is a video file type, the voice data therein is extracted to obtain a voice file. The voice file can be extracted. There is no need for the review system to re-execute the process of extracting the voice file. Since the review system and the business system are decoupled, the pressure on the review system and the business system is increased.
[0096] Figure 5 Another flowchart diagram of processing the business data to be reviewed according to the respective processing rules of each processing unit is shown in an embodiment of the present invention.
[0097] like Figure 5 The processing unit is a voice file processing unit, and the processing of the pending business data according to the respective processing rules of each processing unit includes:
[0098] Step 500: Determine whether the data type of the to-be-audited business data is a voice file type;
[0099] Step 502: If the data type of the business data to be reviewed is a voice file type, extracting text from the business data to be reviewed to obtain a text file;
[0100] Step 504: Use the text file as processed business data to be reviewed.
[0101] In the embodiment of the present invention, the processing unit is a voice file processing unit. When it is determined that the data type of the received business data to be reviewed is a voice file type, the text therein is extracted to obtain a text file.
[0102] The step of extracting text from a voice file to obtain a text file may be to call a preset plug-in to extract text from the to-be-audited business data of the voice file type to obtain a text file.
[0103] Of course, the business data to be reviewed can also be sent to a voice interaction server, so that the voice interaction server extracts the text of the business data to be reviewed, obtains a text file, and returns it to the sender. Among them, the voice interaction server can be a server with a voice-to-text function. The embodiment of the present invention can convert the parameters of the target voice file into parameters consistent with the interface parameters of the voice interaction server according to the interface parameters of the voice interaction server. For example, the interface parameters include a frequency of 16000Hz or 8000Hz, a size of less than 10Mb, etc. It only needs the voice interaction server to be able to convert.
[0104] After the text file is obtained, it can be sent to a subsequent processing unit, such as a second processing unit, as business data to be reviewed.
[0105] Figure 6 This is another flow chart of processing the business data to be reviewed according to the respective processing rules of each processing unit in an embodiment of the present invention.
[0106] like Figure 6 If the processing unit is a patrol screenshot unit, then the processing of the pending business data according to the respective processing rules of each processing unit includes:
[0107] Step 600: Determine whether the data type of the to-be-audited business data is a picture type;
[0108] Step 602: If the data type of the to-be-audited business data is a picture type, the to-be-audited business data is cut into at least one picture of a preset size;
[0109] Step 604: Use the at least one picture of the preset size as processed business data to be reviewed.
[0110] The processing method also includes:
[0111] Step 606: Identify the text content in the processed business data to be reviewed;
[0112] Step 608: Determine whether the text content meets the preset requirements;
[0113] Step 610: If the text content contains words that do not comply with the preset regulations, output a warning message.
[0114] In an embodiment of the present invention, the processing unit may be an inspection screenshot unit, which has the ability to inspect the business data to be reviewed, and may determine whether the business data to be reviewed is of a picture type. If it is a picture type, it may be cropped into a picture that meets a preset size. For example, a poster of a promotional activity may be cropped into multiple pictures that meet a preset size. The preset size may be in pixels or in length. It is sufficient to be able to read the cropped picture for recognition.
[0115] The way to crop the image may be to call a preset function plug-in, or to send it to a function interface of a preset platform and call a conversion function.
[0116] Then, the content in the picture, such as text content, can be identified to determine whether the text content meets the preset regulations. The preset regulations, for example, include illegal propaganda terms, etc., which can be set according to actual needs.
[0117] The judgment process can be matched by regular expressions. If there is matching content, it is determined that the text content does not meet the preset regulations, and an alarm message can be output. The alarm message can be sent to a set terminal, such as a business person's terminal, a supervisor's terminal, etc. It can be set according to actual needs.
[0118] In the embodiment of the present invention, an inspection screenshot unit is provided, and the processing unit can realize the inspection capability of the pictures, can filter out the pictures that do not meet the preset regulations, and can issue an alarm message for prompting.
[0119] Figure 7 This is another flow chart of processing the business data to be reviewed according to the respective processing rules of each processing unit in an embodiment of the present invention.
[0120] like Figure 7 As shown, the processing unit is a downgrade logic unit, and the processing of the pending business data according to the respective processing rules of each processing unit includes:
[0121] Step 700: Determine whether there is an abnormality in the audit system corresponding to the business system;
[0122] Step 702: If there is an abnormality, the business data to be reviewed is marked as degraded data; the degraded data is data processed after the system resources reach a preset value.
[0123] In the embodiment of the present invention, a degradation logic unit is provided, and the processing unit can perform degradation processing in a targeted manner according to the scenario of the business system.
[0124] For example, after the business system sends the business data to be reviewed, the downgrade logic unit sends an inquiry instruction, the business system returns an exception, or the business data to be reviewed carries an identification of the business system exception, then the business data to be reviewed is marked as downgraded data, and the downgraded data can be data that is processed only when the system resources reach a preset value. For example, the downgraded data will be processed only when the system resources are idle. Of course, the downgraded data can also be associated with the business system. Depending on the application scenario of the business system, the content represented by the downgraded data is different, and personalized settings can be implemented according to different scenarios. The flexibility of the processing device is improved.
[0125] Figure 8 This is another flow chart of processing the business data to be reviewed according to the respective processing rules of each processing unit in an embodiment of the present invention.
[0126] like Figure 8 As shown, the processing unit is a sending module, and the business data to be reviewed is processed according to the respective processing rules of each processing unit, including:
[0127] Step 800: Determine the data format in the audit rule;
[0128] Step 802: converting the data format of the received processed business data to be audited into a target format that matches the data format in the audit rule;
[0129] Step 804: Send the processed business data to be reviewed in the target format to the review system.
[0130] In the embodiment of the present invention, if the processing unit is a sending unit, the data format of the received processed business data to be reviewed will be converted into a target format that matches the data format in the review rule.
[0131] In the embodiment of the present invention, the data format is converted, such as packaging processing, encryption processing, etc. Then the processed business data to be audited is sent to the audit system. The audit system can process the received data without any conversion, thereby improving the audit efficiency of the audit system.
[0132] It can be understood that in the embodiment of the present invention, the algorithms of each audit system can be saved in advance, and the processing device of the present application can also be a module of the audit system, and sending it to the audit system means sending it to another module in the audit system.
[0133] In the embodiment of the present invention, the data format can be converted, and the data format of the business data to be audited can be converted according to the data format specified by the audit rules in the audit system. If the processing unit is a sending unit, it can be the last processing unit in the responsibility chain, which can communicate directly with the audit system.
[0134] In the embodiment of the present invention, different data format conversions can be performed on the business data to be audited according to different audit rules, thereby reducing the possibility of the audit system returning errors and improving the audit efficiency.
[0135] Based on the same concept, the present invention also discloses a processing device for business data, which is applied to the responsibility chain. The responsibility chain includes multiple processing units, each processing unit has a different processing rule, and each processing unit is arranged in a preset order in the responsibility chain.
[0136] Fig. 9 Schematic diagram of a structure of a device for processing business data disclosed in the present invention. Fig. 9 As shown, the processing device includes:
[0137] The acquisition module 91 is used to obtain the business data to be reviewed;
[0138] Processing module 92, used for processing the business data to be reviewed according to the processing rules of each processing unit through each processing unit in the responsibility chain; at least one processing unit in the responsibility chain is used for converting the business data to be reviewed into business data in a target format; the target format is the same as the data format of the review rules in the review system corresponding to the business system;
[0139] The sending module 93 is used to send the business data in the target format to the audit system.
[0140] In some embodiments, the processing of the pending business data by each processing unit in the responsibility chain according to the processing rules of each processing unit specifically includes:
[0141] After the first processing unit in the responsibility chain receives the business data to be reviewed, the first processing unit processes the business data to be reviewed according to the processing rule of the first processing unit;
[0142] The first processing unit sends the processed business data to be reviewed to the second processing unit, and the second processing unit is located at the next position of the first processing unit in the responsibility chain.
[0143] In some embodiments, the processing unit is an original data storage unit, and the first processing unit processes the pending business data according to the processing rules of the first processing unit, including:
[0144] The business data to be reviewed is saved in a storage device.
[0145] In some embodiments, the processing unit is a video file processing unit, and the processing of the pending business data according to the respective processing rules of each processing unit includes:
[0146] Determine whether the data type of the to-be-audited business data is a video file type;
[0147] If the data type of the business data to be reviewed is a video file type, extracting voice data from the business data to be reviewed to obtain a voice file;
[0148] The voice file is used as the processed business data to be reviewed.
[0149] In some embodiments, the processing unit is a voice file processing unit, and the processing of the pending business data according to the respective processing rules of each processing unit includes:
[0150] Determine whether the data type of the to-be-audited business data is a voice file type;
[0151] If the data type of the business data to be reviewed is a voice file type, extracting the text in the business data to be reviewed to obtain a text file;
[0152] The text file is used as the processed business data to be reviewed.
[0153] In some embodiments, the processing unit is a patrol screenshot unit, and the processing of the pending business data according to the respective processing rules of each processing unit includes:
[0154] Determine whether the data type of the to-be-reviewed business data is a picture type;
[0155] If the data type of the business data to be reviewed is a picture type, cutting the business data to be reviewed into at least one picture of a preset size;
[0156] The at least one picture of the preset size is used as the processed business data to be reviewed.
[0157] In some embodiments, the processing method further comprises:
[0158] Identifying text content in the processed business data to be reviewed;
[0159] Determine whether the text content complies with preset regulations;
[0160] If the text content contains words that do not comply with the preset regulations, an alarm message is output.
[0161] In some embodiments, the processing unit is a degraded logic unit, and the processing of the pending business data according to the respective processing rules of each processing unit includes:
[0162] Determine whether there is an abnormality in the audit system corresponding to the business system;
[0163] If there is an abnormality, the business data to be reviewed will be marked as downgraded data; the downgraded data is data processed after the system resources reach a preset value.
[0164] In some embodiments, the processing unit is a sending unit, and the processing of the pending business data according to the respective processing rules of each processing unit includes:
[0165] Determining the data format in the audit rules;
[0166] Converting the data format of the received processed business data to be audited into a target format that matches the data format in the audit rule;
[0167] The processed business data to be audited in the target format is sent to the audit system.
[0168] In some embodiments, the processing module is further configured to:
[0169] receiving an insertion request sent after inserting a target processing unit at a specific position in the chain of responsibility;
[0170] updating the preset order according to the specific position;
[0171] The processing rules corresponding to the target processing unit are saved.
[0172] In some embodiments, the processing module is further configured to:
[0173] Receiving the audit result returned by the audit system after auditing the business data in the target format;
[0174] The audit result is sent to the business system.
[0175] Fig.10 The embodiments of this specification provide corresponding to Figure 2 A schematic diagram of the structure of an electronic device for processing business data. The electronic device may include a smart phone, a tablet computer, a laptop computer or other devices.
[0176] like Fig.10 As shown, the electronic device 1000 may include:
[0177] at least one processor 1010; and,
[0178] A memory 1030 in communication with the at least one processor; wherein,
[0179] The memory 1030 stores instructions 1020 executable by the at least one processor 1010. The instructions are executed by the at least one processor 1010 to enable the at least one processor 1010 to:
[0180] Obtain business data to be reviewed;
[0181] The business data to be reviewed is processed by each processing unit in the responsibility chain according to the processing rules of each processing unit; at least one processing unit in the responsibility chain is used to convert the business data to be reviewed into business data in a target format; the target format is the same as the data format of the review rules in the review system corresponding to the business system; the responsibility chain includes multiple processing units, each of which has a different processing rule, and each processing unit is arranged in a preset order in the responsibility chain;
[0182] The business data in the target format is sent to the audit system.
[0183] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0184] Based on the same idea, the embodiment of this specification also provides a computer-readable medium corresponding to the above method. The computer-readable medium stores computer-readable instructions, which can be executed by a processor to implement the following method:
[0185] Obtain business data to be reviewed;
[0186] The business data to be reviewed is processed by each processing unit in the responsibility chain according to the processing rules of each processing unit; at least one processing unit in the responsibility chain is used to convert the business data to be reviewed into business data in a target format; the target format is the same as the data format of the review rules in the review system corresponding to the business system; the responsibility chain includes multiple processing units, each of which has a different processing rule, and each processing unit is arranged in a preset order in the responsibility chain;
[0187] The business data in the target format is sent to the audit system.
[0188] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. Since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0189] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0190] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0191] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0192] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0193] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0194] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0195] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0196] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0197] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0198] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0199] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, 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), 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 cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0200] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0201] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0202] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0203] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for processing business data, applied to a responsibility chain, wherein the responsibility chain includes a plurality of processing units, each processing unit has a different processing rule, and each processing unit is arranged in a preset order in the responsibility chain; the processing method comprises: Obtain business data to be reviewed; The business data to be reviewed is processed according to the respective processing rules of each processing unit through each processing unit in the responsibility chain, including: different types of business data in the business data to be reviewed are processed by different processing units, and the different types of business data include at least one of video file type business data, voice file type business data, picture type business data and text type business data; at least one processing unit in the responsibility chain is used to convert the business data to be reviewed into business data in a target format; the target format is the same as the data format of the audit rules in the audit system corresponding to the business system; The processing unit includes an original data storage unit; the processing of the pending business data according to the respective processing rules of each processing unit includes: saving the pending business data to a storage device; The business data in the target format is sent to the audit system.
2. According to the processing method of claim 1, the processing of the pending business data by each processing unit in the responsibility chain according to the processing rules of each processing unit specifically includes: After the first processing unit in the responsibility chain receives the business data to be reviewed, the first processing unit processes the business data to be reviewed according to the processing rule of the first processing unit; The first processing unit sends the processed business data to be reviewed to the second processing unit, and the second processing unit is located at the next position of the first processing unit in the responsibility chain.
3. According to the processing method of claim 2, the processing unit is an original data storage unit, and the first processing unit processes the pending business data according to the processing rules of the first processing unit, including: The business data to be reviewed is saved in a storage device.
4. According to the processing method of claim 2, the processing unit is a video file processing unit, and the processing of the pending business data according to the respective processing rules of each processing unit comprises: Determine whether the data type of the to-be-audited business data is a video file type; If the data type of the business data to be reviewed is a video file type, extracting voice data from the business data to be reviewed to obtain a voice file; The voice file is used as the processed business data to be reviewed.
5. According to the processing method of claim 2, the processing unit is a voice file processing unit, and the processing of the pending business data according to the respective processing rules of each processing unit comprises: Determine whether the data type of the to-be-audited business data is a voice file type; If the data type of the business data to be reviewed is a voice file type, extracting the text in the business data to be reviewed to obtain a text file; The text file is used as the processed business data to be reviewed.
6. According to the processing method of claim 2, the processing unit is a patrol screenshot unit, and the processing of the pending business data according to the respective processing rules of each processing unit comprises: Determine whether the data type of the to-be-reviewed business data is a picture type; If the data type of the business data to be reviewed is a picture type, cutting the business data to be reviewed into at least one picture of a preset size; The at least one picture of the preset size is used as the processed business data to be reviewed.
7. The processing method according to claim 6, further comprising: Identifying text content in the processed business data to be reviewed; Determine whether the text content complies with preset regulations; If the text content contains words that do not comply with the preset regulations, an alarm message is output.
8. According to the processing method of claim 2, the processing unit is a degraded logic unit, and the processing of the pending business data according to the respective processing rules of each processing unit comprises: Determine whether there is an abnormality in the audit system corresponding to the business system; If there is an abnormality, the business data to be reviewed will be marked as downgraded data; The degraded data is data processed after the system resources reach a preset value.
9. According to the processing method of claim 2, the processing unit is a sending unit, and the processing of the pending business data according to the processing rules of each processing unit comprises: Determining the data format in the audit rules; Converting the data format of the received processed business data to be audited into a target format that matches the data format in the audit rule; The processed business data to be audited in the target format is sent to the audit system.
10. A processing device for business data, applied to a responsibility chain, wherein the responsibility chain includes a plurality of processing units, each processing unit has a different processing rule, and each processing unit is arranged in a preset order in the responsibility chain; the processing device includes: Acquisition module, used to obtain the business data to be reviewed; The business data to be reviewed is processed according to the respective processing rules of each processing unit through each processing unit in the responsibility chain, including: different types of business data in the business data to be reviewed are processed by different processing units, and the different types of business data include at least one of video file type business data, voice file type business data, picture type business data and text type business data; at least one processing unit in the responsibility chain is used to convert the business data to be reviewed into business data in a target format; the target format is the same as the data format of the audit rules in the audit system corresponding to the business system; The processing unit includes an original data storage unit; the processing of the pending business data according to the respective processing rules of each processing unit includes: saving the pending business data to a storage device; The business data in the target format is sent to the audit system.
Citation Information
Patent Citations
Configuration method, service checking method and system, equipment and storage medium
CN111258940A
Data audit module for application software
US20130031067A1
System and Method for Dynamically Refactoring Business Data Objects
US20180232433A1
Automated audit balance and control processes for data stores
US20200210391A1
