Business content processing method, device, electronic device and storage medium

By receiving the initial character replacement request and selecting the target replacement strategy from the candidate character replacement strategy set, the placeholders in the template are automatically replaced, which solves the problem of low efficiency of placeholder replacement in the existing technology and achieves efficient replacement and reduced maintenance. cost effect.

CN114254611BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111574234.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2024-09-20
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

In the existing technology, the replacement efficiency of placeholders in templates is low, resulting in inefficiency in template modification by different business parties and high maintenance costs.

Method used

By receiving the initial character replacement request, determine the characters to be replaced, select the target replacement strategy from the candidate character replacement strategy set, perform request type conversion, generate the target character replacement request, automatically replace the initial characters, improve replacement efficiency, and reduce multiple replacement strategies maintenance costs.

Benefits of technology

It achieves efficient replacement of placeholders, avoids class explosion with different replacement strategies, reduces maintenance costs, and improves processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114254611B
    Figure CN114254611B
Patent Text Reader

Abstract

The present disclosure relates to a business content processing method, device, electronic device and storage medium. The method includes: in response to an initial character replacement request, determining the initial character to be replaced corresponding to the initial business content; determining the target replacement strategy corresponding to the initial character from a set of candidate character replacement strategies; performing request type conversion on the initial character replacement request based on the target replacement strategy to obtain a target character replacement request corresponding to the target replacement strategy; and obtaining the replaced target business content corresponding to the initial business content based on the target character replacement request. In the present disclosure, the initial character can be automatically replaced according to the replacement strategy to improve the replacement efficiency of the placeholder, and by converting the initial character replacement request into a target character replacement request, it can be implemented by sending the initial character replacement request of the same request type when using different replacement strategies, avoiding setting corresponding classes for different replacement strategies, and effectively reducing the maintenance cost of multiple replacement strategies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computers, and in particular to a business content processing method, device, electronic device, and storage medium. Background Art

[0002] With the development of computer technology and the continuous improvement of the requirements for processing efficiency, the method of quickly obtaining target content by replacing placeholders in templates has become increasingly popular.

[0003] In the related art, the user can configure the placeholder characters in the template according to the actual situation. Specifically, the user can pre-configure the corresponding template, and when the business requirements change, manually modify and configure the placeholder replacement methods in the template one by one.

[0004] However, different business parties may need to make the same modifications to the template, and business requirements often change. The above placeholder replacement method is inefficient. Summary of the invention

[0005] The present disclosure provides a business content processing method, device, electronic device and storage medium to at least solve the problem of low efficiency of placeholder replacement in related technologies. The technical solution of the present disclosure is as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, a service content processing method is provided, including:

[0007] receiving an initial character replacement request for initial business content to be processed;

[0008] In response to the initial character replacement request, determining the initial character to be replaced corresponding to the initial service content;

[0009] Determining a target replacement strategy corresponding to the initial character from a set of candidate character replacement strategies;

[0010] Based on the target replacement strategy, the initial character replacement request is converted into a request type to obtain a target character replacement request corresponding to the target replacement strategy; the target character replacement request is used to request that the initial character be replaced with a target character corresponding to the target replacement strategy;

[0011] The replaced target business content corresponding to the initial business content is acquired based on the target character replacement request, and the initial characters in the target business content are replaced with the target characters.

[0012] In an exemplary embodiment, converting the request type of the initial character replacement request based on the target replacement strategy to obtain a target character replacement request corresponding to the target replacement strategy includes:

[0013] Determine target parameter description information corresponding to the target replacement strategy, where the target parameter description information is used to describe a replacement character type corresponding to the initial character;

[0014] Determine initial parameter description information corresponding to the initial character in the initial character replacement request;

[0015] The initial parameter description information in the initial character replacement request is replaced by the target parameter description information to obtain a target character replacement request corresponding to the target replacement strategy.

[0016] In an exemplary embodiment, determining a target replacement strategy corresponding to the initial character from a set of candidate character replacement strategies includes:

[0017] Extracting a target template identifier corresponding to the initial character from the initial character replacement request; the target template identifier is an identifier corresponding to a pre-configured candidate character replacement strategy set;

[0018] A target replacement strategy corresponding to the initial character is determined from the candidate character replacement strategy set corresponding to the target template identifier.

[0019] In an exemplary embodiment, the method further comprises:

[0020] Sending a candidate placeholder character set to a configuration terminal so that the configuration terminal displays the candidate placeholder character set in one or more policy configuration items, and in response to a placeholder character selection operation for the policy configuration item, using the candidate placeholder character selected by the placeholder character selection operation as the policy placeholder character corresponding to the policy configuration item;

[0021] In response to the template configuration request sent by the configuration terminal, a policy configuration template and the target template identifier corresponding to the policy configuration template are generated, and the replacement strategies corresponding to the respective policy placeholder characters form candidate character replacement strategies in the policy configuration template.

[0022] In an exemplary embodiment, the step of obtaining the replaced target service content corresponding to the initial service content based on the target character replacement request includes:

[0023] Determine a business processing party corresponding to the target replacement strategy;

[0024] Sending the target character replacement request to a business processing device corresponding to the business processing party, so that the business processing device responds to the target character replacement request and obtains the target character corresponding to the initial character;

[0025] The target business content is obtained by replacing the initial character based on the target character.

[0026] In an exemplary embodiment, sending the target character replacement request to a service processing device corresponding to the service processing party includes:

[0027] Determine a set of pending requests corresponding to the business processor;

[0028] Adding the target character replacement request to the set of requests to be processed;

[0029] When the request triggering condition corresponding to the business processor is met, the set of requests to be processed is sent to the business processing device corresponding to the business processor.

[0030] In an exemplary embodiment, the step of obtaining the target service content obtained by replacing the initial character with the target character includes:

[0031] Acquire a character association relationship set returned by the business processing party, wherein the character association relationship set is obtained by the business processing device in response to each request in the request set to be processed; the character association relationship is an association relationship between a placeholder character and a replacement character;

[0032] Matching the initial character with a placeholder character in the character association relationship, and using the character association relationship corresponding to the matched placeholder character as the target association relationship corresponding to the initial character;

[0033] Using the replacement character in the target association relationship as the target character;

[0034] The target characters are used to replace the initial characters in the initial service content to obtain the target service content.

[0035] According to a second aspect of an embodiment of the present disclosure, there is provided a service content processing device, including:

