Information feedback method, device, system, equipment and storage medium

By building error information mapping files and searching for standard error information in distributed software systems, the problem of irregular error information on dependency services is solved, and error information feedback is achieved with high accuracy and readability to users.

CN114510408BActive Publication Date: 2024-12-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011285245.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-17
Publication Date
2024-12-17
Estimated Expiration
2040-11-17

AI Technical Summary

Technical Problem

The management platform of distributed software system is difficult to maintain and analyze error information from dependent services, especially the error information is not standardized, vague, carries sensitive information, and inconsistent format, which affects accurate feedback to users.

Method used

By building an error message mapping file corresponding to the dependent service, receiving the target error code in the error feedback message, finding and feedbacking standard error information, ensuring the accuracy and readability of the error message received by the user.

Benefits of technology

There is no need to process error messages sent by dependent services, and the standard error information is directly searched for incorrect information mapping files to ensure that the error information feedback to users is accurate and readable, and is independent of the information standardization of dependent services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114510408B_ABST
    Figure CN114510408B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an information feedback method, device, system, equipment and storage medium, wherein the method comprises: receiving an error feedback message from a dependent service, the error feedback message comprising a target error code; calling an error information mapping file corresponding to the dependent service, the error information mapping file being constructed based on the error code in the error code number segment corresponding to the dependent service and error registration information, the error registration information comprising standard error information; searching for the standard error information corresponding to the target error code in the error information mapping file; and in the case of finding the standard error information corresponding to the target error code, feeding back the standard error information corresponding to the target error code to the user of the dependent service. The method can uniformly configure and manage the error information of each dependent service of a distributed software system, and ensure accurate feedback of the error situation of the dependent service to the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to an information feedback method, device, system, equipment and storage medium. Background Art

[0002] As the scale and complexity of distributed software systems increase, the services provided by distributed software systems are often split into multiple sub-services, and distributed software systems can also connect to some other services. These sub-services and external services can all be regarded as dependent services of the distributed software system.

[0003] As Internet traffic and business complexity continue to expand, the management platform of distributed software systems often receives a large number of error feedback messages from dependent services, including error codes and error messages. The management platform needs to call the error information processing logic of the corresponding dependent service based on the error code, and then use the error information processing logic to analyze and process the error information, and feedback the analysis and processing results of the error information to the user so that the user can understand the error situation of the dependent service.

[0004] However, the above implementation method has the following defects: the error information fed back by each dependent service to the management platform is difficult to maintain, and it cannot be guaranteed that each dependent service returns the error information in accordance with the error information specifications specified by the management platform. Problems such as the fed back error information being ambiguous, carrying sensitive information, and having inconsistent formats often occur; it is not conducive to the management platform analyzing and processing the error information, and is even more detrimental to the management platform accurately feeding back the error conditions of the dependent services to users. Summary of the invention

[0005] The embodiments of the present application provide an information feedback method, apparatus, system, device and storage medium, which can uniformly configure and manage the error information of each dependent service of a distributed software system, and ensure that the error conditions of the dependent services are accurately fed back to the user.

[0006] In view of this, the first aspect of the present application provides an information feedback method, the method comprising:

[0007] Receiving an error feedback message from a dependent service; the error feedback message includes a target error code;

[0008] Calling an error information mapping file corresponding to the dependent service; the error information mapping file is constructed based on the error code in the error code number segment corresponding to the dependent service and error registration information, wherein the error registration information includes standard error information;

[0009] In the error information mapping file, searching for standard error information corresponding to the target error code;

[0010] When the standard error information corresponding to the target error code is found, the standard error information corresponding to the target error code is fed back to the user who relies on the service.

[0011] A second aspect of the present application provides an information feedback device, the device comprising:

[0012] A message receiving module, used to receive an error feedback message from a dependent service; the error feedback message includes a target error code;

[0013] A file calling module, used to call the error information mapping file corresponding to the dependent service; the error information mapping file is constructed based on the error code in the error code number segment corresponding to the dependent service and the error registration information, and the error registration information includes standard error information;

[0014] An information search module, used to search the standard error information corresponding to the target error code in the error information mapping file;

[0015] The information feedback module is used to feed back the standard error information corresponding to the target error code to the user who relies on the service when the standard error information corresponding to the target error code is found.

[0016] A third aspect of the present application provides an information feedback system, the system comprising a configuration center and a dependent service of a distributed software system, the configuration center and a business processing platform of the distributed software system being independent of each other;

[0017] The dependent service is used to send an error feedback message to the configuration center;

[0018] The configuration center is used to execute the information feedback method as described in the first aspect above.

[0019] A fourth aspect of the present application provides a device, the device comprising a processor and a memory:

[0020] The memory is used to store computer programs;

[0021] The processor is used to execute the steps of the information feedback method as described in the first aspect according to the computer program.

[0022] A fifth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the steps of the information feedback method described in the first aspect above.

[0023] In a sixth aspect, the present application provides a computer program product or a computer program, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the steps of the information feedback method described in the first aspect above.

[0024] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0025] The embodiment of the present application provides an information feedback method, which constructs a corresponding error information mapping file for each dependent service of a distributed software system, and manages the error code and standard error information of the dependent service by using the error information mapping file; when an error feedback message from a dependent service is received, the error information mapping file corresponding to the dependent service is called accordingly, and the standard error information corresponding to the target error code in the error feedback message is searched in the error information mapping file; if the standard error information corresponding to the target error code is found in the error information mapping file, the standard error information is fed back to the user of the dependent service. Compared with the implementation method of processing the error information from the dependent service in the related art and then feeding back the processed error information to the user, the information feedback method provided by the embodiment of the present application no longer needs to process the error information sent by the dependent service. The method can directly find the standard error information corresponding to the error code in the error information mapping file corresponding to the dependent service according to the error code sent by the dependent service and feed it back to the user; in this way, whether the error information sent by the dependent service is standardized or not, it will not affect the error information fed back to the user, and can ensure that the error information of the dependent service with high accuracy and strong readability is fed back to the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of the working principle of the information feedback system provided in the embodiment of the present application;

[0027] Figure 2 A flowchart of the information feedback method provided in the embodiment of the present application;

[0028] Figure 3 A schematic diagram of the process flow of the error information registration phase provided in an embodiment of the present application;

[0029] Figure 4 A flow chart of the application phase of feeding back error information to a user based on an error information mapping file provided in an embodiment of the present application;

[0030] Figure 5A schematic diagram of a flow chart of a feedback phase of registering unregistered error information in an error information mapping file provided in an embodiment of the present application;

[0031] Figure 6 A graph showing the amount of fuzzy error information for an API-dependent service provided in an embodiment of the present application;

[0032] Figure 7 A curve chart showing the amount of user complaints for different dependent services provided in an embodiment of the present application;

