Information configuration method and device
The information configuration method addresses inefficiencies in e-commerce platforms by using a preset parsing strategy to automatically set configuration information, ensuring consistency and reducing manual intervention, thereby enhancing efficiency and accuracy in data processing.
Patent Information
- Application Number
- CN202210143336.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-16
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2042-02-16
AI Technical Summary
Existing e-commerce platforms face inefficiencies and increased error risks due to manual intervention in processing inconsistent data messages from multiple channels, leading to higher workloads and reduced efficiency in configuring configuration information.
An information configuration method that utilizes a preset parsing strategy to automatically parse data messages and set configuration information based on field information, eliminating the need for manual proofreading and ensuring consistency between data and configuration information.
This method enhances efficiency and reduces configuration risks by ensuring automatic consistency, enabling fast and accurate access to configuration information, thus improving the timeliness and stability of data processing.
Smart Images

Figure CN114500691B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present specification relate to the field of computer technology, and in particular to an information configuration method. Background Art
[0002] With the rapid development of computer technology and Internet technology, various online services have emerged one after another, among which e-commerce services are the most popular. The platforms of e-commerce services usually need to access a large amount of configuration information from multiple channels as a benchmark and reference for displaying resources to users.
[0003] In the prior art, when accessing a configuration information, it is necessary to obtain the field information composition of the configuration information and save the configuration information that is strictly consistent with it. However, due to the inconsistency of the data messages returned by various channels, manual intervention is required to adjust the field information in the data message; and with the large-scale development of e-commerce services, more and more configuration information is accessed, and the greater the workload of manual intervention, the higher the possibility of access errors and the lower the efficiency. Therefore, an effective solution is urgently needed to solve the above problems. Summary of the invention
[0004] In view of this, the present specification provides an information configuration method. One or more embodiments of the present specification also relate to an information configuration device, a computing device, a computer-readable storage medium and a computer program to solve the technical defects existing in the prior art.
[0005] According to a first aspect of an embodiment of this specification, there is provided an information configuration method, including:
[0006] Receive data packets sent by the target server;
[0007] Utilizing the preset parsing strategy corresponding to the target server, the data message is parsed to obtain the field information of the target data;
[0008] Based on the field information of the target data, configuration information of the target data is set.
[0009] Optionally, the using a preset parsing strategy corresponding to the target server to parse the data message to obtain field information of the target data includes:
[0010] Determine the parsing strategy corresponding to the target server;
[0011] Parsing the data message using the parsing strategy to determine the message format of the data message;
[0012] Based on the message format, field information of the target data is extracted from the data message.
[0013] Optionally, setting the configuration information of the target data based on the field information of the target data includes:
[0014] Get the preset configuration information template;
[0015] The field information of the target data is added to the configuration information template to obtain the configuration information of the target data.
[0016] Optionally, there are multiple configuration information;
[0017] After setting the configuration information of the target data based on the field information of the target data, the method further includes:
[0018] Get the first scene identifier;
[0019] Determine target configuration information corresponding to the first scene identifier from the multiple configuration information.
[0020] Optionally, obtaining the first scene identifier includes:
[0021] A plurality of the configuration information is displayed on a display page, and a selection instruction is received through the display page, wherein the selection instruction carries a first scene identifier.
[0022] Optionally, before receiving the data message sent by the target server, the method further includes:
[0023] receiving an information configuration request, wherein the information configuration request carries an information identifier;
[0024] generating an information request message for the target data based on the information identifier;
[0025] The information request message is sent to the target server.
[0026] Optionally, the information identifier includes a service identifier;
[0027] The generating the information request message for the target data based on the information identifier includes:
[0028] Determine a target request format corresponding to the service identifier from a preset request format library;
[0029] An information request message for the target data is generated according to the target request format and the service identifier.
[0030] Optionally, the information identifier includes a service identifier, a resource identifier and a second scenario identifier;
[0031] The generating the information request message for the target data based on the information identifier includes:
[0032] Obtaining the target request format corresponding to the service identifier;
[0033] Determine a target request message template according to the target request format and the second scenario identifier;
[0034] The service identifier, the resource identifier and the second scenario identifier are added to the target request message template to generate an information request message for the target data.
[0035] Optionally, after setting the configuration information of the target data based on the field information of the target data, the method further includes:
[0036] receiving a data processing request, wherein the data processing request carries initial configuration data;
[0037] According to the configuration information, performing data conversion on the initial configuration data to obtain target configuration data;
[0038] The target configuration data is fed back.
[0039] According to a second aspect of the embodiments of this specification, there is provided an information configuration device, including:
[0040] A receiving module, configured to receive a data message sent by a target server;
[0041] A parsing module is configured to parse the data message using a preset parsing strategy corresponding to the target server to obtain field information of the target data;
[0042] The setting module is configured to set the configuration information of the target data based on the field information of the target data.
[0043] According to a third aspect of an embodiment of this specification, a computing device is provided, including:
[0044] Memory and processor;
[0045] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned information configuration method are implemented.
[0046] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned information configuration method are implemented.
[0047] According to a fifth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned information configuration method.
[0048] An embodiment of the present specification receives a data message sent by a target server; uses a preset parsing strategy corresponding to the target server to parse the data message to obtain field information of the target data; and sets the configuration information of the target data based on the field information of the target data. By parsing the data message to determine the field information, and then setting the configuration information, the configuration information is automatically consistent with the field information of the data message, and the situation where the configuration information cannot be stored and used due to inconsistency between the data message and the configuration information will not occur, eliminating the process of manual proofreading, improving the efficiency of information configuration, reducing the configuration risk of configuration information, and achieving fast and accurate access to the target server data message, that is, the configuration information, providing a more efficient and stable information configuration method. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A flowchart of an information configuration method in the prior art provided in this specification is shown;
[0050] Figure 2 is a flow chart of an information configuration method provided by an embodiment of this specification;
[0051] Figure 3A is a processing flow chart of an information configuration method provided by an embodiment of this specification;
[0052] Figure 3B is a processing flow chart of another information configuration method provided by an embodiment of this specification;
[0053] Figure 4 It is a structural schematic diagram of an information configuration device provided by an embodiment of this specification;
[0054] Figure 5 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0055] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0056] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0057] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0058] First, the terms involved in one or more embodiments of this specification are explained.
[0059] Channel: All institutions that provide exchange rates to the quotation center are considered source exchange rate channels.
[0060] Scenario code: When sending an exchange rate inquiry request to a channel, a code will be attached to indicate the scenario in which the exchange rate for this inquiry is used. The channel will return different exchange rates based on the code. This code that identifies the scenario is called the scenario code.
[0061] In this specification, an information configuration method is provided. This specification also relates to an information configuration device, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0062] Then, the information configuration method of one or more embodiments of this specification is briefly described.
[0063] With the rapid development of computer technology and Internet technology, various online services have emerged one after another, among which e-commerce services are the most popular. The platforms of e-commerce services usually need to access a large amount of configuration information from multiple channels as a benchmark and reference for displaying resources to users.
[0064] In the prior art, access is generally done by manual creation and manual proofreading, that is, institutional exchange rate access is done by manually creating configuration information and manually proofreading. For details, see Figure 1 , Figure 1A flow chart of an information configuration method in the prior art provided in this specification is shown: first, based on the configuration information that needs to be consulted, the configuration information and the consultation script are created manually, and the consultation format refers to the format agreed upon with the organization. Then the consultation script is executed to consult the organization for configuration information, that is, to drive the configuration and trigger the configuration information query. After the organization returns the data message, the received data message is manually parsed to obtain the feedback configuration information, and the feedback configuration information is manually proofread with the created configuration information to determine whether the configuration information strictly matches. If not, modify the created configuration information, re-drive the configuration, and trigger the configuration information query; if so, store the configuration information in the database, so that the corresponding configuration information can be stored and used normally.
[0065] However, the above method is applicable to scenarios where multiple institutional channels need to be accessed and the access formats of various institutions are inconsistent. Manual access and manual proofreading can give full play to the operator's expert experience and build corresponding configuration information for complex access scenarios, which can meet the needs of complex scenarios. However, since the proofreading and setting of configuration information rely on manual operations, there are proofreading errors and mismatches, and in scenarios where a large number of institutional configuration information needs to be accessed, the manpower required will increase significantly with the amount of access configuration information. However, due to the inconsistency of the data messages or field information returned by each channel, manual intervention is required to adjust the format; and with the large-scale development of e-commerce services, more and more configuration information is accessed, and the greater the workload required for manual intervention, the higher the possibility of access errors and the lower the efficiency.
[0066] In addition, the above method requires the pre-entry of the message format information of the corresponding configuration information before consulting each configuration information. Currently, the parsing of data messages and the preservation of configuration information require manual proofreading and entry, which seriously wastes human resources and has the potential problem of proofreading errors. In the context of large-scale development, there is a huge demand for channel access, which also puts forward higher requirements for channel access timeliness and stability.
[0067] Therefore, the present specification provides an information configuration method, which receives a data message sent by a target server; uses a preset parsing strategy corresponding to the target server to parse the data message to obtain field information of the target data; and sets the configuration information of the target data based on the field information of the target data. By parsing the data message to determine the field information, and then setting the configuration information, the configuration information is automatically consistent with the field information of the data message, and the configuration information will not be inconsistent with the data message and the configuration information. The configuration information cannot be stored in the database and used, which eliminates the process of manual proofreading, improves the efficiency of information configuration, reduces the configuration risk of configuration information, and realizes the target server data message, that is, the rapid and accurate access of the configuration information, providing a more efficient and stable information configuration method.
[0068] See also Figure 2 , Figure 2 A flowchart of an information configuration method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.
[0069] Step 202: Receive a data message sent by the target server.
[0070] Specifically, the target server refers to any server that provides data packets to the local, which can be an organization, a web page, a channel, etc. The data packet refers to the packet carrying the field information of the target data provided by the target server to the local, that is, the data packet carries the field information of the target data.
[0071] In a possible implementation of the embodiments of the present specification, when the field information of the target data changes on the target server, the target server can generate a data message based on the changed field information of the target data, and actively send the data message to the local, that is, receive the data message sent by the target server.
[0072] In another possible implementation of the embodiments of the present specification, when the local is triggered to obtain a data message, a request is generated and then sent to the target server. After receiving the request, the target server feeds back the local data message, that is, receives the data message sent by the target server.
[0073] In order to determine that the data message sent by the target server is needed by the local side, and to reduce the target server from sending data messages when there is no local demand, the local side can actively send a request to the target server to obtain the data message, that is, before receiving the data message sent by the target server, it also includes:
[0074] receiving an information configuration request, wherein the information configuration request carries an information identifier;
[0075] generating an information request message for the target data based on the information identifier;
[0076] The information request message is sent to the target server.
[0077] Specifically, target data refers to a general term for a certain type of data corresponding to configuration information; an information configuration request refers to an instruction received locally that requires configuration of certain information, which may be a request triggered by a user's operation, or a request automatically triggered by a program based on certain conditions, and this application does not limit this; an information identifier refers to an identifier that represents the information to be configured, which may be the name, label, etc. of the information; an information request message is a request to the target server for certain data or information.
[0078] In actual applications, based on user operations or automatic program triggering, the local receives an information configuration request carrying an information identifier, and in response to the information configuration request, the local generates an information request message for the target data based on the information identifier, and then sends the information request message to the target server through the network or other means, so that the target server can feedback the data message after receiving the information request message. In this way, the local generates an information request message to request a data message from the target server, which not only avoids receiving the data message sent by the target server when the local does not need information configuration, and reduces energy loss to a certain extent, but also enables the server to feedback the data message based on the information request message, ensuring the accuracy of the data message, thereby improving the efficiency of information configuration.
[0079] In a possible implementation of the embodiments of this specification, the information identifier may include a service identifier. In this case, the target request format may be determined according to the service identifier, and then the information request message may be generated based on the target request format. That is, when the information identifier includes the service identifier, the information request message for the target data is generated based on the information identifier. The specific implementation process may be as follows:
[0080] Determine a target request format corresponding to the service identifier from a preset request format library;
[0081] An information request message for the target data is generated according to the target request format and the service identifier.
[0082] Specifically, the service identifier refers to an identifier that represents the server, such as the name, name abbreviation, address, etc. of the server. It is also an identifier that represents a request format, such as the code of the request format; the request format library is a pre-set warehouse that stores multiple request formats, in which the request formats correspond one-to-one to the service identifiers; the target request format is a request format pre-agreed by the target server.
[0083] In actual applications, the local and each server pre-agree on the request format, and then the local associates the request format with the service identifier of the server corresponding to the request format, and stores the request format in a preset request format library. In the case of receiving an information configuration request carrying an information identifier, the service identifier contained in the information identifier is matched with each request format in the request format library, and the request format that successfully matches is determined as the target request format. Then, an information request message for the target data is generated based on the information identifier and the target request format, that is, based on the target request format and the service identifier, an information request message for the target data is generated. In this way, the target request format agreed with the target server is determined by using the service identifier, which can effectively ensure that the information request message generated based on the target request format can be received, identified and responded by the target server, further improving the efficiency of obtaining data messages, thereby improving the efficiency of information configuration. In addition, the information request message generated using the agreed target request format can also ensure the security of the information request message during the transmission process.
[0084] For example, there are three request formats in the preset request format library, wherein the service identifier corresponding to the first request format is A, the service identifier corresponding to the second request format is B, and the service identifier corresponding to the third request format is C. If the service identifier included in the information identifier is B, the second request format can be obtained from the preset request format library according to the service identifier B. Further, based on the second request format and the information identifier, an information request message for the target data is generated.
[0085] In a possible implementation of the embodiments of this specification, the information identifier includes a service identifier, a resource identifier, and a second scenario identifier. In this case, the target request format can be determined according to the service identifier, and then the target request message template can be determined based on the target request format and the second scenario identifier, and then the information request message is generated based on the target request message template. That is, in the case where the information identifier includes a service identifier, a resource identifier, and a second scenario identifier, the information request message for the target data is generated based on the information identifier. The specific implementation process can be as follows:
[0086] Obtaining the target request format corresponding to the service identifier;
[0087] Determine a target request message template according to the target request format and the second scenario identifier;
[0088] The service identifier, the resource identifier and the second scenario identifier are added to the target request message template to generate an information request message for the target data.
[0089] Specifically, the service identifier refers to an identifier that represents the server, such as the name, name abbreviation, address, etc. of the server, and is also an identifier that represents a certain request format, such as the code of the request format; the resource identifier can be an identifier of the resource corresponding to the configuration information, for example, if the configuration information is the exchange rate configuration, then the resource identifier is the identifier of the exchange rate configuration for a certain currency pair; the second scenario identifier is an identifier that represents the scenario, which can be a scenario name, scenario code, scenario code, etc.; the target request format is a request format pre-agreed by the target server; the target request message template refers to a fixed format for generating an information request message.
[0090] In practical applications, when an information configuration request carrying an information identifier is received, the target request format can be obtained from the target server based on the service identifier in the information identifier, and the target request format can also be found from the locally preset request format library based on the service identifier in the information identifier. Then, according to the target request format and the second scenario identifier, the target request message template is determined: the request message template library corresponding to the target request format can be determined first, and then the target request message template corresponding to the second scenario identifier is determined from the request message template library; the request message template library corresponding to the second scenario identifier can also be determined first, and then the target request message template that conforms to the target request format is selected from the request message template library. Further, the information identifier, that is, the service identifier, the resource identifier and the second scenario identifier are added to the corresponding positions in the target request message template respectively to obtain the information request message for the target data. In this way, it can effectively ensure that the information request message generated based on the request message template can be received, identified and responded by the target server, further improving the efficiency of obtaining data messages, thereby improving the efficiency of information configuration. In addition, the information request message generated using the agreed request message template can also ensure the security of the information request message during the transmission process.
[0091] Step 204: parse the data message using the preset parsing strategy corresponding to the target server to obtain field information of the target data.
[0092] On the basis of receiving the data message sent by the target server, further, the data message is parsed using a preset parsing strategy corresponding to the target server to obtain field information of the target data.
[0093] Specifically, parsing strategy refers to the methods, means, principles, etc. for parsing data messages; a field is a smaller unit than a record, and a set of fields constitutes a record. Each field describes a certain feature of the document, namely a data item, and has a unique field identifier for computer recognition; field information refers to the content of the field or the information that the field points to.
[0094] In actual applications, multiple parsing strategies are pre-set locally. Each parsing strategy corresponds to one or more servers, and each server can correspond to a parsing strategy. In this way, when a data message sent by a server is obtained, the parsing strategy corresponding to the server can be used to parse the data message sent by the server. That is, after receiving the data message sent by the target server, the local first obtains the parsing strategy corresponding to the target server, and then parses the data message according to the parsing strategy, and then obtains the parsing result, which contains the field information of the target data.
[0095] Optionally, in order to improve the parsing efficiency, the parsing strategy may be determined first, and then the message format of the data message may be determined using the parsing strategy, and then the field information may be extracted based on the message format, that is, the data message may be parsed using the preset parsing strategy corresponding to the target server to obtain the field information of the target data. The specific implementation process may be as follows:
[0096] Determine the parsing strategy corresponding to the target server;
[0097] Parsing the data message using the parsing strategy to determine the message format of the data message;
[0098] Based on the message format, field information of the target data is extracted from the data message.
[0099] Specifically, the message format refers to the framework, template, etc. of the data message.
[0100] In actual applications, after receiving the data message sent by the target server, the parsing strategy corresponding to the target server can be determined from the preset parsing strategy library, and then the data message is parsed according to the parsing strategy to determine the message format of the data message. Further, based on the correspondence between the message format and the data message, the field information of the target data is extracted from the data message. In this way, not only the speed of determining the field information can be improved, but also the accuracy of the field information can be guaranteed, thereby improving the efficiency of information configuration.
[0101] For example, if the data message is "A Mathematics 50min%% B Chinese ***~20min++C Geography###30min", and the parsing strategy corresponding to the determined target server is "delete the symbols %, *, ~, + in the data message", then the parsed data message is "A Mathematics 50minB Chinese 20minC Geography 30min", and the corresponding message format of this data message is "A Field Information 1 B Fields Information 2 C Field information 3", according to the message format, field information 1 "Mathematics 50min", field information 2 "Chinese 20min" and field information 3 "Geography 30min" can be extracted from the parsed data message "A Mathematics 50min B Chinese 20min C Geography 30min".
[0102] Step 206: Based on the field information of the target data, set the configuration information of the target data.
[0103] On the basis of parsing the data message by using the preset parsing strategy corresponding to the target server to obtain the field information of the target data, further, the configuration information of the target data can be set based on the field information of the target data.
[0104] Specifically, configuration information refers to information for configuring certain data, such as exchange rate configuration, conversion configuration, etc.
[0105] In practical applications, after obtaining the field information of the target data, the field information of the target data can be formatted to set the configuration information of the target data, or the field information of the target data can be set based on a preset format to obtain the configuration information of the target data.
[0106] In a possible implementation manner of the embodiments of the present specification, in order to improve the efficiency and accuracy of setting configuration information, a configuration information template may be first determined, and then the configuration information of the target data is determined based on the field information of the target data and the configuration information template, that is, the configuration information of the target data is set based on the field information of the target data. The specific implementation process may be as follows:
[0107] Get the preset configuration information template;
[0108] The field information of the target data is added to the configuration information template to obtain the configuration information of the target data.
[0109] Specifically, the configuration information template refers to a fixed format or a fixed framework for setting configuration information.
[0110] In actual applications, after parsing the data message and obtaining the field information of the target data, a pre-set configuration information template can be obtained first. The configuration information template can be a common template for all configuration information pre-set locally, that is, the same configuration information template is used for the field information in the data message sent by different servers; it can also be a configuration information template set for different servers, that is, different configuration information templates are used for the field information in the data message sent by different servers; it can also be different configuration information templates for different types of target data. Then, according to the configuration information template, the field information of the target data is added to the configuration information template to obtain the configuration information of the target data. In this way, adding the field information of the target data to the configuration information template to obtain the configuration information of the target data can not only improve the speed of setting the configuration information, but also improve the accuracy of the configuration information.
[0111] For example, the configuration information template obtained is "Configuration+ Field Information ", the field information of the target data is "5 percent". Then the field information of the target data is added to the configuration information template to obtain "configuration + 5 percent", that is, the configuration information of the target data.
[0112] In actual applications, when there are multiple fields in the target data, multiple configuration information will be generated. Using the above example, the configuration information template obtained is "Configuration + Field Information ", the field information of the target data includes three field information, namely "5 percent", "70 percent", and "80 percent". Then the field information of the target data is added to the configuration information template respectively to obtain the first configuration information "configuration + 5 percent", the second configuration information "configuration + 70 percent" and the third configuration information "configuration N + 80 percent", that is, the configuration information of multiple target data.
[0113] In a possible implementation manner of the embodiment of the present specification, when there is only one configuration information, the configuration information can be determined as the target configuration information; when there are multiple configuration information, it is necessary to filter out the target configuration information from the multiple configuration information, that is, based on the field information of the target data, after setting the configuration information of the target data, it also includes:
[0114] Get a first scene identifier;
[0115] Determine target configuration information corresponding to the first scene identifier from the multiple configuration information.
[0116] Specifically, the first scene identifier is an identifier that represents the scene to which the configuration information is applied, and may be a scene name, a scene code, a scene code, and the like.
[0117] In actual applications, after obtaining multiple configuration information of the target data, in order to select the target configuration information that meets the preset conditions from the multiple configuration information, that is, to select the target configuration information that matches the first scene identifier, the first scene identifier can be obtained. The first scene identifier can be a scene identifier selected by the user from multiple scene identifiers according to needs, or it can be a local scene identifier that is pre-received and stored. Further, the scene identifier is matched with each configuration information, and the configuration information that successfully matches is determined as the target configuration information. Afterwards, the target configuration information can be stored, and the target configuration information can also be stored in association with the first scene identifier, and the target configuration information can also be used to update historical configuration information. In this way, determining the target configuration information based on the first scene identifier can improve the efficiency and accuracy of determining the target configuration information.
[0118] It should be noted that compared with the second scene identifier, the scene range represented by the first scene identifier is wider than the scene range represented by the second scene identifier, that is, the scene range represented by the second scene identifier belongs to the scene range represented by the first scene identifier. For example, the scene represented by the first scene identifier is an intelligent computing device, and the scene represented by the second scene identifier is a smartphone among intelligent computing devices.
[0119] In addition, multiple configuration information can also be displayed to the user through a display page, and the user can select target configuration information from the multiple configuration information according to scene requirements, that is, the local target configuration selection operation is performed to determine the target configuration information.
[0120] In a possible implementation of the embodiment of this specification, the first scene identifier may be received based on the display page, that is, the specific implementation process of obtaining the first scene identifier may be as follows:
[0121] A plurality of the configuration information is displayed on a display page, and a selection instruction is received through the display page, wherein the selection instruction carries a first scene identifier.
[0122] Specifically, the business exhibition page may be a page displayed to local users, such as a display, a web page, etc.; the selection instruction refers to an instruction triggered based on a user's selection operation.
[0123] In actual applications, after determining multiple configuration information, the local device can display multiple configuration information on the display page for users to view and select. Then the display page also displays the scene identifiers corresponding to each configuration information. The user selects the corresponding scene identifier on the display page, that is, the first scene identifier. After clicking confirm, the local device receives the selection instruction carrying the first scene identifier through the display page. In this way, the interaction between the display page and the user can be improved, and the first scene identifier can be obtained based on the selection instruction corresponding to the user, which can improve the accuracy of the first scene identifier, thereby improving the accuracy of the target configuration information determined based on the first scene identifier.
[0124] The purpose of obtaining configuration information is to process data based on the configuration information. Therefore, after obtaining the configuration information, if the data to be configured, that is, the initial configuration data, is received, the initial configuration data needs to be processed based on the configuration information. That is, after setting the configuration information of the target data based on the field information of the target data, it also includes:
[0125] receiving a data processing request, wherein the data processing request carries initial configuration data;
[0126] According to the configuration information, performing data conversion on the initial configuration data to obtain target configuration data;
[0127] The target configuration data is fed back.
[0128] Specifically, the initial configuration data refers to data that belongs to the target data and needs to be configured. For example, if the target data is weight data, the initial configuration data can be specific weight data, such as 5 kilograms; if the target data is virtual currency, the initial configuration data can be a specific amount of virtual currency, such as 10 virtual coins; the target configuration data is the data after the initial configuration data is converted.
[0129] In actual applications, when a user has a data conversion requirement, a data processing request carrying initial configuration data is sent to the local computer. The data processing request can be sent to the local computer directly through a local external device, or through a third-party platform. Furthermore, the initial configuration data in the data processing request is processed and converted based on the configuration information to obtain the target configuration data and feedback. In this way, data conversion of the initial configuration data based on the configuration information can improve the data conversion efficiency and the accuracy of the target configuration data.
[0130] See also Figure 3A , Figure 3AA flow chart of the processing process of an information configuration method provided by an embodiment of the present specification is shown, which is applied to the exchange rate scenario: a front-end page for quick access to the target server is designed on the client, and the user can select the information identifier, that is, the key information, on the front-end page, including the service identifier (institution abbreviation) + resource identifier (resource pair) + second scenario identifier (scenario code), for example: SCB+USD / CNY+IPY1M), and an information request message will be generated according to the information identifier and the target request format, and the information request message will be sent to the target server for trial consultation. Afterwards, the target server will feedback the data message to the client, and the client will parse the data message to obtain the field information, set the configuration information based on the field information, and store the configuration information in the database. The configuration information can also be displayed on the front-end page for users to view and select, and users can select the required configuration information to store according to the needs of the scenario.
[0131] This specification provides an information configuration method, receiving a data message sent by a target server; using a preset parsing strategy corresponding to the target server, parsing the data message to obtain the field information of the target data; and setting the configuration information of the target data based on the field information of the target data. By parsing the data message to determine the field information, and then setting the configuration information, the configuration information is automatically consistent with the field information of the data message, and there will be no situation where the configuration information cannot be stored and used due to the inconsistency between the data message and the configuration information, which saves the process of manual proofreading, improves the efficiency of information configuration, reduces the configuration risk of configuration information, and realizes the target server data message, that is, the fast and accurate access of the configuration information, providing a more efficient and stable information configuration method. In addition, through the human-computer interaction method, it supports exchange rate consultation attempts and configuration information adjustments, realizes the control of data message access, ensures the rapid batch access of the target server, and avoids the situation where irrelevant servers are accessed, reduces the risk of information configuration, and improves the convenience of information configuration.
[0132] The following combination Figure 3B , taking the application of the information configuration method provided in this specification in the exchange rate configuration scenario as an example, the information configuration method is further explained. Figure 3B A processing flow chart of another information configuration method provided by an embodiment of this specification is shown, which specifically includes the following steps.
[0133] Step 302: Receive an exchange rate configuration request, where the exchange rate configuration request carries an exchange rate identifier.
[0134] Step 304: Generate an exchange rate request message for the target data based on the exchange rate identifier.
[0135] Optionally, the exchange rate identifier includes a service identifier;
[0136] Generate an exchange rate request message for target data based on the exchange rate identifier, including:
[0137] Determine a target request format corresponding to the service identifier from a preset request format library;
[0138] Generate an exchange rate request message for the target data according to the target request format and service identifier.
[0139] Optionally, the exchange rate identifier includes a service identifier, a resource identifier, and a second scenario identifier;
[0140] Generate an exchange rate request message for target data based on the exchange rate identifier, including:
[0141] Get the target request format corresponding to the service identifier;
[0142] Determine a target request message template according to the target request format and the second scenario identifier;
[0143] The service identifier, resource identifier, and second scenario identifier are added to the target request message template to generate an exchange rate request message for the target data.
[0144] Step 306: Send the exchange rate request message to the target server.
[0145] Step 308: Receive the data message sent by the target server.
[0146] Step 310: Determine the resolution strategy corresponding to the target server.
[0147] Step 312: parse the data message using the parsing strategy to determine the message format of the data message.
[0148] Step 314: Based on the message format, extract the exchange rate field of the target data from the data message.
[0149] Step 316: Obtain a preset exchange rate configuration template.
[0150] Step 318: Add the exchange rate field of the target data to the exchange rate configuration template to obtain the exchange rate configuration of the target data.
[0151] Step 320: multiple exchange rate configurations are displayed on a display page, and a selection instruction is received through the display page, where the selection instruction carries a first scenario identifier.
[0152] Step 322: Determine a target exchange rate configuration corresponding to the first scenario identifier from the multiple exchange rate configurations.
[0153] Step 324: Receive a data processing request, which carries initial configuration data.
[0154] Step 326: According to the exchange rate configuration, the initial configuration data is converted to obtain target configuration data, and the target configuration data is fed back.
[0155] This specification provides an information configuration method, which determines the field information by parsing the data message, and then sets the configuration information so that the configuration information is automatically consistent with the field information of the data message, and the situation where the configuration information cannot be stored and used due to the inconsistency between the data message and the configuration information will not occur, which saves the process of manual proofreading, improves the efficiency of information configuration, reduces the configuration risk of configuration information, and realizes the target server data message, that is, the fast and accurate access of configuration information, providing a more efficient and stable information configuration method. In addition, through human-computer interaction, it supports exchange rate consultation attempts and configuration information adjustments, realizes the control of data message access, ensures the rapid batch access of the target server, and avoids the situation where irrelevant servers are accessed, reduces the risk of information configuration, and improves the convenience of information configuration.
[0156] Corresponding to the above method embodiment, this specification also provides an information configuration device embodiment, Figure 4 FIG. 1 shows a schematic diagram of the structure of an information configuration device provided by an embodiment of this specification. Figure 4 As shown, the device comprises:
[0157] The receiving module 402 is configured to receive a data message sent by a target server;
[0158] The parsing module 404 is configured to parse the data message using a preset parsing strategy corresponding to the target server to obtain field information of the target data;
[0159] The setting module 406 is configured to set the configuration information of the target data based on the field information of the target data.
[0160] Optionally, the parsing module 404 is further configured to:
[0161] Determine the parsing strategy corresponding to the target server;
[0162] Parsing the data message using the parsing strategy to determine the message format of the data message;
[0163] Based on the message format, field information of the target data is extracted from the data message.
[0164] Optionally, the setting module 406 is further configured to:
[0165] Get the preset configuration information template;
[0166] The field information of the target data is added to the configuration information template to obtain the configuration information of the target data.
[0167] Optionally, there are multiple configuration information;
[0168] The device also includes a determination module configured to:
[0169] Get the first scene identifier;
[0170] Determine target configuration information corresponding to the first scene identifier from the multiple configuration information.
[0171] Optionally, the determining module is further configured to:
[0172] A plurality of the configuration information is displayed on a display page, and a selection instruction is received through the display page, wherein the selection instruction carries a first scene identifier.
[0173] Optionally, the device further includes a generating module configured to:
[0174] receiving an information configuration request, wherein the information configuration request carries an information identifier;
[0175] generating an information request message for the target data based on the information identifier;
[0176] The information request message is sent to the target server.
[0177] Optionally, the information identifier includes a service identifier;
[0178] The generation module is further configured to:
[0179] Determine a target request format corresponding to the service identifier from a preset request format library;
[0180] An information request message for the target data is generated according to the target request format and the service identifier.
[0181] Optionally, the information identifier includes a service identifier, a resource identifier and a second scenario identifier;
[0182] The generation module is further configured to:
[0183] Obtaining the target request format corresponding to the service identifier;
[0184] Determine a target request message template according to the target request format and the second scenario identifier;
[0185] The service identifier, the resource identifier and the second scenario identifier are added to the target request message template to generate an information request message for the target data.
[0186] Optionally, the device further comprises a feedback module configured to:
[0187] receiving a data processing request, wherein the data processing request carries initial configuration data;
[0188] According to the configuration information, performing data conversion on the initial configuration data to obtain target configuration data;
[0189] The target configuration data is fed back.
[0190] The present specification provides an information configuration device, which receives a data message sent by a target server; uses a preset parsing strategy corresponding to the target server to parse the data message to obtain the field information of the target data; and sets the configuration information of the target data based on the field information of the target data. The field information is determined by parsing the data message, and then the configuration information is set, so that the configuration information is automatically consistent with the field information of the data message, and the configuration information cannot be stored and used due to the inconsistency between the data message and the configuration information. The manual proofreading process is omitted, the efficiency of information configuration is improved, the configuration risk of the configuration information is reduced, and the target server data message, that is, the fast and accurate access of the configuration information is realized, providing a more efficient and stable information configuration method. In addition, through the human-computer interaction method, the exchange rate consultation attempt and the configuration information adjustment are supported, the access situation of the data message is controlled, the batch and fast access of the target server is guaranteed, and the access of irrelevant servers is avoided, the risk of information configuration is reduced, and the convenience of information configuration is improved.
[0191] The above is a schematic scheme of an information configuration device of this embodiment. It should be noted that the technical scheme of the information configuration device and the technical scheme of the above information configuration method belong to the same concept, and the details not described in detail in the technical scheme of the information configuration device can be referred to the description of the technical scheme of the above information configuration method.
[0192] Figure 5 The structure block diagram of a computing device 500 provided according to an embodiment of the present specification is shown. The components of the computing device 500 include but are not limited to a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and the database 550 is used to store data.
[0193] The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0194] In one embodiment of the present specification, the above components of the computing device 500 and Figure 5 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 5 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0195] The computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 500 may also be a mobile or stationary server.
[0196] The processor 520 is used to execute the following computer executable instructions, which implement the steps of the above-mentioned information configuration method when executed by the processor.
[0197] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above information configuration method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above information configuration method.
[0198] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which can implement the steps of the above-mentioned information configuration method when executed by a processor.
[0199] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above information configuration method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above information configuration method.
[0200] An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned information configuration method.
[0201] The above is an illustrative solution of a computer program of this embodiment. It should be noted that the technical solution of the computer program and the technical solution of the above information configuration method belong to the same concept, and the details not described in detail in the technical solution of the computer program can be referred to the description of the technical solution of the above information configuration method.
[0202] 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.
[0203] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0204] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.
[0205] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0206] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.
Claims
1. An information configuration method, comprising: Receive data packets sent by the target server; Determine the parsing strategy corresponding to the target server; Parsing the data message using the parsing strategy to determine the message format of the data message; Based on the message format, extracting field information of target data from the data message; Based on the field information of the target data, configuration information of the target data is set.
2. The method according to claim 1, wherein the step of setting the configuration information of the target data based on the field information of the target data comprises: Get the preset configuration information template; The field information of the target data is added to the configuration information template to obtain the configuration information of the target data.
3. According to the method of claim 1, there are multiple configuration information; After setting the configuration information of the target data based on the field information of the target data, the method further includes: Get the first scene identifier; Determine target configuration information corresponding to the first scene identifier from the multiple configuration information.
4. The method according to claim 3, wherein obtaining the first scene identifier comprises: A plurality of the configuration information is displayed on a display page, and a selection instruction is received through the display page, wherein the selection instruction carries a first scene identifier.
5. The method according to claim 1, before receiving the data message sent by the target server, further comprising: receiving an information configuration request, wherein the information configuration request carries an information identifier; generating an information request message for the target data based on the information identifier; The information request message is sent to the target server.
6. The method according to claim 5, wherein the information identifier includes a service identifier; The generating the information request message for the target data based on the information identifier includes: Determine a target request format corresponding to the service identifier from a preset request format library; An information request message for the target data is generated according to the target request format and the service identifier.
7. The method according to claim 5, wherein the information identifier includes a service identifier, a resource identifier and a second scenario identifier; The generating the information request message for the target data based on the information identifier includes: Obtaining the target request format corresponding to the service identifier; Determine a target request message template according to the target request format and the second scenario identifier; The service identifier, the resource identifier and the second scenario identifier are added to the target request message template to generate an information request message for the target data.
8. The method according to any one of claims 1 to 7, after setting the configuration information of the target data based on the field information of the target data, further comprising: receiving a data processing request, wherein the data processing request carries initial configuration data; According to the configuration information, performing data conversion on the initial configuration data to obtain target configuration data; The target configuration data is fed back.
9. An information configuration device, comprising: A receiving module, configured to receive a data message sent by a target server; A parsing module, configured to determine a parsing strategy corresponding to the target server; Parsing the data message using the parsing strategy to determine the message format of the data message; Based on the message format, extracting field information of target data from the data message; The setting module is configured to set the configuration information of the target data based on the field information of the target data.
10. A computing device comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the information configuration method described in any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the steps of the information configuration method according to any one of claims 1 to 8.