[0036] An initial request receiving unit, configured to receive an initial character replacement request for initial business content to be processed;

[0037] an initial character recognition unit, configured to determine the initial character to be replaced corresponding to the initial service content in response to the initial character replacement request;

[0038] a target strategy determination unit, configured to determine a target replacement strategy corresponding to the initial character from a set of candidate character replacement strategies;

[0039] a target request acquisition unit configured to perform a request type conversion on the initial character replacement request based on the target replacement strategy to obtain a target character replacement request corresponding to the target replacement strategy; the target character replacement request is used to request that the initial character be replaced with a target character corresponding to the target replacement strategy;

[0040] The target content acquisition unit is configured to acquire the replaced target business content corresponding to the initial business content based on the target character replacement request, wherein the initial characters in the target business content are replaced with the target characters.

[0041] In an exemplary embodiment, the target request acquisition unit is configured to execute:

[0042] Determine target parameter description information corresponding to the target replacement strategy, where the target parameter description information is used to describe a replacement character type corresponding to the initial character;

[0043] Determine initial parameter description information corresponding to the initial character in the initial character replacement request;

[0044] The initial parameter description information in the initial character replacement request is replaced by the target parameter description information to obtain a target character replacement request corresponding to the target replacement strategy.

[0045] In an exemplary embodiment, the target policy determination unit is configured to execute:

[0046] Extracting a target template identifier corresponding to the initial character from the initial character replacement request; the target template identifier is an identifier corresponding to a pre-configured candidate character replacement strategy set;

[0047] A target replacement strategy corresponding to the initial character is determined from the candidate character replacement strategy set corresponding to the target template identifier.

[0048] In an exemplary embodiment, the apparatus further comprises:

[0049] a character set sending unit, configured to send a candidate placeholder character set to a configuration terminal, so that the configuration terminal displays the candidate placeholder character set in one or more policy configuration items, and in response to a placeholder character selection operation for the policy configuration item, use the candidate placeholder character selected by the placeholder character selection operation as a policy placeholder character corresponding to the policy configuration item;

[0050] The template configuration request response unit is configured to execute a response to the template configuration request sent by the configuration terminal, generate a policy configuration template and the target template identifier corresponding to the policy configuration template, and the replacement strategies corresponding to each of the policy placeholder characters form a candidate character replacement strategy in the policy configuration template.

[0051] In an exemplary embodiment, the target content acquisition unit includes:

[0052] A processing party determination module, configured to determine the business processing party corresponding to the target replacement strategy;

[0053] a request sending module, configured to execute sending the target character replacement request to a business processing device corresponding to the business processing party, so that the business processing device responds to the target character replacement request and obtains the target character corresponding to the initial character;

[0054] The target content determination module is configured to execute the acquisition of the target business content obtained by replacing the initial character based on the target character.

[0055] In an exemplary embodiment, the request sending module is configured to execute:

[0056] Determine a set of pending requests corresponding to the business processor;

[0057] Adding the target character replacement request to the set of requests to be processed;

[0058] When the request triggering condition corresponding to the business processor is met, the set of requests to be processed is sent to the business processing device corresponding to the business processor.

[0059] In an exemplary embodiment, the target content determination module is configured to execute:

[0060] Acquire a character association relationship set returned by the business processing party, wherein the character association relationship set is obtained by the business processing device in response to each request in the request set to be processed; the character association relationship is an association relationship between a placeholder character and a replacement character;

[0061] Matching the initial character with a placeholder character in the character association relationship, and using the character association relationship corresponding to the matched placeholder character as the target association relationship corresponding to the initial character;

[0062] Using the replacement character in the target association relationship as the target character;

[0063] The target characters are used to replace the initial characters in the initial service content to obtain the target service content.

[0064] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0065] processor;

[0066] a memory for storing instructions executable by the processor;

[0067] The processor is configured to execute the instructions to implement the service content processing method as described in any one of the above items.

[0068] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the business content processing method as described in any one of the above items.

[0069] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, wherein the computer program product includes instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is enabled to execute the business content processing method as described in any one of the above items.

[0070] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0071] In the scheme disclosed in the present invention, the initial characters can be automatically replaced according to the replacement strategy, thereby improving the replacement efficiency of the placeholder, and the initial character replacement request can be converted into a target character replacement request corresponding to the target replacement strategy, and the target business content can be obtained based on the request, so that the terminal can use different replacement strategies by sending initial character replacement requests of the same request type, thereby avoiding setting corresponding classes for different replacement strategies, avoiding class explosion, and effectively reducing the maintenance cost of multiple replacement strategies.

[0072] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0074] Figure 1 The present invention is an application environment diagram of a business content processing method according to an exemplary embodiment.

[0075] Figure 2The figure is a flowchart of a method for processing business content according to an exemplary embodiment.

[0076] Figure 3 The invention is a flowchart of obtaining a policy configuration template according to an exemplary embodiment.

[0077] Figure 4 It is a schematic diagram of a configuration interface according to an exemplary embodiment.

[0078] Figure 5 The flowchart of another method for processing business content is shown according to an exemplary embodiment.

[0079] Figure 6 is a schematic diagram of another configuration interface according to an exemplary embodiment.

[0080] Figure 7 It is a block diagram of a business content processing device according to an exemplary embodiment.

[0081] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0082] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0083] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0084] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0085] The business content processing method provided by the present disclosure can be applied to Figure 1In the application environment shown, the application environment includes a terminal 110 and a configuration server 120, and the terminal 110 can communicate with the configuration server 120 through a network. Among them, the terminal 110 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc.; portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The configuration server 120 can also be called a policy configuration platform, which can be implemented with an independent server or a server cluster consisting of multiple servers.

[0086] Figure 2 is a flow chart of a method for processing business content according to an exemplary embodiment. Figure 2 As shown, the method for configuring the server 120 is used as an example for description, and may include the following steps.

[0087] In step S210, an initial character replacement request for initial service content to be processed is received.

[0088] As an example, the initial service content is the service content before character replacement, and the initial service content includes the characters to be replaced. The initial character replacement request may be an initial character replacement request.

[0089] Specifically, the initial business content may be text information, such as a speech template, a copywriting template, or other preset templates containing text information, or may be text information obtained by any editing method, such as social dynamics and comment information to be published on a social platform. Of course, the initial business content may also be business content that contains multiple forms of information at the same time, wherein the multiple forms of information at least include text information, for example, a presentation with drawings and containing text information, or an image or video with text information attached.