[0033] Figure 8 A schematic diagram of the structure of the first information feedback device provided in an embodiment of the present application;

[0034] Fig. 9 A schematic diagram of the structure of a second information feedback device provided in an embodiment of the present application;

[0035] Fig.10 A schematic diagram of the structure of a third information feedback device provided in an embodiment of the present application;

[0036] Fig.11 A schematic diagram of the structure of a fourth information feedback device provided in an embodiment of the present application;

[0037] Fig.12 A schematic diagram of the structure of a fifth information feedback device provided in an embodiment of the present application;

[0038] Fig.13 A schematic diagram of the structure of a sixth information feedback device provided in an embodiment of the present application;

[0039] Fig.14 A schematic diagram of the structure of a seventh information feedback device provided in an embodiment of the present application;

[0040] Fig.15 A schematic diagram of the structure of an eighth information feedback device provided in an embodiment of the present application;

[0041] Fig.16 A schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0044] In the related art, after receiving the error feedback message from the dependent service, the management platform of the distributed software system needs to use the corresponding error information processing logic to analyze and process the error information carried in the error feedback message, and then feedback the processed error information to the user of the dependent service. However, in actual applications, it is usually impossible to ensure that the error information feedback from each dependent service complies with the error information specifications specified by the management platform. It is very easy to have problems such as ambiguous error information, sensitive information carried in the error information, and inconsistent error information format. For such non-standard error information, it is often difficult for the management platform to accurately and effectively analyze and process it, which will affect the accuracy and readability of the error information fed back to the user.

[0045] In response to the problems existing in the above-mentioned related technologies, an embodiment of the present application provides an information feedback method, which can uniformly manage the error information of each dependent service of a distributed software system, and feedback standard error information to the user based on the error code fed back by the dependent service without having to process the error information fed back by the dependent service.

[0046] Specifically, in the information feedback method provided in the embodiment of the present application, an error feedback message is received from a dependent service, wherein the error feedback message includes a target error code; then, an error information mapping file corresponding to the dependent service is called, wherein the error information mapping file is constructed based on the error code in the error code number segment corresponding to the dependent service and error registration information, wherein the error registration information includes standard error information; further, in the called error information mapping file, the standard error information corresponding to the target error code is searched for; if the standard error information corresponding to the target error code is found in the error information mapping file, the standard error information corresponding to the target error code is fed back to the user of the dependent service.

[0047] Compared with the implementation method in the related art of analyzing and processing the error information from the dependent service and then feeding back the processed error information to the user, the above-mentioned information feedback method no longer needs to process the error information sent by the dependent service. It can directly search for the standard error information corresponding to the target error code sent by the dependent service in the error information mapping file corresponding to the dependent service, and feed back the standard error information to the user; in this way, no matter whether the error information sent by the dependent service is standardized, it will not affect the error information fed back to the user, thereby ensuring that the standard error information fed back to the user is highly accurate and readable.

[0048] It should be understood that the information feedback method provided in the embodiment of the present application can be applied to a server that has a communication relationship with a dependent service in a distributed software system. The server can specifically be an application server or a Web server. In actual deployment, it can be an independent server, a cluster server, or a cloud server.

[0049] In order to facilitate understanding of the information feedback method provided in the embodiment of the present application, the information feedback system provided in the embodiment of the present application is introduced below in combination with the application scenarios to which the information feedback method provided in the embodiment of the present application is applicable.

[0050] See also Figure 1 , Figure 1 The following is a schematic diagram of the working principle of the information feedback system provided in the embodiment of the present application. Figure 1 As shown, the information feedback system includes a configuration center 110 and a dependency service 120 of a distributed software system; wherein the configuration center 110 can be specifically manifested as a server, which is used to execute the information feedback method provided in the embodiment of the present application; the dependency service 120 of the distributed software system can also be specifically manifested as a server, which can provide sub-services in the distributed software system and can also provide external services for the distributed software system; each dependency service 120 can communicate with the configuration center 110 through the network.

[0051] It should be noted that, in actual applications, in order to facilitate the maintenance of error information of dependent services of a distributed software system and avoid coupling of the maintained error information of dependent services with the business processing logic of the distributed software system, the configuration center 110 in the information feedback system provided in the embodiment of the present application and the business processing platform in the distributed software system are independent of each other.

[0052] In specific implementation, if an error occurs in the dependent service 120 of the distributed software system during operation, an error feedback message can be sent to the configuration center 110 through the network; the error feedback message can carry a target error code corresponding to the current error that has occurred in the dependent service, and can also carry target error information corresponding to the current error that has occurred in the dependent service.

[0053] After receiving the error feedback message sent by the dependent service 120, the configuration center 110 can call the error information mapping file corresponding to the dependent service 120 accordingly. It should be noted that the error information mapping file corresponding to the dependent service 120 is usually pre-built based on the error registration information; specifically, the configuration center 110 can configure different error code segments for each dependent service 120. When building a corresponding error information mapping file for a certain dependent service 120, the configuration center 110 can assign corresponding error codes to each error registration information uploaded by the management user of the dependent service 120 in the error code segment configured for the dependent service 120 in a preset order, and write the corresponding relationship between the error code and the error registration information into the error information mapping file corresponding to the dependent service 120; the above-mentioned error registration information at least includes standard error information, which refers to error information that can be directly fed back to the user of the dependent service. The user of the dependent service can clearly understand the error that occurred in the dependent service based on the standard error information.

[0054] After the configuration center 110 retrieves the error information mapping file corresponding to the dependent service 120, it searches for the standard error information corresponding to the target error code carried in the error feedback message in the error information mapping file. If the configuration center 110 finds the standard error information corresponding to the target error code in the error information mapping file, the configuration center 110 can accordingly feedback the standard error information corresponding to the target error code to the user of the dependent service.

[0055] On the contrary, if the configuration center 110 does not find the standard error information corresponding to the target error code in the error information mapping file, it means that the standard error information corresponding to the target error code has not been registered in the error information mapping file; in this case, the configuration center 110 can convert the target error code into a fuzzy error code corresponding to the dependent service 120 that sends the error feedback message. That is, the configuration center 110 can pre-configure different fuzzy error codes for each dependent service 120. When a certain error code cannot be found in the error information mapping file corresponding to the dependent service 120, the error code can be converted into a fuzzy error code corresponding to the dependent service 120; then, the fuzzy error code and the target error information carried in the error feedback message are recorded in the log. When the preset period ends, the configuration center 110 can send the unregistered error information from each dependent service recorded in the log to the management user of each dependent service accordingly, so that it can register the unregistered error information in the corresponding error information configuration file, thereby realizing the positive feedback mechanism of the unregistered error information, so that the error information registration mechanism of the entire set of dependent services forms a closed loop.