[0090] In actual applications, the user can perform corresponding operations on the terminal 110 for the initial business content to be processed. In response to the user operation, the terminal 110 can generate a character replacement request for the initial business content, and send it to the configuration server 120 as an initial character replacement request, so that the configuration server can receive the initial character replacement request. Alternatively, it can also be set in advance that when the terminal 110 obtains the initial business content, the terminal 110 can identify the initial business content, and when it is determined that the content to be replaced is included, the initial character replacement request for the initial business content can be automatically generated and sent to the configuration server 120.

[0091] Specifically, the configuration server 120 can receive the initial character replacement request through a pre-set universal interface, which can also be called a parent interface or a request interface. When the terminal 110 generates the initial character replacement request, if character replacement needs to be performed in multiple ways, it can use the universal request structure corresponding to the universal interface to send the initial character replacement request to the configuration server 120.

[0092] In step S220, in response to the initial character replacement request, the initial characters to be replaced corresponding to the initial service content are determined.

[0093] As an example, the initial characters to be replaced may be placeholder characters. Placeholder characters may be one or more characters pre-set in the template, such as "${time}" and "${day}", which may be set in the template as placeholder characters; in practice, the preset speech template may be provided with placeholder characters, and by replacing the placeholder characters with different information, a fixed speech template may express different contents. Alternatively, the initial characters to be replaced may be content that needs to be avoided or hidden, such as personal information, content with violent tendencies or uncivilized language.

[0094] In a specific implementation, the initial service content may be sent to the configuration server 120 together with the initial character replacement request. In response to the received initial character replacement request, the configuration server 120 may determine the initial character to be replaced corresponding to the initial service content.

[0095] In step S230, a target replacement strategy corresponding to the initial character is determined from the candidate character replacement strategy set.

[0096] As an example, the candidate character replacement strategy set may be a set including multiple replacement strategies.

[0097] The replacement strategy can be the replacement logic corresponding to the character to be replaced, or can be understood as the mapping relationship between the character to be replaced and the replacement character. The same character or string can be processed with different replacement strategies to obtain different results, and different characters can also obtain the same result if they are processed with the same replacement strategy.

[0098] After determining the initial content in the initial business content, the configuration server can determine a target replacement strategy corresponding to the initial character from the candidate character replacement strategy set. For example, a replacement strategy matching the initial character can be determined from the candidate character replacement strategy set as the target replacement strategy.

[0099] In step S240, the initial character replacement request is converted into a request type based on the target replacement strategy to obtain a target character replacement request corresponding to the target replacement strategy.

[0100] The target character replacement request is used to request to replace the initial character with the target character corresponding to the target replacement strategy.

[0101] The request type may be a type corresponding to a request for character replacement.

[0102] Specifically, different replacement strategies have different replacement methods or characters ultimately obtained based on the replacement strategies, which can be achieved by adjusting the parameters of the replacement strategies, that is, the parameters (such as input parameters) used by different replacement strategies during execution may be different. Accordingly, different replacement strategies also have different corresponding request types.

[0103] In actual applications, the terminal 110 can request the configuration server 120 to replace the characters of the initial business content through a general initial character replacement request. After determining the target replacement strategy, the configuration server 120 can convert the request type of the initial character replacement request based on the target replacement strategy to obtain a target character replacement request corresponding to the target replacement strategy.

[0104] In the present disclosure, by receiving an initial character replacement request and converting the initial character replacement request into a target character replacement request corresponding to a target replacement strategy, when the initial character to be replaced in the initial business content changes or the replacement strategy used changes, the terminal 110 does not need to pay attention to the request type, but can use a universal initial character replacement request to replace different initial characters in different initial business contents. Moreover, even if the replacement strategy is maintained or changed, since the configuration server 120 can automatically perform the request type conversion, the business logic is decoupled, making it difficult for users to perceive changes in the internal calculation rules of the replacement strategy, avoiding constant attention to how to generate a matching or correct initial character replacement request, thereby improving the efficiency of character replacement.

[0105] In step S250, the replaced target business content corresponding to the initial business content is obtained based on the target character replacement request.

[0106] The initial characters in the target business content are replaced with the target characters.

[0107] In actual applications, after receiving the target character replacement request, the configuration server 120 can send the target character replacement request to the relevant device, triggering the device to process the target character replacement request. The configuration server 120 can obtain the replaced target business content corresponding to the initial business content based on the information returned by the device.

[0108] In the above-mentioned business content processing method, the configuration server 120 can receive an initial character replacement request for the initial business content to be processed, respond to the initial character replacement request, determine the initial character to be replaced corresponding to the initial business content, determine the target replacement strategy corresponding to the initial character from the candidate character replacement strategy set, perform request type conversion on the initial character replacement request based on the target replacement strategy, obtain a target character replacement request corresponding to the target replacement strategy, and the request can be used to request to replace the initial character with the target character corresponding to the target replacement strategy, and then the replaced target business content corresponding to the initial business content can be obtained based on the target character replacement request, wherein the initial character in the target business content is replaced with the target character. In the scheme of the present disclosure, the initial character can be automatically replaced according to the replacement strategy, which improves the replacement efficiency of the placeholder, and the initial character replacement request can be converted into a target character replacement request corresponding to the target replacement strategy, and the target business content is obtained based on the request, so that the terminal can use different replacement strategies by sending the initial character replacement request of the same request type, which can avoid setting corresponding classes for different replacement strategies, avoid class explosion, and effectively reduce the maintenance cost of multiple replacement strategies.

[0109] In an exemplary embodiment, in step S240, performing request type conversion on the initial character replacement request based on the target replacement strategy to obtain a target character replacement request corresponding to the target replacement strategy may include the following steps:

[0110] Determine target parameter description information corresponding to the target replacement strategy; determine initial parameter description information corresponding to the initial character in the initial character replacement request; use the target parameter description information to replace the initial parameter description information in the initial character replacement request to obtain the target character replacement request corresponding to the target replacement strategy.

[0111] Among them, the target parameter description information can be used to describe the replacement character type corresponding to the initial character. The replacement character type can be the type corresponding to the information content represented by the character. In one example, the replacement character type can be the type represented by the character before replacement or the character after replacement.

[0112] In a specific implementation, the target parameter description information corresponding to the target replacement strategy can be determined. For example, the association relationship between each replacement strategy and the parameter description information can be pre-stored, and then the target parameter description information corresponding to the target replacement strategy can be obtained based on the association relationship.

[0113] After obtaining the initial character replacement request, the configuration server 120 may also determine the initial parameter description information corresponding to the initial character in the initial character replacement request. Exemplarily, the parameters required by each replacement strategy may be placed in a general request body corresponding to the initial character replacement request, and the configuration server 120 may obtain the initial parameter description information corresponding to the initial character from the initial character replacement request.

[0114] After determining the target parameter description information and the initial parameter description information, the configuration server 120 can replace the initial parameter description information in the initial character replacement request with the target parameter description information, and obtain the target character replacement request corresponding to the target replacement strategy based on the parameter description information obtained after the replacement. In this way, the configuration server 120 can receive the initial character replacement request through a unified parent class interface and convert it into the subclass required by each replacement strategy.

[0115] In one example, when converting to obtain a target character replacement request, parameters irrelevant to the corresponding target replacement strategy may be omitted, that is, the target character replacement request may only include parameters required by the target replacement strategy. This process can improve code readability, so that each target replacement strategy only needs to focus on the parameters it needs.

[0116] In practical applications, for example, the initial character replacement request may be as follows:

[0117]

[0118] The initial business content may be a string that needs to be replaced with characters, "params" is initial parameter description information, and "{}" may be a general request body corresponding to the initial character replacement request, which records the request parameters corresponding to each replacement strategy.

[0119] If it is determined that the target replacement strategy is a sensitive word replacement strategy, the initial character replacement request can be converted into a heterogeneous request body as shown below:

[0120]

[0121] Among them, "sensitiveWords" is the target parameter description information corresponding to the replacement strategy, which can be used to indicate the sensitive word "xxx" in the initial business content.

[0122] If the target replacement strategy is determined to be a linked replacement strategy, the initial character replacement request can be converted into a heterogeneous request body as shown below:

[0123]

[0124] Among them, "urlParams1" and "urlParams2" are the target parameter description information corresponding to the replacement strategy, which can be used to indicate the link that is finally replaced.

[0125] In the present disclosure, the configuration server can use the target parameter description information to replace the initial parameter description information to obtain a target character replacement request corresponding to the target replacement strategy, and can convert the request into a target request corresponding to the target replacement strategy based on the parameters in the initial target replacement request, thereby solving the hidden danger of class explosion.

[0126] In an exemplary embodiment, in step S230, determining a target replacement strategy corresponding to the initial character from a set of candidate character replacement strategies may include the following steps:

[0127] A target template identifier corresponding to the initial character is extracted from the initial character replacement request; and a target replacement strategy corresponding to the initial character is determined from a set of candidate character replacement strategies corresponding to the target template identifier.

[0128] The target template identifier may be an identifier corresponding to a pre-configured candidate character replacement strategy set.

[0129] In a specific implementation, when generating an initial character replacement request, terminal 110 may add a target template identifier to the initial character replacement request. For example, the initial character replacement request may include initial service content, a target template identifier, and parameters required for each replacement strategy recorded in the general request body.

[0130] After receiving the initial character replacement request, the configuration server 120 can extract the target template identifier corresponding to the initial character from the initial character replacement request, and based on the target template identifier, determine the candidate character replacement set associated with the target template identifier, and then determine the target replacement strategy corresponding to the initial character from the candidate character replacement set.

[0131] Specifically, the initial character replacement request may include one target template identifier or multiple target template identifiers. For example, when the initial business content includes multiple initial characters, the replacement strategies corresponding to each initial character may be set respectively through multiple different candidate character replacement strategy sets. For example, if the initial business content includes initial characters A, B, and C, the replacement strategies of the initial characters A, B, and C may be configured through candidate character replacement strategy set 1 and candidate character replacement strategy set 2. The replacement strategy corresponding to the initial character A may be included in the candidate character replacement strategy set 1, and the replacement strategies corresponding to the initial characters B and C may be included in the candidate character replacement strategy set 2.

[0132] In the present disclosure, the reuse of a set of candidate character replacement strategies is achieved. By pre-configuring a set of candidate character replacement strategies corresponding to a target template identifier, the configuration server 120 can determine the target replacement strategy corresponding to the initial character from the formulated set of candidate character replacement strategies, and can reuse the mapping relationship between the configured initial character and the replacement strategy without having to configure it once before each use. This effectively improves the reusability of the mapping relationship between the initial character and the replacement strategy. It is only necessary to add the corresponding target template identifier in the initial character replacement request to replace the initial character in a specified manner, which greatly reduces development costs and saves development manpower.

[0133] In an exemplary embodiment, if Figure 3 As shown, the method may further include the following steps:

[0134] In step S310, a candidate placeholder character set is sent to the configuration terminal so that the configuration terminal displays the candidate placeholder character set in one or more policy configuration items, and in response to a placeholder character selection operation for the policy configuration item, the candidate placeholder character selected by the placeholder character selection operation is used as the policy placeholder character corresponding to the policy configuration item.

[0135] As an example, the configuration terminal can be a terminal used to configure the mapping relationship between placeholder characters and replacement strategies. The configuration terminal and terminal 110 can be the same device or different devices. The configuration terminal can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices.

[0136] The candidate placeholder character set may be a set including a plurality of candidate placeholder characters, and the candidate placeholder characters may be pre-provided placeholder characters.

[0137] The policy configuration item may be an area for configuring a placeholder character, and the policy configuration item may display one or more candidate placeholder characters. The policy placeholder character may be a placeholder character for a replacement policy to be configured.

[0138] In actual applications, the configuration server 120 may send a placeholder character set to the configuration terminal. After detecting a trigger operation, the configuration terminal may display a candidate placeholder character set in the policy configuration item. For example, when a user clicks a blank policy configuration item, each candidate placeholder character in the candidate placeholder character set may be displayed in a drop-down menu corresponding to the policy configuration item. In response to a placeholder character selection operation for a policy configuration item, the configuration terminal may use the candidate placeholder character selected by the placeholder character selection operation as the policy placeholder character corresponding to the policy configuration item.

[0139] Of course, in another example, the user may also input a custom placeholder character in the policy configuration item, and the configuration terminal may determine the input placeholder character as the policy placeholder character.