[0056] It should be understood that Figure 1The structure of the information feedback system shown is only an example, and the information feedback system may actually include more or fewer dependent services. Figure 1 The number of dependent services shown is only an example, and the present application does not impose any limitation on the number of dependent services in the information feedback system. In addition, in addition to being used to feed back error information to users of dependent services of a distributed software system, the information feedback method provided in the embodiment of the present application can also be used to feed back error information to users of dependent services of other types of systems, and the application scenarios to which the information feedback method provided in the embodiment of the present application is applicable are not limited here.

[0057] The information feedback method provided by the present application is described in detail below through a method embodiment.

[0058] See also Figure 2 , Figure 2 The following is a flow chart of the information feedback method provided in the embodiment of the present application. For the convenience of description, the following embodiment is introduced by taking the configuration center as the execution subject of the information feedback method. Figure 2 As shown, the information feedback method includes the following steps:

[0059] Step 201: Receive an error feedback message from a dependent service; the error feedback message includes a target error code.

[0060] In actual applications, users can implement relevant functions by calling the dependent services of the distributed software system. In the process of providing relevant functional support to users, the dependent services of the distributed software system may cause errors due to improper user operations, unstable operating conditions and other factors. At this time, the dependent service can correspondingly generate an error feedback message including a target error code, and send the error feedback message to the configuration center through the network, so that the configuration center can feedback to the user the current error situation of the dependent service based on the error feedback message.

[0061] It should be noted that the target error code included in the error feedback message is the error code corresponding to the error situation currently occurring in the dependent service, and different error situations correspond to different error codes. In addition, the error feedback message may also generally include target error information corresponding to the error situation currently occurring in the dependent service, and the target error information can reflect a more specific error situation to a certain extent. However, since the error information generated by the dependent service is generally more abstract, it is difficult for users to understand and has poor readability. Therefore, the configuration center will not directly feedback the error information included in the error feedback message to the user.

[0062] Step 202: calling the error information mapping file corresponding to the dependent service; the error information mapping file is constructed based on the error code in the error code segment corresponding to the dependent service and the error registration information, and the error registration information includes standard error information.

[0063] After the configuration center receives the error feedback message from the dependent service, it can call the error information mapping file corresponding to the dependent service accordingly. The error information mapping file records the correspondence between the error code in the error code number segment allocated to the dependent service and the error registration information. The error registration information includes at least standard error information.

[0064] It should be noted that the error information mapping file corresponding to the dependent service is usually pre-built by the configuration center, and different dependent services correspond to different error information mapping files; after the configuration center receives the error feedback message from the dependent service, it needs to call the error information mapping file corresponding to the dependent service accordingly. In addition, when the configuration center builds the corresponding error information mapping file for the dependent service, it needs to use the error registration information uploaded by the management user of the dependent service. The error registration information includes at least standard error information. The standard error information here refers to the error information that can be directly fed back to the user of the dependent service. It has the characteristics of strong readability and easy for users to understand. In other words, the user of the dependent service can clearly understand the error situation that occurred in the dependent service based on the standard error information.

[0065] In specific implementation, the configuration center can maintain different client files for different dependent services, and different client files correspond to different dependent service identifiers; after the configuration center receives an error feedback message from a dependent service, it can correspond the error feedback message to the client file for the dependent service, and then, based on the dependent service identifier corresponding to the client file, call the error information mapping file corresponding to the dependent service accordingly.

[0066] It should be understood that the above implementation method of calling the error information mapping file is only an example. In actual applications, the configuration center can also call the error information mapping file in other ways; for example, the dependent service can add the corresponding dependent service identifier in the error feedback message it sends to the configuration center, and then the configuration center can directly call the corresponding error information mapping file based on the dependent service identifier carried in the error feedback message. This application does not make any limitation on the implementation method of the configuration center calling the error information mapping file.

[0067] It should be noted that in many cases, the error feedback message sent by the dependent service to the configuration center may carry a success response code, that is, the dependent service may send an error feedback message carrying a success response code to the configuration center when it successfully responds to user operations or successfully implements a certain function. In order to avoid unnecessary operations such as calling the error information mapping file and searching for error information in the error information mapping file, the configuration center may first detect whether the target error code carried in the error feedback message is a preset success response code before calling the error information mapping file corresponding to the dependent service; if the target error code is a success response code, the configuration center may obtain the response result of the dependent service and feedback the response result to the user of the dependent service; if the target error code is not a success response code, the operation of calling the error information mapping file corresponding to the dependent service is executed.

[0068] Exemplarily, assuming that the preset success response code is 0, after the configuration center receives the error feedback message sent by the dependent service, it can first detect whether the target error code carried in the error feedback message is 0. If so, it means that the dependent service responded successfully and no error occurred. At this time, the configuration center can obtain the response result of the dependent service accordingly, and feed back the response result to the user of the dependent service to let it know that the dependent service has responded successfully. If not, it means that the dependent service did not respond successfully and an error occurred during the response process. At this time, the configuration center needs to call the error information mapping file corresponding to the dependent service accordingly.

[0069] It should be understood that in actual applications, the configuration center can set the above success response code according to actual needs, and this application does not impose any limitation on the success response code.

[0070] In the information feedback method provided in the embodiment of the present application, the above-mentioned error information mapping file plays an extremely important role as a maintenance carrier of the dependent service error information. The following is a detailed introduction to the construction method of the error information mapping file corresponding to the dependent service.

[0071] The configuration center can first assign corresponding error code segments to dependent services and create an error information mapping file corresponding to the dependent services; then, obtain the error registration information corresponding to the dependent service, and assign corresponding error codes to the obtained error registration information in the error code segment according to a preset order; and then, write the correspondence between the error code and the error registration information into the error information mapping file.

[0072] Specifically, for new dependent services of the distributed software system, such as newly created sub-services and newly connected external services in the distributed software system, the configuration center can assign corresponding error code segments to the dependent services and create corresponding error information mapping files. It should be noted that in the technical solution provided in the embodiment of the present application, the configuration center needs to assign different error code segments to different dependent services; for example, assuming that the dependent services of the distributed software system include dependent services A, dependent services B and dependent services C, the configuration center can assign corresponding error code segments 0-500 to dependent service A, corresponding error code segments 501-1000 to dependent service B, and corresponding error code segments 1001-1500 to dependent service C; in this way, it is ensured that different dependent services correspond to different error code segments, avoiding the occurrence of error mapping file miscalls, error information missearches, etc. due to the existence of the same error code segments in different dependent services.

[0073] It should be understood that in actual applications, the configuration center can allocate corresponding error code segments to dependent services according to their actual business conditions. For example, for dependent services with more complex business logic, error code segments covering more error codes can be allocated to them, and for dependent services with simpler business logic, error code segments covering fewer error codes can be allocated to them. This application does not make any limitation on the way in which the configuration center allocates error code segments to dependent services.