[0140] In step S320, in response to the template configuration request sent by the configuration terminal, a policy configuration template and the target template identifier corresponding to the policy configuration template are generated, and the replacement strategies corresponding to the respective policy placeholder characters form candidate character replacement strategies in the policy configuration template.

[0141] As an example, the policy configuration template may be a logical set storing a mapping relationship between policy placeholder characters and replacement policies, and different users may set different policy configuration templates.

[0142] Replacement strategies can include static strategies and dynamic strategies. Static strategies can refer to replacing placeholder characters with pre-set information, such as replacing placeholder characters with fixed text or fixed links. When configuring replacement strategies, users can choose "fixed text" replacement strategy or "fixed link" replacement strategy. Dynamic strategies can be strategies that determine corresponding replacement results based on business data. Dynamic strategies can generally be implemented by calling the interface provided by the business processor.

[0143] After determining the strategy placeholder, the user can select a replacement strategy associated with the current strategy placeholder from a plurality of pre-configured replacement strategies. In the related art, although different users can configure the replacement strategy corresponding to the placeholder according to actual conditions, each user usually develops and maintains the replacement strategy separately, which causes repeated development. In addition, since the users also optimize the replacement strategies they develop later, the maintenance cost of the replacement strategy is high. For example, when the calculation rule corresponding to the replacement strategy changes, each user of the same replacement strategy needs to understand the changed calculation rule, which consumes a lot of manpower.

[0144] In the present disclosure, the configuration server 120 can provide multiple replacement strategies to the configuration terminal. After the user sets the policy placeholder character, he can select the replacement strategy associated with the policy placeholder character from the multiple character replacement strategies displayed by the configuration terminal. By adjusting the association between the policy placeholder character and different pre-provided replacement strategies, the replacement strategy can be reused, and the configuration freedom of the replacement strategy is high, and it is easy to use and saves time.

[0145] For example, users can create or modify the mapping relationship between policy placeholder characters and replacement policies in the page for configuring the terminal, and can also perform a replacement policy search to quickly search for a specific replacement policy. In addition, for policy placeholder characters and replacement policies with a determined mapping relationship, the replacement policies can be operated online, offline, and in grayscale. Among them, the replacement policy that has been offline will not be used for character replacement even when the initial character using the replacement policy is identified; the grayscale operation can be understood as hiding the mapping relationship between the policy placeholder characters and the replacement policy.

[0146] By centrally managing multiple replacement strategies and providing them to each user, the reuse of replacement strategies can be effectively improved, users can avoid repeatedly developing replacement strategies, improve the processing efficiency of character replacement, and reduce the maintenance cost of replacement strategies. Of course, in other examples, users can also customize replacement strategies, that is, use replacement strategies from other sources.

[0147] After completing the replacement strategy configuration for each policy placeholder character, the user can click the preset button to generate a policy configuration template based on the currently configured policy placeholder characters and the replacement strategies corresponding to each policy placeholder character. Figure 4 As shown, the user can configure the replacement strategy of each policy placeholder character in the interface. In response to the detected configuration operation, the configuration terminal can obtain the mapping relationship between each policy placeholder character and the corresponding replacement strategy, and generate a corresponding template configuration request and send it to the configuration server 120.

[0148] In response to the template configuration request sent by the configuration terminal, the configuration server can obtain the corresponding mapping relationship of each policy placeholder character from the template configuration request, and generate a policy configuration template and a target template identifier corresponding to the policy configuration template. When generating the policy configuration template, the replacement strategies corresponding to each policy placeholder character configured by the user form the candidate character replacement strategies in the policy configuration template, and the candidate character replacement strategies in the policy configuration template together constitute a candidate character replacement strategy set.

[0149] After generating the policy configuration template and the target template identifier corresponding to the policy configuration template, the configuration server 120 can return the target template identifier to the configuration terminal, and then when processing the initial business content later, the target template identifier can be added to the initial character replacement request to achieve reuse of the policy configuration template.

[0150] In the present disclosure, the configuration server 120 generates a policy configuration template and a target template identifier corresponding to the policy configuration template, thereby providing a basis for quickly determining a matching target replacement policy based on the target template identifier, facilitating the reuse of replacement policies and the mapping relationship between policy placeholder characters and replacement policy components, and can reduce development costs, save development manpower and maintenance and management costs of replacement policies.

[0151] In an exemplary embodiment, in step S250, obtaining the replaced target service content corresponding to the initial service content based on the target character replacement request may include:

[0152] Determine the business processing party corresponding to the target replacement strategy; send the target character replacement request to the business processing device corresponding to the business processing party, so that the business processing device responds to the target character replacement request and obtains the target character corresponding to the initial character; obtain the target business content obtained by replacing the initial character based on the target character.

[0153] As an example, a business processor may be a business processor that develops, maintains, and executes target replacement strategies. The same business processor may provide one or more replacement strategies for users to use.

[0154] In actual applications, after generating a target character replacement request, the business processing party corresponding to the target replacement strategy can be determined, and the target character replacement request can be sent to the business processing device corresponding to the business processing party. When sending the target character replacement request to the business processing device, the configuration server can send the request by remote call, for example, by RPC (Remote Procedure Call) or gRPC (Google Remote Procedure Call) to call the interface of the business processing device.

[0155] After receiving the target character replacement request, the service processing device can respond to the request and obtain the target character corresponding to the initial character based on the corresponding target replacement strategy. After the service processing device obtains the target character, the configuration server 120 can obtain the target service content corresponding to the target character after the initial character is replaced by the target character, and return the target service content to the terminal 110.

[0156] Specifically, after obtaining the target character, the service processing device may use the target character to replace the initial character in the initial service content to obtain the corresponding target service content, and the service processing device may return the target service content to the configuration server 120. Alternatively, after obtaining the target character, the service processing device may send the target character to the configuration server 120, and the configuration server 120 may use the target character to replace the initial character in the initial service content to obtain the target service content.

[0157] In the present disclosure, by determining the business processing party corresponding to the target replacement strategy and sending the target character replacement request to the business processing device corresponding to the business processing party, the business processing device responds to the target character replacement request and obtains the target character corresponding to the initial character, so that the use of the replacement strategy, as well as the development and maintenance of the replacement strategy can be decoupled from the business. Compared with the traditional technology in which the replacement strategy calculation rules change and each user needs to maintain the replacement strategy, the present disclosure can reduce the user's attention to the internal calculation rules of the replacement strategy through business decoupling, and improve the efficiency of using the replacement strategy. At the same time, since the same replacement strategy for different initial characters can be uniformly executed and maintained by the business processing method, it helps to reduce the maintenance cost of the replacement strategy.

[0158] In an exemplary embodiment, sending the target character replacement request to a service processing device corresponding to the service processing party may include the following steps:

[0159] Determine a pending request set corresponding to the business processing party; add the target character replacement request to the pending request set; when the request trigger condition corresponding to the business processing party is met, send the pending request set to the business processing device corresponding to the business processing party.

[0160] As an example, the pending request set may be a set consisting of one or more target character replacement requests corresponding to the same service processor, and the pending request set stores target character replacement requests waiting to be processed by the service processor.

[0161] The request triggering condition may be a condition for triggering the sending of a processing request set to the business processing device. The request triggering condition may be any one of the following: the number of target character replacement requests in the pending request set reaches a preset number; the pending request set includes target character replacement requests that reach a preset urgency level; the current waiting time of the pending request set has reached a preset threshold. The waiting time may be determined based on the addition time corresponding to the most recently added target character replacement request and the current time.

[0162] In actual applications, since the same business processor can provide one or more different replacement strategies, and in the process of processing the initial business content, multiple replacement strategies provided by the same business processor may be involved, after determining the business processor corresponding to each target replacement strategy, the set of pending requests corresponding to the business processor can be determined. Then, after obtaining the target character replacement request, the target character replacement request can be added to the pending request set of the corresponding business processor. For example, each time a target character replacement request is obtained, it can be added to the pending request set. Then, when the request trigger condition corresponding to the business processing method is met, the pending request set can be sent to the business processing device corresponding to the business processor.

[0163] In the present disclosure, when the request trigger condition corresponding to the business processing party is met, the set of pending requests is sent to the business processing device corresponding to the business processing party, and the target character replacement requests can be aggregated and sent again after aggregation, thereby avoiding multiple calls, reducing access time, reducing the response time of the interface, and improving the access efficiency to the business processing device.

[0164] In an exemplary embodiment, obtaining target service content obtained by replacing the initial character based on the target character may include:

[0165] A character association relationship set returned by a business processing party is obtained, where the character association relationship set is obtained by processing by a business processing device in response to each request in a pending request set; a character association relationship is an association relationship between a placeholder character and a replacement character; an initial character is matched with a placeholder character in the character association relationship, and a character association relationship corresponding to the matched placeholder character is used as a target association relationship corresponding to the initial character; a replacement character in the target association relationship is used as a target character; and the target character is used to replace the initial character in the initial business content to obtain the target business content.

[0166] In actual applications, the business processing equipment of each business processing party responds to each target character replacement request in the set of pending requests, and can obtain the corresponding replacement character based on the target replacement strategy corresponding to each character replacement request, and can associate the replacement character with the placeholder character corresponding to the target replacement strategy to obtain a character association relationship, and then can send a character association relationship set including one or more character association relationships to the configuration server 120.

[0167] After obtaining the character association relationship set, the configuration server can match the initial character in the initial business content with the placeholder character in the character association relationship, and use the character association relationship corresponding to the matched placeholder character as the target association relationship corresponding to the initial character. Then, the replacement character in the target association relationship can be used as the target character corresponding to the initial character, and the target character can be used to replace the initial character in the initial business content to obtain the target business content.

[0168] In the present disclosure, the configuration server 120 obtains the character association relationship set returned by the business processor, matches the initial character with the placeholder character in the character association relationship, obtains the corresponding target association relationship, and uses the replacement character in the target association relationship as the target character, so that accurate character replacement can be achieved when multiple initial characters are included in the initial business content.

[0169] In an exemplary embodiment, when the configuration server 120 performs character replacement on the initial service content sent by each terminal, it can also monitor the processing results of the replacement strategy, such as whether the replacement strategy is successfully executed and the corresponding target character and target service content are obtained. When processing an exception, it can also timely monitor and alarm, so that it can provide feedback to each service processing party based on the monitoring results, so that the service processing party can maintain and optimize the replacement strategy it maintains based on the corresponding monitoring results. In addition, the configuration server 120 can also integrate capabilities such as automated testing to provide possibilities for subsequent expansion.

[0170] In order to enable those skilled in the art to better understand the above steps, the embodiment of the present disclosure is illustrated below by using an example, but it should be understood that the embodiment of the present disclosure is not limited thereto.

[0171] like Figure 5 As shown, the user can interact with the configuration server 120 through the terminal 110 to configure one or more policy placeholder characters. Figure 6 As shown, after setting the policy placeholder characters and their corresponding ones, the associated replacement policies can be determined from the pre-set multiple replacement policies. After the configuration is completed, the configuration server 120 can generate a policy configuration template and a corresponding target template identifier based on the received information.

[0172] When replacing characters in the initial service content, the terminal 110 may generate an initial character replacement request, and after adding a target template identifier in the request, send the initial character replacement request to the configuration server 120. After receiving the initial character replacement request, the configuration server may obtain a corresponding policy configuration template according to the target template identifier, and determine a target replacement policy corresponding to the initial characters in the initial service content according to a mapping relationship between placeholder characters in the policy configuration template and the replacement policy, and generate a corresponding target character replacement request.

[0173] After obtaining the target character replacement requests corresponding to each target replacement strategy, multiple target character replacement requests can be aggregated. For example, for the speech templates for the two usage scenarios of live video and pictures, corresponding replacement strategies are provided by two different business processing parties respectively, where replacement strategy 1 and replacement strategy 2 are developed and maintained by business processing party A, and replacement strategy 3 is developed and maintained by business processing party B. Then, through gRPC, the target character replacement requests corresponding to replacement strategy 1 and replacement strategy 2 can be aggregated into a corresponding set of pending requests and sent to the business processing device corresponding to business processing party A; and the target character replacement request corresponding to replacement strategy 3 is sent to the business processing device corresponding to business processing party B.

[0174] After receiving the target character replacement request, the business processing device corresponding to business processing party A and the business processing device corresponding to business processing party B can obtain replacement character 1, replacement character 2 and replacement character 3 based on the parameters and the corresponding target replacement strategy, and send the character association relationship between each replacement character and the placeholder character to the configuration server 120, so that the configuration server can replace each initial character in the initial business content one by one based on the character association relationship to obtain the target business content.