[0074] Then, the configuration center can obtain the error registration information for the dependent service, which can be information uploaded by the management user of the dependent service based on the error situation that may occur during the operation of the dependent service. Usually, one error registration information corresponds to one error situation. Exemplarily, the error registration information uploaded by the management user of the dependent service to the configuration center needs to include standard error information, which can include standard error information in English and standard error information in Chinese. In addition, the error registration information can also include error keywords, which are keywords related to the error situation corresponding to the error registration information, and can concisely reflect the error situation to a certain extent.

[0075] After the configuration center obtains the error registration information of the dependent service, it can assign corresponding error codes to the obtained error registration information in the error code number segment assigned to the dependent service in a preset order. For example, assuming that the error code number segment assigned by the configuration center to the dependent service is 0-100, and the configuration center has currently obtained 5 error registration information uploaded by the management user of the dependent service, at this time, the configuration center can assign error codes 0, 1, 2, 3 and 4 in the error code number segment to the 5 error registration information respectively. After assigning the corresponding error code to the obtained error registration information, the configuration center can write the correspondence between the error code and the error registration information into the error information mapping file previously constructed for the dependent service, that is, write the error code and its corresponding error registration information into the error information mapping file corresponding to the dependent service.

[0076] It should be noted that in order to ensure the quality of the standard error information maintained by the error information mapping file and avoid repeatedly registering the same standard error information in the error information mapping file, thereby wasting the storage resources of the error information mapping file; the configuration center may verify whether the error registration information obtained meets the preset specification conditions before assigning the corresponding error code to the error registration information it obtains. The preset specification conditions may include at least one of the following: the error registration information includes necessary registration information, and the information identifier corresponding to the error registration information is not repeated with the information identifier corresponding to the existing error registration information in the error mapping file; when it is verified that the error registration information meets the above-mentioned preset specification conditions, the configuration center continues to assign corresponding error codes to the error registration information in the error code number segment assigned to the dependent service in a preset order.

[0077] Specifically, the configuration center can execute the error information automatic generation script provided by the distributed software system platform, and verify the error registration information obtained by the configuration center through the automatic generation script to determine whether the error registration information obtained meets the preset specification conditions. Exemplarily, it can be verified whether the error registration information includes necessary registration information. For example, assuming that the necessary registration information is standard error information in English and standard error information in Chinese, the configuration center can verify whether the error registration information it obtains includes standard error information in English and standard error information in Chinese through the automatic generation script. If so, it can be determined that the error registration information meets the preset specification conditions. If not, it can be determined that the error registration information does not meet the preset specification conditions. Exemplarily, it is also possible to check whether the information identifier corresponding to the error registration information is repeated with the information identifier corresponding to the error registration information already in the error information mapping file, that is, each error registration information obtained by the configuration center can correspond to an information identifier, and different error registration information corresponds to different information identifiers. If the information identifier corresponding to the error registration information obtained by the configuration center is repeated with the information identifier corresponding to the error registration information already in the error information mapping file, it means that the corresponding error code has been assigned to the error registration information and the error registration information has been written to the error mapping file. In this case, the configuration center does not need to repeatedly register the error registration information in the error information mapping file.

[0078] Only when the error registration information passes the verification and meets the preset specification conditions, the configuration center can assign an error code to the error registration information and register it to the error information mapping file. If the error registration information fails to pass the verification and does not meet the preset specification conditions, the configuration center can discard the error registration information and correspondingly remind the management user who relies on the service that the error registration information uploaded by him does not meet the preset specification conditions.

[0079] It should be understood that in actual applications, the configuration center may also include necessary registration information in the error registration information, and the information identifier corresponding to the error registration information and the information identifier corresponding to the error registration information in the error information mapping file are not repeated, all as preset standard conditions, that is, only when the error registration information satisfies the above two conditions at the same time, the error registration information is considered to meet the preset standard conditions. Of course, in actual applications, the configuration center can also set other conditions as preset standard conditions according to actual needs, and this application does not make specific limitations on the preset standard conditions.

[0080] Step 203: Search the error information mapping file for the standard error information corresponding to the target error code.

[0081] Since the correspondence between error codes and error registration information is recorded in the error information mapping file corresponding to the dependent service, after the configuration center retrieves the error information mapping file corresponding to the dependent service, it can search for the error registration information corresponding to the target error code in the error information mapping file. If the error registration information corresponding to the target error code can be found, the standard error information corresponding to the target error code can be obtained from the found error registration information.

[0082] Step 204: when the standard error information corresponding to the target error code is found, the standard error information corresponding to the target error code is fed back to the user who relies on the service.

[0083] If the configuration center finds the error registration information corresponding to the target error code in the error information mapping file corresponding to the dependent service, the configuration center can obtain the standard error information corresponding to the target error code from the error registration information, and then feedback the standard error information corresponding to the target error code to the user of the dependent service, so that the user of the dependent service can clearly understand the error situation that occurred in the dependent service.

[0084] It should be noted that, in addition to feeding back standard error information in erroneous registration information to users of dependent services, the method provided in the embodiment of the present application can also feed back error information generated by other means to users of dependent services. In this way, the error conditions of the dependent services can be reflected to users of the dependent services from multiple dimensions, making it easier for users to clearly understand the error conditions that occur in the dependent services.

[0085] That is, when the error feedback message sent by the dependent service includes the target error information, and the error registration information corresponding to the target error code includes error keywords, the configuration center can search for the error keywords corresponding to the target error code in the error information mapping file; then, based on the target error information and the error keywords corresponding to the target error code, generate the target reference error information; and then, feedback the target reference error information to the user of the dependent service.

[0086] As introduced above, the error feedback message sent by the dependent service to the configuration center may also include error information corresponding to the error situation that occurred in the dependent service. Although this error information can reflect the error situation that occurred in the dependent service to a certain extent, this error information is usually relatively abstract and has poor readability and is difficult to understand for users.

[0087] In order to make better use of the error information fed back by the dependent service, the management user of the dependent service can set corresponding error keywords for the error information fed back by such dependent service, and register the set error keywords in the error information mapping file while registering the standard error information in the error information mapping file corresponding to the dependent service. That is, the management user of the dependent service can add error keywords in the error registration information, and after the configuration center completes the operation of registering the correspondence between the error code and the error registration information in the error information mapping file, the correspondence between the error code and the standard error information and error keywords in the error registration information can be constructed accordingly. In this case, after the configuration center receives the error feedback message sent by the dependent service, it can search for the error keywords corresponding to the target error code in the error feedback message in the error information mapping file corresponding to the dependent service, and then combine the found error keywords with the target error information in the error feedback message to obtain target reference error information that is easier for users to understand.

[0088] For example, assuming that dependent service A fails to call dependent service B, it usually feeds back the target error message "call failure" to the configuration center. If the target error message is directly sent to the user of the dependent service, it is usually difficult for the user to understand the specific error situation it is responding to. In order to make better use of the target error message, the management user of dependent service A can set the error keywords "dependent service A" and "dependent service B" accordingly according to the business logic of dependent service A itself, and register them to the error information mapping file corresponding to dependent service A. After the configuration center receives the error feedback message carrying the target error message "call failure" fed back by dependent service A, it can obtain the error keywords "dependent service A" and "dependent service B" from the error information mapping file corresponding to dependent service A, and then, based on the obtained error keywords and the target error message "call failure", generate the target reference error message "dependent service A failed to call dependent service B", and feed back the target reference error message to the user of dependent service A.

[0089] It should be understood that the above-mentioned method of generating target reference error information based on target error information and error keywords is only an example. In actual applications, management users who rely on services can also set other types of error keywords according to actual needs. Accordingly, the configuration center can adopt other methods to generate target reference error information based on target error information and error keywords. This application does not make any limitation on the set error keywords, nor does it make any limitation on the method of generating target reference error information based on target error information and error keywords.

[0090] It should be understood that in actual applications, the configuration center may simultaneously feed back the standard error information and target reference error information corresponding to the target error code to the users who rely on the service, or may feed back the standard error information and target reference error information corresponding to the target error code to the users who rely on the service in a certain order. The present application does not impose any limitation on the feedback order of the standard error information and the target reference error information.

[0091] If the configuration center does not find the error registration information corresponding to the target error code in the error feedback message in the error information mapping file corresponding to the dependent service, that is, does not find the standard error information corresponding to the target error code, then the configuration center can convert the target error code into a fuzzy error code corresponding to the dependent service; then, in the unregistered error information log, the fuzzy error code corresponding to the dependent service and the target error information from the dependent service are recorded in association.

[0092] Specifically, if the configuration center does not find the error registration information corresponding to the target error code in the error information mapping file corresponding to the dependent service based on the target error code in the error feedback message sent by the dependent service, it means that the management user of the dependent service has not registered the error registration information corresponding to the target error code in the error information mapping file. In this case, the configuration center can convert the target error code into a fuzzy error code corresponding to the dependent service, and associate the fuzzy error code with the target error information in the error feedback message through the unregistered error information log.

[0093] It should be noted that the configuration center can pre-configure corresponding fuzzy error codes for various dependent services, and different dependent services have different corresponding fuzzy error codes. When the configuration center determines that the target error code in the error feedback message sent by the dependent service has not been registered, it is necessary to convert the target error code into the fuzzy error code of the dependent service accordingly. In this way, the target error information in the error feedback message is associated with the fuzzy error code and recorded in the unregistered error information log, which can make it easier to understand the dependent services from which various unregistered error messages in the unregistered error information log come, and then, it is convenient to feedback these unregistered error messages to the management users of the corresponding dependent services.

[0094] It should be noted that in the method provided in the embodiment of the present application, in addition to recording unregistered error information through the unregistered error information log, the configuration center can also periodically feedback unregistered error information to the management user of the dependent service. That is, the configuration center can read the fuzzy error code and error information recorded in the unregistered error information log within a preset period of time; then, for each fuzzy error code, determine the management user of the dependent service corresponding to the fuzzy error code, and send the error information associated with the fuzzy error code to the management user of the dependent service.

[0095] Specifically, the configuration center can periodically read the error information recorded in the unregistered error information log. For example, the configuration center can read the error information recorded in the unregistered error information log once a day. Since there is a one-to-one correspondence between the fuzzy error code and the dependent service, the configuration center can feed back all the unregistered error information generated by the same dependent service to the management user of the dependent service based on the fuzzy error code, that is, all the error information associated with the same fuzzy error code in the unregistered error information log actually comes from the dependent service corresponding to the fuzzy error code. Feedback of all the error information associated with the same fuzzy error code generated in the unregistered error information log within a preset period to the management user of the dependent service is more conducive to the management user of the dependent service to understand the unregistered error information generated by the dependent service within the preset period and perform subsequent registration processing on it.

[0096] It should be understood that the above-mentioned preset time period can be set according to actual needs, for example, it can be set to one day, one week, etc., and this application does not make any limitation on the preset time period.

[0097] It should be noted that, in actual applications, the configuration center can only provide the unregistered error information generated by the dependent service within the preset period to its management user for the dependent service that generates more unregistered error information within the preset period. That is, the configuration center can count the number of occurrences of each fuzzy error code recorded in the unregistered error information log within the preset period, and then arrange the fuzzy error codes in descending order according to the number of occurrences, and then, for each fuzzy error code ranked in the front preset position, determine the management user of the dependent service corresponding to the fuzzy error code, and send all the error information managed by the fuzzy error code to the management user.

[0098] Specifically, the configuration center can sort the fuzzy error codes in descending order according to the number of occurrences of each fuzzy error code in the unregistered error information log within a preset period, and determine the fuzzy error codes with a preset number of digits at the top of the order, and the dependent services corresponding to these fuzzy error codes have generated relatively more unregistered error information within the preset period. Furthermore, the configuration center can send the unregistered information generated within the preset period (i.e., the error information associated with the fuzzy error code corresponding to the dependent service) to the management user of each dependent service that generates relatively more unregistered error information.

[0099] It should be understood that the above-mentioned preset number of bits can be set according to actual needs, for example, it can be set to 5, 10, etc., and this application does not make any specific limitation on the preset number of bits.

[0100] It should be understood that in practical applications, in addition to determining the dependent services that generate more unregistered error messages by sorting the number of occurrences of each fuzzy error code in the unregistered error message log, the method provided in the embodiment of the present application can also determine the dependent services that generate more unregistered error messages in other ways. For example, it can be determined that the fuzzy error code whose number of occurrences exceeds a preset threshold, the dependent service corresponding to such fuzzy error code should be the dependent service that generates more unregistered error messages. The present application does not make any limitation on the implementation method of determining the dependent service that generates more unregistered error messages.

[0101] After receiving the unregistered error information generated by the dependent service sent by the configuration center, the management user of the dependent service can further register the unregistered error information in the error information mapping file corresponding to the dependent service. Specifically, the configuration center can receive the target error registration information uploaded by the management user of the dependent service based on the error information received; then, in the error code number segment corresponding to the dependent service, the corresponding error code is assigned to the target error registration information according to a preset order; and then, the target error registration information and its corresponding error code are written into the error information mapping file corresponding to the dependent service.