[0175] It should be understood that although Figure 2 , Figure 3 and Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , Figure 3 and Figure 5 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0176] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.

[0177] Figure 7 is a block diagram of a service content processing device 700 according to an exemplary embodiment. Figure 7 The device includes an initial request receiving unit 701, an initial character recognition unit 702, a target strategy determination unit 703, a target request acquisition unit 704 and a target content acquisition unit 705.

[0178] The initial request receiving unit 701 is configured to receive an initial character replacement request for initial business content to be processed;

[0179] The initial character recognition unit 702 is configured to determine the initial character to be replaced corresponding to the initial service content in response to the initial character replacement request;

[0180] A target strategy determining unit 703 is configured to determine a target replacement strategy corresponding to the initial character from a set of candidate character replacement strategies;

[0181] The target request acquisition unit 704 is configured to perform a request type conversion on the initial character replacement request based on the target replacement strategy to obtain a target character replacement request corresponding to the target replacement strategy; the target character replacement request is used to request that the initial character be replaced with a target character corresponding to the target replacement strategy;

[0182] The target content acquisition unit 705 is configured to acquire the replaced target service content corresponding to the initial service content based on the target character replacement request, wherein the initial characters in the target service content are replaced with the target characters.

[0183] In an exemplary embodiment, the target request acquisition unit is configured to execute:

[0184] Determine target parameter description information corresponding to the target replacement strategy, where the target parameter description information is used to describe a replacement character type corresponding to the initial character;

[0185] Determine initial parameter description information corresponding to the initial character in the initial character replacement request;

[0186] The initial parameter description information in the initial character replacement request is replaced by the target parameter description information to obtain a target character replacement request corresponding to the target replacement strategy.

[0187] In an exemplary embodiment, the target policy determination unit is configured to execute:

[0188] Extracting a target template identifier corresponding to the initial character from the initial character replacement request; the target template identifier is an identifier corresponding to a pre-configured candidate character replacement strategy set;

[0189] A target replacement strategy corresponding to the initial character is determined from the candidate character replacement strategy set corresponding to the target template identifier.

[0190] In an exemplary embodiment, the apparatus further comprises:

[0191] a character set sending unit, configured to send a candidate placeholder character set to a configuration terminal, so that the configuration terminal displays the candidate placeholder character set in one or more policy configuration items, and in response to a placeholder character selection operation for the policy configuration item, use the candidate placeholder character selected by the placeholder character selection operation as a policy placeholder character corresponding to the policy configuration item;

[0192] The template configuration request response unit is configured to execute a response to the template configuration request sent by the configuration terminal, generate a policy configuration template and the target template identifier corresponding to the policy configuration template, and the replacement strategies corresponding to each of the policy placeholder characters form a candidate character replacement strategy in the policy configuration template.

[0193] In an exemplary embodiment, the target content acquisition unit includes:

[0194] A processing party determination module, configured to determine the business processing party corresponding to the target replacement strategy;

[0195] a request sending module, configured to execute sending the target character replacement request to a business processing device corresponding to the business processing party, so that the business processing device responds to the target character replacement request and obtains the target character corresponding to the initial character;

[0196] The target content determination module is configured to execute the acquisition of the target business content obtained by replacing the initial character based on the target character.

[0197] In an exemplary embodiment, the request sending module is configured to execute:

[0198] Determine a set of pending requests corresponding to the business processor;

[0199] Adding the target character replacement request to the set of pending requests;

[0200] When the request triggering condition corresponding to the business processor is met, the set of requests to be processed is sent to the business processing device corresponding to the business processor.

[0201] In an exemplary embodiment, the target content determination module is configured to execute:

[0202] Acquire a character association relationship set returned by the business processing party, wherein the character association relationship set is obtained by the business processing device in response to each request in the request set to be processed; the character association relationship is an association relationship between a placeholder character and a replacement character;

[0203] Matching the initial character with a placeholder character in the character association relationship, and using the character association relationship corresponding to the matched placeholder character as the target association relationship corresponding to the initial character;

[0204] Using the replacement character in the target association relationship as the target character;

[0205] The target characters are used to replace the initial characters in the initial service content to obtain the target service content.

[0206] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0207] Figure 8 8 is a block diagram of an electronic device 800 for executing the business content processing method according to an exemplary embodiment. For example, the electronic device 800 may be a server. Figure 8 , the electronic device 800 includes a processing component 820, which further includes one or more processors, and a memory resource represented by a memory 822 for storing instructions executable by the processing component 820, such as an application. The application stored in the memory 822 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 820 is configured to execute the instructions to perform the above method.

[0208] The electronic device 800 may further include a power supply component 824 configured to perform power management of the electronic device 800, a wired or wireless network interface 826 configured to connect the electronic device 800 to a network, and an input / output (I / O) interface 828. The electronic device 800 may operate based on an operating system stored in the memory 822, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or the like.

[0209] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 822 including instructions, and the above instructions can be executed by a processor of the electronic device 800 to perform the above method. The storage medium can be a computer-readable storage medium, for example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0210] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions. The instructions can be executed by a processor of the electronic device 800 to complete the above method.

[0211] It should be noted that the above-mentioned devices, electronic devices, computer-readable storage media, computer program products, etc. may also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments, which will not be described one by one here.

[0212] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0213] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A business content processing method, characterized in that: include: receiving an initial character replacement request for initial business content to be processed; In response to the initial character replacement request, determining the initial character to be replaced corresponding to the initial service content; Determining a target replacement strategy corresponding to the initial character from a set of candidate character replacement strategies; Based on the target replacement strategy, the initial character replacement request is converted into a request type to obtain a target character replacement request corresponding to the target replacement strategy; the target character replacement request is used to request that the initial character be replaced with a target character corresponding to the target replacement strategy; The replaced target business content corresponding to the initial business content is acquired based on the target character replacement request, and the initial characters in the target business content are replaced with the target characters.

2. The method according to claim 1, characterized in that The converting the request type of the initial character replacement request based on the target replacement strategy to obtain a target character replacement request corresponding to the target replacement strategy includes: Determine target parameter description information corresponding to the target replacement strategy, where the target parameter description information is used to describe a replacement character type corresponding to the initial character; Determine initial parameter description information corresponding to the initial character in the initial character replacement request; The initial parameter description information in the initial character replacement request is replaced by the target parameter description information to obtain a target character replacement request corresponding to the target replacement strategy.