[0102] That is, after the management user of the dependent service receives the unregistered error information sent by the configuration center, the management user can register the information corresponding to the unregistered error information in the error information mapping file corresponding to the dependent service based on the received unregistered error information; that is, the management user can upload the target error registration information corresponding to the unregistered error information to the configuration center, and the target error registration information includes at least the standard error information corresponding to the unregistered error information, and can also include the error keyword corresponding to the unregistered error information. After the configuration center receives the target error registration information uploaded by the management user, it can perform the error information registration operation accordingly, that is, assign the corresponding error code to the target error registration information in the error code number segment corresponding to the dependent service in sequence, and write the corresponding relationship between the target error registration information and the error code into the error information mapping file corresponding to the dependent service. In this way, a positive feedback mechanism for unregistered error information is implemented, and a closed loop of the error information registration mechanism of the entire dependent service is implemented.

[0103] Compared with the implementation method in the related art of analyzing and processing the error information from the dependent service and then feeding back the processed error information to the user, the above-mentioned information feedback method no longer needs to process the error information sent by the dependent service. It can directly search for the standard error information corresponding to the target error code sent by the dependent service in the error information mapping file corresponding to the dependent service, and feed back the standard error information to the user; in this way, no matter whether the error information sent by the dependent service is standardized, it will not affect the error information fed back to the user, thereby ensuring that the standard error information fed back to the user is highly accurate and readable.

[0104] In order to facilitate further understanding of the information feedback method provided in the embodiment of the present application, the following is an overall exemplary introduction to the error information registration stage, the application stage of feeding back error information to the user based on the error information mapping file, and the feedback stage of registering unregistered error information in the error information mapping file.

[0105] See also Figure 3 , Figure 3 The following is a flow chart of the error information registration phase provided in the embodiment of the present application. Since there are many dependent services in the distributed software system, it is necessary to establish a complete error information registration mechanism so that each dependent service can independently and standardizedly maintain its own error information. Figure 3 As shown, the following steps may be specifically included:

[0106] (1) For a dependent service newly connected to a distributed software system, the configuration center needs to allocate a corresponding error code segment and a dependent service identifier for the dependent service, and create an error information mapping file corresponding to the dependent service.

[0107] (2) The error registration information uploaded by the management user of the dependent service is registered in the error information mapping file corresponding to the dependent service in sequence. The error registration information here should include necessary registration information such as standard error information (including English error information and Chinese registration information), and optional registration information such as error keywords can also be added to the error registration information according to actual needs.

[0108] (3) The configuration center executes an error information automatic generation script, which can perform the following operations:

[0109] Verify whether the error registration information is standardized, for example, whether it contains necessary registration information, whether the error information identifier corresponding to the error registration information is repeated with the error information identifier corresponding to the error registration information already in the error information mapping file, etc.;

[0110] After the error registration information is verified, a corresponding error code is assigned to the error registration information in sequence in the error code number segment assigned to the dependent service, thereby avoiding conflicts between error codes corresponding to different error registration information.

[0111] (4) Generate an error information mapping file corresponding to the dependent service so that after the configuration center reads the error feedback message returned by the dependent service, it can obtain the corresponding standard error information based on the error information mapping file.

[0112] See also Figure 4 , Figure 4 The flowchart of the application phase of feeding back error information to users based on the error information mapping file provided in the embodiment of the present application is as follows. After the error information mapping file corresponding to the dependent service is generated, the error handling mechanism of the configuration center can automatically perform the mapping conversion of the error code and the reading of the standard error information. The mapping conversion and information reading process is as follows: Figure 4 As shown, the following steps may be specifically included:

[0113] (1) Receive an error feedback message returned by a dependent service and parse the error feedback message.

[0114] (2) When the target error code carried in the error feedback message is 0, the configuration center can consider that the dependent service responds successfully and obtain the response result of the dependent service, and then construct a successful (error-free) result in the error information structure fed back to the user and return it to the user.

[0115] (3) When the target error code carried in the error feedback message is not 0, read the error information mapping file corresponding to the dependent service; search in the error information mapping file whether there is error registration information corresponding to the target error code; if there is error registration information corresponding to the target error code, return the standard error information in the error registration information to the user; if there is error registration information corresponding to the target error code in the error information mapping file, convert the target error code into a fuzzy error code corresponding to the dependent service, and associate the fuzzy error code with the target error information in the error feedback message for logging and supervisory reporting.

[0116] See also Figure 5 , Figure 5 A flow chart of the feedback phase of registering unregistered error information in an error information mapping file provided by an embodiment of the present application. Figure 5As shown, the configuration center can use a scheduled script to read the log every day, read out the recorded unregistered error information, and according to the fuzzy error code associated with the unregistered error information, push the unregistered error information to the corresponding dependent service management user through the information forwarding robot; in this process, the fuzzy error code can be reversed according to the number of occurrences to find the dependent service management user corresponding to the fuzzy error code with a large number of occurrences, and then the unregistered error information generated by such dependent services can be sent to the corresponding management user, so that the unregistered error information can be registered in the error information mapping file accordingly. In this way, the positive feedback mechanism of the unregistered error information is realized, and the closed loop of the error information registration mechanism of the entire dependent service is realized.

[0117] Figure 6 The curve graph shown in FIG. 1 represents the change in the amount of fuzzy error information received by the configuration center from the application programming interface (API) dependent service after adopting the method provided in the embodiment of the present application; Figure 6 As shown, after adopting the method provided in the embodiment of the present application, the amount of ambiguous error information received by the configuration center from the API dependent services is significantly reduced. Figure 7 The curves in (a) and (b) represent the changes in the amount of user complaints received by the distributed software system for different dependent services after the method provided in the embodiment of the present application is adopted; Figure 7 As shown in (a) and (b), after adopting the method provided in the embodiment of the present application, the number of user complaints received by the distributed software system for different dependent services is significantly reduced. User complaints here refer to complaints made by users due to not understanding the error information they received.

[0118] With respect to the information feedback method described above, the present application also provides a corresponding information feedback device to enable the above information feedback method to be applied and implemented in practice.

[0119] See also Figure 8 , Figure 8 It is the above Figure 2 The structure diagram of an information feedback device 800 corresponding to the information feedback method shown in FIG. Figure 8 As shown, the information feedback device 800 includes:

[0120] The message receiving module 801 is used to receive an error feedback message from a dependent service; the error feedback message includes a target error code;

[0121] A file calling module 802 is used to call the error information mapping file corresponding to the dependent service; the error information mapping file is constructed based on the error code in the error code number segment corresponding to the dependent service and the error registration information, and the error registration information includes standard error information;

[0122] An information search module 803 is used to search the standard error information corresponding to the target error code in the error information mapping file;

[0123] The information feedback module 804 is used to feed back the standard error information corresponding to the target error code to the user who relies on the service when the standard error information corresponding to the target error code is found.