3. The method according to claim 1, characterized in that Determining a target replacement strategy corresponding to the initial character from a set of candidate character replacement strategies includes: Extracting a target template identifier corresponding to the initial character from the initial character replacement request; the target template identifier is an identifier corresponding to a pre-configured candidate character replacement strategy set; A target replacement strategy corresponding to the initial character is determined from the candidate character replacement strategy set corresponding to the target template identifier.

4. The method according to claim 3, characterized in that The method further comprises: Sending a candidate placeholder character set to a configuration terminal so that the configuration terminal displays the candidate placeholder character set in one or more policy configuration items, and in response to a placeholder character selection operation for the policy configuration item, using the candidate placeholder character selected by the placeholder character selection operation as the policy placeholder character corresponding to the policy configuration item; In response to the template configuration request sent by the configuration terminal, a policy configuration template and the target template identifier corresponding to the policy configuration template are generated, and the replacement strategies corresponding to the respective policy placeholder characters form candidate character replacement strategies in the policy configuration template.

5. The method according to claim 1, characterized in that The obtaining, based on the target character replacement request, the replaced target service content corresponding to the initial service content includes: Determine a business processing party corresponding to the target replacement strategy; Sending the target character replacement request to a business processing device corresponding to the business processing party, so that the business processing device responds to the target character replacement request and obtains the target character corresponding to the initial character; The target business content is obtained by replacing the initial character based on the target character.

6. The method according to claim 5, characterized in that The step of sending the target character replacement request to a service processing device corresponding to the service processing party includes: Determine a set of pending requests corresponding to the business processor; Adding the target character replacement request to the set of requests to be processed; When the request triggering condition corresponding to the business processor is met, the set of requests to be processed is sent to the business processing device corresponding to the business processor.

7. The method according to claim 6, characterized in that The step of obtaining the target service content obtained by replacing the initial character with the target character includes: Acquire a character association relationship set returned by the business processing party, wherein the character association relationship set is obtained by the business processing device in response to each request in the request set to be processed; the character association relationship is an association relationship between a placeholder character and a replacement character; Matching the initial character with a placeholder character in the character association relationship, and using the character association relationship corresponding to the matched placeholder character as the target association relationship corresponding to the initial character; Using the replacement character in the target association relationship as the target character; The target characters are used to replace the initial characters in the initial service content to obtain the target service content.

8. A business content processing device, characterized in that: include: An initial request receiving unit, configured to receive an initial character replacement request for initial business content to be processed; an initial character recognition unit, configured to determine the initial character to be replaced corresponding to the initial service content in response to the initial character replacement request; a target strategy determination unit, configured to determine a target replacement strategy corresponding to the initial character from a set of candidate character replacement strategies; a target request acquisition unit configured to perform a request type conversion on the initial character replacement request based on the target replacement strategy to obtain a target character replacement request corresponding to the target replacement strategy; the target character replacement request is used to request that the initial character be replaced with a target character corresponding to the target replacement strategy; The target content acquisition unit is configured to acquire the replaced target business content corresponding to the initial business content based on the target character replacement request, wherein the initial characters in the target business content are replaced with the target characters.

9. The device according to claim 8, characterized in that The target request acquisition unit is configured to execute: Determine target parameter description information corresponding to the target replacement strategy, where the target parameter description information is used to describe a replacement character type corresponding to the initial character; Determine initial parameter description information corresponding to the initial character in the initial character replacement request; The initial parameter description information in the initial character replacement request is replaced by the target parameter description information to obtain a target character replacement request corresponding to the target replacement strategy.

10. The device according to claim 8, characterized in that The target strategy determination unit is configured to execute: Extracting a target template identifier corresponding to the initial character from the initial character replacement request; the target template identifier is an identifier corresponding to a pre-configured candidate character replacement strategy set; A target replacement strategy corresponding to the initial character is determined from the candidate character replacement strategy set corresponding to the target template identifier.

11. The device according to claim 10, characterized in that The device also includes: a character set sending unit, configured to send a candidate placeholder character set to a configuration terminal, so that the configuration terminal displays the candidate placeholder character set in one or more policy configuration items, and in response to a placeholder character selection operation for the policy configuration item, use the candidate placeholder character selected by the placeholder character selection operation as a policy placeholder character corresponding to the policy configuration item; The template configuration request response unit is configured to execute a response to the template configuration request sent by the configuration terminal, generate a policy configuration template and the target template identifier corresponding to the policy configuration template, and the replacement strategies corresponding to each of the policy placeholder characters form a candidate character replacement strategy in the policy configuration template.

12. The device according to claim 8, characterized in that The target content acquisition unit includes: A processing party determination module, configured to determine the business processing party corresponding to the target replacement strategy; a request sending module, configured to execute sending the target character replacement request to a business processing device corresponding to the business processing party, so that the business processing device responds to the target character replacement request and obtains the target character corresponding to the initial character; The target content determination module is configured to execute the acquisition of the target business content obtained by replacing the initial character based on the target character.

13. The device according to claim 12, characterized in that The request sending module is configured to execute: Determine a set of pending requests corresponding to the business processor; Adding the target character replacement request to the set of requests to be processed; When the request triggering condition corresponding to the business processor is met, the set of requests to be processed is sent to the business processing device corresponding to the business processor.

14. The device according to claim 13, characterized in that The target content determination module is configured to execute: Acquire a character association relationship set returned by the business processing party, wherein the character association relationship set is obtained by the business processing device in response to each request in the request set to be processed; the character association relationship is an association relationship between a placeholder character and a replacement character; Matching the initial character with a placeholder character in the character association relationship, and using the character association relationship corresponding to the matched placeholder character as the target association relationship corresponding to the initial character; Using the replacement character in the target association relationship as the target character; The target characters are used to replace the initial characters in the initial service content to obtain the target service content.

15. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the service content processing method according to any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the service content processing method according to any one of claims 1 to 7.

17. A computer program product, comprising instructions, characterized in that: When the instruction is executed by a processor of an electronic device, the electronic device is enabled to execute the service content processing method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data synchronization method and device, computing device and computer storage medium

    CN109165200A

  • Business data processing method and device based on decision tree, equipment and storage medium

    CN113806594A