[0124] Optional, in Figure 8 Based on the information feedback device shown, see Fig. 9 , Fig. 9 A schematic diagram of the structure of another information feedback device 900 provided in an embodiment of the present application; Fig. 9 As shown, the information feedback device also includes:

[0125] An error code detection module 901 is used to detect whether the target error code is a success response code;

[0126] The error code detection module 901 is further configured to, when the target error code is the success response code, call the information feedback module 804 to obtain a response result of the dependent service, and feed back the response result to a user of the dependent service;

[0127] The error code detection module 901 is further configured to, when the target error code is not the success response code, call the file calling module 802 to execute the error information mapping file corresponding to the call of the dependent service.

[0128] Optional, in Figure 8 Based on the information feedback device shown, see Fig.10 , Fig.10 A structural diagram of another information feedback device 1000 provided in an embodiment of the present application; Fig.10 As shown, the information feedback device also includes:

[0129] The file construction module 1001 is used to assign a corresponding error code number segment to the dependent service and create the error information mapping file; obtain error registration information for the dependent service; assign a corresponding error code to the error registration information in the error code number segment according to a preset order; and write the correspondence between the error code and the error registration information into the error information mapping file.

[0130] Optional, in Fig.10 Based on the information feedback device shown, the file construction module 1001 is also used for:

[0131] Before assigning the corresponding error code to the error registration information in the error code number segment in a preset order, verifying whether the error registration information meets a preset specification condition; the preset specification condition includes at least one of the following: the error registration information includes necessary registration information, and the information identifier corresponding to the error registration information is not repeated with the information identifier corresponding to the error registration information already in the error information mapping file;

[0132] In the case where the error registration information meets the preset specification condition, the step of assigning a corresponding error code to the error registration information in a preset order in the error code number segment is performed.

[0133] Optional, in Figure 8 Based on the information feedback device shown, see Fig.11 , Fig.11 This is a schematic diagram of the structure of another information feedback device 1100 provided in an embodiment of the present application. Fig.11 In the information feedback device shown, the error feedback message also includes target error information, and the error registration information also includes error keywords;

[0134] The information search module 803 is further used to search for an error keyword corresponding to the target error code in the error information mapping file;

[0135] The information feedback device also includes:

[0136] A reference information generating module 1101, configured to generate target reference error information according to the target error information and the error keyword corresponding to the target error code;

[0137] The information feedback module 804 is further configured to feed back the target reference error information to the user relying on the service.

[0138] Optional, in Figure 8 Based on the information feedback device shown, see Fig.12 , Fig.12 FIG. 1 is a schematic diagram of another information feedback device 1200 provided in an embodiment of the present application. Fig.12 As shown, the information feedback device also includes:

[0139] The logging module 1201 is used to convert the target error code into a fuzzy error code corresponding to the dependent service if the standard error information corresponding to the target error code is not found; and to associate and record the fuzzy error code corresponding to the dependent service and the target error information in the unregistered error information log.

[0140] Optional, in Fig.12 Based on the information feedback device shown, see Fig.13 , Fig.13 FIG. 1 is a schematic diagram of another information feedback device 1300 provided in an embodiment of the present application. Fig.13 As shown, the information feedback device also includes:

[0141] The first information reporting module 1301 is used to read the fuzzy error code and error information recorded in the unregistered error information log within a preset time period; for each fuzzy error code, determine the management user of the dependent service corresponding to the fuzzy error code, and send the error information associated with the fuzzy error code to the management user.

[0142] Optional, in Fig.12 Based on the information feedback device shown, see Fig.14 , Fig.14 FIG. 1 is a schematic diagram of another information feedback device 1400 provided in an embodiment of the present application. Fig.14 As shown, the information feedback device also includes:

[0143] The second information reporting module 1401 is used to count the number of occurrences of each of the fuzzy error codes recorded in the unregistered error information log within the preset time period; arrange the fuzzy error codes in descending order of the number of occurrences; for each of the fuzzy error codes ranked in the front preset position, determine the management user of the dependent service corresponding to the fuzzy error code, and send the error information associated with the fuzzy error code to the management user.

[0144] Optional, in Fig.13 or Fig.14 Based on the information feedback device shown, see Fig.15 , Fig.14 FIG. 1 is a schematic diagram of the structure of another information feedback device 1500 provided in an embodiment of the present application. Fig.15 As shown, the information feedback device also includes:

[0145] The error information registration module 1501 is used to receive the target error registration information uploaded by the management user based on the error information; assign corresponding error codes to the target error registration information in the error code number segment corresponding to the dependent service according to a preset order; and write the target error registration information and its corresponding error code into the error information mapping file corresponding to the dependent service.

[0146] The above-mentioned information feedback device no longer needs to process the error information sent by the dependent service. It can directly search for the standard error information corresponding to the target error code sent by the dependent service in the error information mapping file corresponding to the dependent service and feedback it to the user; in this way, whether the error information sent by the dependent service is standardized or not, it will not affect the error information fed back to the user, thereby ensuring that standard error information with high accuracy and readability is fed back to the user.

[0147] The embodiment of the present application also provides a device for feeding back error information, which may specifically be a server, corresponding to the configuration center mentioned in the above method embodiment. The server provided in the embodiment of the present application will be introduced from the perspective of hardware entity below.

[0148] See also Fig.16 , Fig.16 A schematic diagram of the structure of a server 1600 provided for an embodiment of the present application. The server 1600 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1622 (for example, one or more processors) and a memory 1632, and one or more storage media 1630 (for example, one or more mass storage devices) storing application programs 1642 or data 1644. Among them, the memory 1632 and the storage medium 1630 may be short-term storage or permanent storage. The program stored in the storage medium 1630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1622 may be configured to communicate with the storage medium 1630 to execute a series of instruction operations in the storage medium 1630 on the server 1600.

[0149] The server 1600 may also include one or more power supplies 1626, one or more wired or wireless network interfaces 1650, one or more input and output interfaces 1658, and / or one or more operating systems 1641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0150] The steps performed by the server in the above embodiment can be based on the Fig.16 The server structure shown.

[0151] The CPU 1622 is used to execute the following steps:

[0152] Receiving an error feedback message from a dependent service; the error feedback message includes a target error code;

[0153] Calling an error information mapping file corresponding to the dependent service; the error information mapping file is constructed based on the error code in the error code number segment corresponding to the dependent service and error registration information, wherein the error registration information includes standard error information;

[0154] In the error information mapping file, searching for standard error information corresponding to the target error code;

[0155] When the standard error information corresponding to the target error code is found, the standard error information corresponding to the target error code is fed back to the user who relies on the service.

[0156] Optionally, the CPU 1622 may also be used to execute steps of any implementation of the information feedback method provided in the embodiments of the present application.

[0157] An embodiment of the present application further provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute any one of the implementation methods of the information feedback method described in the aforementioned embodiments.

[0158] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes any one of the implementations of the information feedback method described in the above embodiments.

[0159] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0160] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0161] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0162] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0163] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store computer programs.

[0164] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0165] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An information feedback method, characterized in that: The method comprises: Receiving an error feedback message from a dependent service; the error feedback message includes a target error code and target error information; Calling an error information mapping file corresponding to the dependent service; the error information mapping file is constructed based on the error code in the error code number segment corresponding to the dependent service and error registration information, wherein the error registration information includes standard error information; In the error information mapping file, searching for standard error information corresponding to the target error code; In the case where the standard error information corresponding to the target error code is found, the standard error information corresponding to the target error code is fed back to the user relying on the service; If the standard error information corresponding to the target error code is not found, converting the target error code into a fuzzy error code corresponding to the dependent service; In the unregistered error information log, the fuzzy error code corresponding to the dependent service and the target error information are recorded in association; Counting the number of occurrences of each of the fuzzy error codes recorded in the unregistered error information log within a preset time period; Arrange the fuzzy error codes in descending order of occurrence frequency; For each of the fuzzy error codes that are ranked in front of a preset number of digits, a management user of a dependent service corresponding to the fuzzy error code is determined, and error information associated with the fuzzy error code is sent to the management user.

2. The method according to claim 1, characterized in that Before calling the error information mapping file corresponding to the dependent service, the method further includes: Detecting whether the target error code is a preset success response code; If the target error code is the success response code, obtaining a response result of the dependent service, and feeding back the response result to a user of the dependent service; If the target error code is not the success response code, the error information mapping file corresponding to the call of the dependent service is executed.

3. The method according to claim 1, characterized in that The error information mapping file is constructed in the following way: Allocate a corresponding error code segment for the dependent service and create the error information mapping file; Obtaining the error registration information for the dependent service; assigning corresponding error codes to the error registration information in a preset order in the error code number segment; The corresponding relationship between the error code and the error registration information is written into the error information mapping file.

4. The method according to claim 3, characterized in that Before assigning corresponding error codes to the error registration information in the error code number segment according to a preset order, the method further includes: Verify whether the error registration information meets preset specification conditions; the preset specification conditions include at least one of the following: the error registration information includes necessary registration information, and the information identifier corresponding to the error registration information is not repeated with the information identifier corresponding to the error registration information already in the error information mapping file; In the case where the error registration information meets the preset specification condition, the step of assigning a corresponding error code to the error registration information in a preset order in the error code number segment is performed.

5. The method according to claim 1, characterized in that The error feedback message also includes target error information, and the error registration information also includes error keywords; the method also includes: In the error information mapping file, searching for an error keyword corresponding to the target error code; Generate target reference error information according to the target error information and the error keyword corresponding to the target error code; Feedback the target reference error information to the user of the dependent service.

6. The method according to claim 1, characterized in that The method further comprises: Reading the ambiguous error code and error message recorded in the unregistered error message log within a preset period of time; For each of the ambiguous error codes, a management user of a dependent service corresponding to the ambiguous error code is determined, and error information associated with the ambiguous error code is sent to the management user.

7. The method according to claim 1 or 6, characterized in that: The method further comprises: Receiving target error registration information uploaded by the management user based on the error information; Assigning a corresponding error code to the target error registration information in a preset order in the error code number segment corresponding to the dependent service; The target error registration information and its corresponding error code are written into the error information mapping file corresponding to the dependent service.

8. An information feedback device, characterized in that: The device comprises: A message receiving module, used to receive an error feedback message from a dependent service; the error feedback message includes a target error code and target error information; A file calling module, used to call the error information mapping file corresponding to the dependent service; the error information mapping file is constructed based on the error code in the error code number segment corresponding to the dependent service and the error registration information, and the error registration information includes standard error information; An information search module, used to search the standard error information corresponding to the target error code in the error information mapping file; An information feedback module, configured to feedback the standard error information corresponding to the target error code to the user relying on the service when the standard error information corresponding to the target error code is found; A log recording module, configured to convert the target error code into a fuzzy error code corresponding to the dependent service if the standard error information corresponding to the target error code is not found; and associate and record the fuzzy error code corresponding to the dependent service and the target error information in an unregistered error information log; The second information reporting module is used to count the number of occurrences of each of the fuzzy error codes recorded in the unregistered error information log within a preset time period; arrange the fuzzy error codes in descending order of the number of occurrences; for each of the fuzzy error codes ranked in the front preset position, determine the management user of the dependent service corresponding to the fuzzy error code, and send the error information associated with the fuzzy error code to the management user.

9. The device according to claim 8, characterized in that The device also includes: An error code detection module, used to detect whether the target error code is a success response code; The error code detection module is further configured to, when the target error code is the success response code, call the information feedback module to obtain a response result of the dependent service, and feed back the response result to a user of the dependent service; The error code detection module is further used to call the file calling module to execute the error information mapping file corresponding to the call of the dependent service when the target error code is not the success response code.

10. The device according to claim 8, characterized in that The device also includes: A file construction module is used to assign corresponding error code number segments to the dependent services and create the error information mapping file; obtain error registration information for the dependent services; assign corresponding error codes to the error registration information in the error code number segments according to a preset order; and write the correspondence between the error codes and the error registration information into the error information mapping file.

11. The device according to claim 10, characterized in that The file construction module is also used to: Before assigning the corresponding error code to the error registration information in the error code number segment in a preset order, verify whether the error registration information meets a preset specification condition; the preset specification condition includes at least one of the following: the error registration information includes necessary registration information, and the information identifier corresponding to the error registration information is not repeated with the information identifier corresponding to the error registration information already in the error information mapping file; In the case where the error registration information meets the preset specification condition, the step of assigning a corresponding error code to the error registration information in a preset order in the error code number segment is performed.

12. The device according to claim 8, characterized in that The error feedback message also includes target error information, and the error registration information also includes error keywords; The information search module is further used to search for an error keyword corresponding to the target error code in the error information mapping file; The device also includes: A reference information generating module, configured to generate target reference error information according to the target error information and the error keyword corresponding to the target error code; The information feedback module is further used to feed back the target reference error information to the user who relies on the service.

13. An information feedback system, characterized in that: The system includes a configuration center and dependent services of a distributed software system, and the configuration center and the business processing platform of the distributed software system are independent of each other; The dependent service is used to send an error feedback message to the configuration center; The configuration center is used to execute the information feedback method according to any one of claims 1 to 7.

14. A device, characterized in that The device includes a processor and a memory; The memory is used to store computer programs; The processor is configured to execute the information feedback method according to any one of claims 1 to 7 according to the computer program.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the information feedback method according to any one of claims 1 to 7.