Upstream and downstream platform communication method, device and electronic equipment

Through the upstream and downstream platform communication method, the downstream platform is managed uniformly using information tables and application interface credentials, solving the problem of cumbersome pre-development preparations in the existing technology and improving development efficiency.

CN115914381BActive Publication Date: 2024-11-15BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211327631.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2024-11-15
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

In the prior art, a lot of repetitive preparations are required before the development of open platform business, resulting in a significant delay in business development time.

Method used

Through an upstream and downstream platform communication method, the information table and application interface credentials are used to uniformly manage the configuration and interface of downstream platforms, and the communication between upstream and downstream platforms is realized, and preparations are simplified before development.

Benefits of technology

It improves the efficiency of preliminary preparations for communication between upstream and downstream platforms, reduces the consumption of human and material resources, and simplifies the business development process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914381B_ABST
    Figure CN115914381B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device and electronic device for upstream and downstream platform communication, which authorizes the downstream platform according to an acquired information table, so that the downstream platform can be uniformly managed through a management platform; configures the downstream interface of the downstream platform according to the information table and the acquired application interface credentials, and realizes docking with the downstream platform; sends the upstream message sent by the upstream platform to the downstream platform according to the downstream interface, thereby realizing unified management of the communication between the upstream platform and the downstream platform before development, and improving the efficiency of the preliminary preparation work for realizing communication between the upstream platform and the downstream platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to an upstream and downstream platform communication method, device and electronic device. Background Art

[0002] In the prior art, before developing services on an open platform, a large amount of repetitive preparation work, such as authorization and credential acquisition, is required, which greatly delays the time for service development.

[0003] Therefore, proposing an upstream and downstream platform communication method to uniformly manage the preparatory work before development and improve the efficiency of the preparatory work is an urgent problem to be solved. Summary of the invention

[0004] The present invention provides an upstream and downstream platform communication method, device and electronic device to solve the defect of the prior art that a large amount of repetitive preparation work is required, which greatly delays the time of business development, and realizes unified management of preparatory work before development through upstream and downstream platform communication, thereby improving the efficiency of preliminary preparation work.

[0005] The present disclosure provides an upstream and downstream platform communication method, comprising:

[0006] Authorize downstream platforms based on the information form obtained;

[0007] Configuring the downstream interface of the downstream platform according to the information table and the pre-acquired application interface credentials;

[0008] The upstream message sent by the upstream platform is sent to the downstream platform according to the downstream interface.

[0009] According to an upstream and downstream platform communication method provided by the present disclosure, authorizing the downstream platform according to the acquired information table includes:

[0010] Obtaining a basic information table and a special information table, wherein the basic information table includes information for configuring the upstream platform, and the special information table includes information for configuring the downstream platform;

[0011] Generate configuration data according to the basic information table and the special information table;

[0012] The downstream platform is authorized according to the configuration data.

[0013] According to an upstream and downstream platform communication method provided by the present disclosure, generating configuration data according to the basic information table and the special information table includes:

[0014] Push configuration data, encryption and decryption configuration data and a message queue are generated according to the basic information table and the special information table.

[0015] According to an upstream and downstream platform communication method provided by the present disclosure, configuring the downstream interface of the downstream platform according to the information table and the pre-acquired application interface credentials includes:

[0016] Processing the pre-acquired upstream interface configuration information of the upstream platform according to the push configuration data, the encryption and decryption configuration data and the pre-acquired application interface credentials to generate downstream interface configuration information;

[0017] The downstream interface configuration information is sent to the downstream platform so that the downstream platform configures the downstream interface according to the downstream interface configuration information.

[0018] According to an upstream and downstream platform communication method provided by the present disclosure, the upstream message sent by the upstream platform is sent to the downstream platform according to the downstream interface, including:

[0019] Acquire the upstream message sent by the upstream platform according to the upstream interface configuration information;

[0020] Processing the upstream message according to the encryption and decryption configuration data to obtain a decrypted message;

[0021] The decrypted message is sent to the downstream platform through the message queue via the downstream interface.

[0022] According to an upstream and downstream platform communication method provided by the present disclosure, the application interface credential is obtained through the following steps, including:

[0023] Determine the corresponding time distribution information according to the application identifier in the information table;

[0024] In the case where the time distribution information meets a preset condition, determining a refresh time of the application interface credential according to the time distribution information;

[0025] If the time distribution information does not meet the preset condition, returning to re-execute the step of determining the corresponding time distribution information according to the application identifier in the information table;

[0026] When the application interface credential is successfully acquired through the downstream platform according to the application interface credential refresh time, the application interface credential is saved in a cache and a database.

[0027] According to an upstream and downstream platform communication method provided by the present disclosure, when the time distribution information meets a preset condition, after determining the application interface credential refresh time according to the time distribution information, the method further includes:

[0028] If the application interface credential is not successfully obtained according to the application interface credential refresh time, obtaining the application interface credential from the cache and the database;

[0029] In the case where the application interface credential is not successfully obtained, the application interface credential is obtained through the upstream platform, and the application interface credential is saved in the cache and the database.

[0030] According to an upstream and downstream platform communication method provided by the present disclosure, there are multiple information tables, and the multiple information tables include different business processes with the same application identifier;

[0031] In the case where the application interface credential is not successfully obtained, obtaining the application interface credential through the upstream platform, and saving the application interface credential to the cache and the database, comprises:

[0032] In the case where the application interface credential is not successfully obtained in the cache and the database, determining a priority business process among the business processes included in the multiple information tables according to a preset distributed lock;

[0033] The application interface credentials are obtained through the upstream platform according to the priority business process, and the application interface credentials are saved in the cache and the database.

[0034] The present disclosure also provides an upstream and downstream platform communication device, comprising:

[0035] An authorization unit is used to obtain an information table, the information table including a basic information table and a special information table, the basic information table including information for configuring the upstream platform, and the special information table including information for configuring the downstream platform; generate configuration data according to the basic information table and the special information table; and authorize the downstream platform according to the configuration data;

[0036] A configuration unit, configured to establish interface configurations of the upstream platform and the downstream platform according to the information table and the acquired application interface credentials;

[0037] A transmission unit is used to send the upstream message sent by the upstream platform to the downstream platform according to the interface configuration.

[0038] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned upstream and downstream platform communication methods are implemented.

[0039] The present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-mentioned upstream and downstream platform communication methods.

[0040] The upstream and downstream platform communication method, device and electronic device provided by the present invention authorize the downstream platform according to the obtained information table, so that the downstream platform can be uniformly managed through the management platform; configure the downstream interface of the downstream platform according to the information table and the obtained application interface credentials to achieve docking with the downstream platform; send the upstream message sent by the upstream platform to the downstream platform according to the downstream interface, thereby achieving unified management of the communication between the upstream platform and the downstream platform before development, and improving the efficiency of the preliminary preparation work for communication between the upstream platform and the downstream platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0042] Figure 1 It is a flowchart of the upstream and downstream platform communication method provided by the present disclosure;

[0043] Figure 2 This is one of the schematic diagrams of the application interface credential acquisition process provided by the present disclosure;

[0044] Figure 3 This is the second schematic diagram of the application interface credential acquisition process provided by the present disclosure;

[0045] Figure 4 This is the third schematic diagram of the application interface credential acquisition process provided by the present disclosure;

[0046] Figure 5 is a schematic diagram of the structure of the upstream and downstream platform communication device provided by the present disclosure;

[0047] Figure 6 It is a schematic diagram of the structure of an electronic device provided by the present disclosure. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present disclosure.

[0049] The present disclosure provides a method for communication between upstream and downstream platforms. Figure 1 As shown, including:

[0050] S11. Authorize the downstream platform according to the obtained information table.

[0051] Specifically, the information table may include information for configuring the configuration items of the upstream platform and information for configuring the configuration items of the downstream platform.

[0052] S12. Configure the downstream interface of the downstream platform according to the information table and the pre-acquired application interface credentials.

[0053] S13: Send the upstream message sent by the upstream platform to the downstream platform according to the downstream interface.

[0054] In the disclosed embodiment, the downstream platform is authorized according to the obtained information table, so that the downstream platform can be uniformly managed through the management platform; the downstream interface of the downstream platform is configured according to the information table and the obtained application interface credentials to achieve docking with the downstream platform; the upstream message sent by the upstream platform is sent to the downstream platform according to the downstream interface, thereby achieving unified management of the communication between the upstream platform and the downstream platform before development, and improving the efficiency of the preliminary preparation work for communication between the upstream platform and the downstream platform.

[0055] According to an upstream and downstream platform communication method provided by the present disclosure, step S11 includes:

[0056] S111. Obtain a basic information table and a special information table, wherein the basic information table includes information for configuring the upstream platform, and the special information table includes information for configuring the downstream platform.

[0057] S112: Generate configuration data according to the basic information table and the special information table.

[0058] S113. Authorize the downstream platform according to the configuration data.

[0059] Specifically, an information table uploaded by the downstream platform or an information table pre-stored in the management platform can be obtained. The information table may include a basic information table and a special information table. The basic information table may include information that needs to be configured by the upstream platform, which may include but is not limited to authorized domain names, authorized callback addresses, and whitelists. In an example, the format of the basic information table is shown in Table 1.

[0060] Table 1 Basic information table

[0061]

[0062] The special information table may include configuration information belonging to the downstream platform set by the downstream platform itself. In one example, the downstream platform may generate information including but not limited to the "third-party platform identity", "third-party platform application identity" and "third-party application key" applied by the downstream platform based on metadata management, wherein the third-party platform identity is used to distinguish different downstream platforms, the third-party platform application identity is used to distinguish different applications on the downstream platform, and the third-party application key is used to manage third-party applications. In another example, the format of the special information table is shown in Table 2.

[0063] Table 2 Special information table

[0064]

[0065]

[0066] S112: Generate configuration data according to the basic information table and the special information table.

[0067] Optionally, step S112 may specifically include:

[0068] Push configuration data, encryption and decryption configuration data and a message queue are generated according to the basic information table and the special information table.

[0069] Specifically, the push configuration data represents the configuration information required by the upstream platform when pushing to the downstream platform, the encryption and decryption configuration data represents the configuration information required by the downstream platform when performing encryption and decryption operations when receiving pushes, and the message queue represents the queue that the upstream platform needs to use when pushing to the downstream platform. In an example, the push configuration data and message queue can be generated by the authorized domain name in the basic information table and the third-party platform identity in the special information table, and the encryption and decryption configuration data can be generated by the third-party platform password and the third-party platform message decryption key in the special information table.

[0070] S113. Authorize the downstream platform according to the configuration data.

[0071] Specifically, the configuration data can be sent to the downstream platform so that the downstream platform can be configured according to the configuration data to complete the authorization of the downstream platform. In one example, the configuration data can be sent to the downstream platform through a jump link according to the third-party platform identifier in the special information table. The jump link can be used as the address for the downstream platform to authorize its businesses (including but not limited to mini programs or public accounts, etc.) to complete the authorization of the downstream platform.

[0072] In the disclosed embodiments, configuration data is generated by obtaining a basic information table and a special information table. Configuration data can be easily generated through table information without the need for the business team to spend a lot of energy on preparatory work. The downstream platform is authorized based on the configuration data. Authorization of the downstream platform can be easily completed through the generated configuration data, reducing the manpower and material resources consumed in the early preparation work.

[0073] According to an upstream and downstream platform communication method provided by the present disclosure, step S12 includes:

[0074] S121. Process the pre-acquired upstream interface configuration information of the upstream platform according to the push configuration data, the encryption and decryption configuration data, and the pre-acquired application interface credentials to generate downstream interface configuration information.

[0075] 122. Send the downstream interface configuration information to the downstream platform so that the downstream platform configures the downstream interface according to the downstream interface configuration information.

[0076] Specifically, the upstream platform has multiple different types of interfaces. The management platform can obtain application interface credentials, encapsulate the upstream interface configuration information of the upstream platform according to the push configuration data, encryption and decryption configuration data and the pre-acquired application interface credentials, convert the upstream interface configuration information into downstream interface configuration information, send the downstream interface configuration information to the downstream platform, and the downstream platform configures the downstream interface according to the downstream interface configuration information. In an example, different downstream platforms can be distinguished according to the push configuration data and encryption and decryption configuration data, and the configuration information of the http (a protocol format) interface of the upstream platform can be converted into the configuration information of the specified jsf (a protocol format) interface, and sent to the downstream platform in the form of a jar package (a compressed package format) or a maven dependency file (a file format).

[0077] In the embodiment of the present disclosure, the upstream interface configuration information of the upstream platform is processed according to the push configuration data, the encryption and decryption configuration data and the pre-acquired application interface credentials, and the downstream interface configuration information is generated. The downstream interface configuration information is sent to the downstream platform so that the downstream platform configures the downstream interface according to the downstream interface configuration information, thereby realizing interface management between the downstream platform and the upstream platform, and facilitating the subsequent downstream platform to accept push messages or messages sent by the upstream platform according to the downstream interface.

[0078] According to an upstream and downstream platform communication method provided by the present disclosure, step S13 specifically includes:

[0079] S131. Acquire an upstream message sent by the upstream platform according to the upstream interface configuration information.

[0080] S132: Process the upstream message according to the encryption and decryption configuration data to obtain a decrypted message.

[0081] Specifically, the upstream message may be processed according to the encryption and decryption configuration to obtain a decrypted message. In an example, the format of the decrypted message is shown in Table 3.

[0082] Table 3 Decrypted message

[0083]

[0084] S133: Send the decrypted message to the downstream platform through the message queue and the downstream interface.

[0085] Specifically, the upstream message sent by the upstream platform can be obtained through the upstream interface according to the upstream interface configuration information, the upstream message is decrypted according to the encryption and decryption configuration data to obtain the decrypted message, and then the decrypted message is sent to the downstream platform through the message queue and the downstream interface.

[0086] In the disclosed embodiment, the upstream message sent by the upstream platform is obtained according to the upstream interface configuration information, and the upstream message is decrypted according to the encryption and decryption configuration data to obtain a decrypted message, thereby ensuring the security of the message during the push process. The decrypted message is sent to the downstream platform through the message queue and the downstream interface to realize unified management of the message during the push process.

[0087] According to an upstream and downstream platform communication method provided by the present disclosure, the application interface credential is obtained through the following steps, including:

[0088] S21. Determine corresponding time distribution information according to the application identifier in the information table.

[0089] Specifically, the time distribution information corresponding to the application identifier can be calculated according to the application identifier in the information table. In one example, the time distribution information corresponding to the application identifier can be determined by a preset relationship table, for example, the time for obtaining the application interface credential corresponding to an application identifier can be determined according to the preset relationship table.

[0090] In another example, a hash value can be calculated based on an application identifier, time can be divided into multiple (for example, 24) first nodes according to a first preset rule, time can be divided into multiple (for example, 23) second nodes according to a second preset rule, the correspondence between the second nodes and the first nodes is determined, the hash value is modulo the number of the first nodes and the second nodes, and the time corresponding to the modulo result is used as the time distribution information.

[0091] S22: When the time distribution information satisfies a preset condition, determine a refresh time of the application interface credential according to the time distribution information.

[0092] Specifically, in one example, the preset condition may be that the time distribution information satisfies a discrete standard, and when the preset condition is met, the application interface credential refresh time is determined according to the time distribution information.

[0093] S23: If the time distribution information does not meet the preset condition, return to re-execute the step of determining the corresponding time distribution information according to the application identifier in the information table.

[0094] S24: When the application interface credential is successfully obtained through the downstream platform according to the application interface credential refresh time, the application interface credential is saved to a cache and a database.

[0095] Specifically, after successfully obtaining the application interface credentials from the downstream platform according to the application interface credential refresh time, the application interface credentials can be saved in the cache and database to achieve temporary storage of the application interface credentials, which is convenient for subsequent calls and obtaining the application interface credentials under special circumstances.

[0096] In an example, Figure 2As shown, the number of the first node and the second node is determined, the time period is divided according to the first node and the second node, and the time distribution information is determined according to the application identifier, the first node and the second node. When the time distribution information meets the discrete standard, the application interface credential refresh time is determined according to the time distribution information; when the time distribution information does not meet the discrete standard, it is determined whether the discrete number is met. If the discrete number is met, the application interface credential refresh time is determined according to the time distribution information; if the discrete number is not met, a preset number of first nodes and / or second nodes is added, and the process returns to re-execute the determination of the number of the first node and the second node for a new round of discretization. After determining the application interface credential refresh time according to the time distribution information, the application interface credential is obtained from the downstream platform according to the application interface credential refresh time.

[0097] In another example, during the application interface credential refresh time, if the application of the corresponding downstream platform is in use, the acquisition of the application interface credential according to the application interface credential refresh time can be suspended, and the application interface credential can be obtained from the downstream platform after the preset time; the application interface credential can also be forcibly obtained.

[0098] In the disclosed embodiment, the corresponding time distribution information is determined according to the application identifier in the information table, and when the time distribution information satisfies the preset conditions, the application interface credential refresh time is determined according to the time distribution information, and the application interface credential is obtained according to the application interface credential refresh time. Since the applications of the downstream platform are time-sensitive, if the application interface credential is obtained too frequently, it will inevitably cause a waste of resources, and obtaining and refreshing the application interface credential at the same time will also cause excessive pressure on the platform and the network. Through the above steps, it is possible to obtain and refresh the application interface credential at different dispersed times, reducing the waste of resources and the pressure on the platform and the network.

[0099] According to an upstream and downstream platform communication method provided by the present disclosure, Figure 3 As shown, after step S22, the following steps are also included:

[0100] S31. If the application interface credential is not successfully acquired according to the application interface credential refresh time, acquire the application interface credential from the cache and the database.

[0101] S32: If the application interface credential is not successfully obtained, obtain the application interface credential through the upstream platform, and save the application interface credential to the cache and the database.

[0102] Specifically, if the application interface credential is not successfully obtained according to the application interface credential refresh time, the application interface credential can be attempted to be obtained in the cache and database, thereby ensuring the acquisition of the application interface credential. If the application interface credential cannot be obtained in the cache and database, the application interface credential can also be obtained through the upstream platform and saved in the cache and database.

[0103] In the disclosed embodiment, in the event that the application interface credentials fail to be obtained through the downstream platform, the application interface credentials may be obtained from the cache and the database. If this still fails, the application interface credentials may be obtained directly through the upstream platform. By obtaining the application interface credentials through multiple means, the acquisition of the application interface credentials is guaranteed to the greatest extent, making it convenient to perform interface management based on the application interface credentials.

[0104] According to an upstream and downstream platform communication method provided by the present disclosure, there are multiple information tables, and the multiple information tables include different business processes with the same application identifier; Figure 4 As shown, step S32 includes:

[0105] S41. In the case where the application interface credential is not successfully obtained, a priority business process is determined from the business processes included in the multiple information tables according to a preset distributed lock.

[0106] S42: Obtain the application interface credential through the upstream platform according to the priority service process, and save the application interface credential to the cache and the database.

[0107] Specifically, when there are different business processes with the same application identifier in multiple information tables, different business processes all need to obtain the application interface credentials corresponding to the same application identifier. At this time, the application interface credentials cannot be obtained in the downstream platform, cache, and database. If multiple business processes are allowed to obtain the application interface credentials through the upstream platform at the same time, it will cause a waste of resources. At this time, a preset distributed lock is used to determine which business process obtains the application interface credentials through the upstream platform, and a unique distributed lock is obtained according to different business processes. The business process that obtains the distributed lock is used as the priority business process. According to the priority business process, the application interface credentials are obtained through the upstream platform, and the application interface credentials are saved in the cache and database.

[0108] In the disclosed embodiment, when multiple information tables include different business processes with the same application identifier, if the application interface credentials are not successfully obtained in the cache and the database, the priority business process is determined by a preset distributed lock, and the application interface credentials are obtained through the upstream platform according to the priority business process, and the application interface credentials are saved in the cache and the database, thereby avoiding resource waste and network congestion caused by multiple business processes simultaneously obtaining application interface credentials through the upstream platform, and improving the efficiency of obtaining application interface credentials.

[0109] The upstream and downstream platform communication device provided in the embodiment of the present disclosure is described below. The upstream and downstream platform communication device described below and the upstream and downstream platform communication method described above can refer to each other.

[0110] The present disclosure also provides an upstream and downstream platform communication device, such as Figure 5 As shown, including:

[0111] The authorization unit 51 is used to authorize the downstream platform according to the acquired information table.

[0112] The configuration unit 52 is used to configure the downstream interface of the downstream platform according to the information table and the pre-acquired application interface credentials.

[0113] The transmission unit 53 sends the upstream message sent by the upstream platform to the downstream platform according to the downstream interface.

[0114] In the disclosed embodiment, the downstream platform is authorized according to the obtained information table, so that the downstream platform can be uniformly managed through the management platform; the downstream interface of the downstream platform is configured according to the information table and the obtained application interface credentials to achieve docking with the downstream platform; the upstream message sent by the upstream platform is sent to the downstream platform according to the downstream interface, thereby achieving unified management of the preparatory work before development and improving the efficiency of the early preparation work.

[0115] According to an upstream and downstream platform communication device provided by the present disclosure, the authorization unit 51 is specifically used to obtain a basic information table and a special information table, wherein the basic information table includes information for configuring the upstream platform, and the special information table includes information for configuring the downstream platform; generate configuration data according to the basic information table and the special information table; and authorize the downstream platform according to the configuration data.

[0116] According to an upstream and downstream platform communication device provided by the present disclosure, the authorization unit 51 is specifically used to generate push configuration data, encryption and decryption configuration data and a message queue according to the basic information table and the special information table.

[0117] According to an upstream and downstream platform communication device provided by the present disclosure, the configuration unit 52 is specifically used to process the upstream interface configuration information of the pre-acquired upstream platform according to the push configuration data, the encryption and decryption configuration data and the pre-acquired application interface credentials to generate downstream interface configuration information; and send the downstream interface configuration information to the downstream platform so that the downstream platform configures the downstream interface according to the downstream interface configuration information.

[0118] According to an upstream and downstream platform communication device provided by the present disclosure, the transmission unit 53 is specifically used to obtain the upstream message sent by the upstream platform according to the upstream interface configuration information; process the upstream message according to the encryption and decryption configuration data to obtain a decrypted message; and send the decrypted message to the downstream platform through the message queue via the downstream interface.

[0119] According to an upstream and downstream platform communication device provided by the present disclosure, the configuration unit 52 is also used to determine the corresponding time distribution information according to the application identifier in the information table; when the time distribution information meets the preset conditions, determine the application interface credential refresh time according to the time distribution information; when the time distribution information does not meet the preset conditions, return to re-execute the determination of the corresponding time distribution information according to the application identifier in the information table; when the application interface credential is successfully obtained through the downstream platform according to the application interface credential refresh time, save the application interface credential to the cache and database.

[0120] According to an upstream and downstream platform communication device provided by the present disclosure, the configuration unit 52 is also used to obtain the application interface credential in the cache and the database if the application interface credential is not successfully obtained according to the application interface credential refresh time; if the application interface credential is not successfully obtained, obtain the application interface credential through the upstream platform and save the application interface credential to the cache and the database.

[0121] According to an upstream and downstream platform communication device provided by the present disclosure, there are multiple information tables, and the multiple information tables include different business processes with the same application identifier; the configuration unit 52 is specifically used to determine the priority business process among the business processes included in the multiple information tables according to the preset distributed lock when the application interface credential is not successfully obtained; obtain the application interface credential through the upstream platform according to the priority business process, and save the application interface credential to the cache and the database.

[0122] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the upstream and downstream platform communication method, which includes: authorizing the downstream platform according to the acquired information table; establishing the interface configuration of the upstream platform and the downstream platform according to the information table and the acquired application interface credentials; and sending the upstream message sent by the upstream platform to the downstream platform according to the interface configuration.

[0123] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the embodiment of the present disclosure is essentially or the part that contributes to the prior art or the 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 disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk.

[0124] On the other hand, the present disclosure also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the upstream and downstream platform communication methods provided by the above methods, and the method includes: authorizing the downstream platform according to the acquired information table; establishing an interface configuration between the upstream platform and the downstream platform according to the information table and the acquired application interface credentials; and sending the upstream message sent by the upstream platform to the downstream platform according to the interface configuration.

[0125] On the other hand, the present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the above-mentioned upstream and downstream platform communication methods, the method comprising: authorizing the downstream platform according to the acquired information table; establishing the interface configuration between the upstream platform and the downstream platform according to the information table and the acquired application interface credentials; and sending the upstream message sent by the upstream platform to the downstream platform according to the interface configuration.

[0126] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure 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 disclosure.

Claims

1. A method for communication between upstream and downstream platforms, characterized in that: include: Obtain an information table, the information table including a basic information table and a special information table, the basic information table including information for configuring the upstream platform, the special information table including information for configuring the downstream platform; the basic information table includes an authorized domain name; the special information table includes a third-party platform identity, a third-party platform application identifier, and a third-party application key; wherein the third-party platform identity is used to distinguish different downstream platforms, the third-party platform application identifier is used to distinguish different applications on the downstream platform, and the third-party application key is used to manage third-party applications; Generate configuration data according to the basic information table and the special information table; the generating of configuration data according to the basic information table and the special information table includes: generating push configuration data, encryption and decryption configuration data and message queue according to the basic information table and the special information table; wherein, the push configuration data represents the configuration information required by the upstream platform when pushing to the downstream platform, the encryption and decryption configuration data represents the configuration information required by the downstream platform when performing encryption and decryption operations when receiving the push, and the message queue represents the queue required by the upstream platform when pushing to the downstream platform; the generating of push configuration data, encryption and decryption configuration data and message queue according to the basic information table and the special information table is specifically: generating push configuration data and message queue through the authorized domain name in the basic information table and the third-party platform identity in the special information table, and generating encryption and decryption configuration data through the third-party platform password and the third-party platform message decryption key in the special information table; Authorizing the downstream platform according to the configuration data; the authorizing the downstream platform according to the configuration data is specifically: sending the configuration data to the downstream platform through a jump link according to the third-party platform identifier in the special information table, and the jump link is used as the address authorized by the downstream platform for its business, thereby completing the authorization of the downstream platform; Configuring the downstream interface of the downstream platform according to the information table and the pre-acquired application interface credentials; The upstream message sent by the upstream platform is sent to the downstream platform according to the downstream interface.

2. The upstream and downstream platform communication method according to claim 1, characterized in that: The configuring the downstream interface of the downstream platform according to the information table and the pre-acquired application interface credentials includes: Processing the pre-acquired upstream interface configuration information of the upstream platform according to the push configuration data, the encryption and decryption configuration data and the pre-acquired application interface credentials to generate downstream interface configuration information; The downstream interface configuration information is sent to the downstream platform so that the downstream platform configures the downstream interface according to the downstream interface configuration information.

3. The upstream and downstream platform communication method according to claim 2, characterized in that: The sending the upstream message sent by the upstream platform to the downstream platform according to the downstream interface includes: Acquire the upstream message sent by the upstream platform according to the upstream interface configuration information; Processing the upstream message according to the encryption and decryption configuration data to obtain a decrypted message; The decrypted message is sent to the downstream platform through the message queue via the downstream interface.

4. The upstream and downstream platform communication method according to claim 1, characterized in that: The application interface credentials are obtained through the following steps, including: Determine the corresponding time distribution information according to the application identifier in the information table; In the case where the time distribution information meets a preset condition, determining a refresh time of the application interface credential according to the time distribution information; If the time distribution information does not meet the preset condition, returning to re-execute the step of determining the corresponding time distribution information according to the application identifier in the information table; When the application interface credential is successfully acquired through the downstream platform according to the application interface credential refresh time, the application interface credential is saved in a cache and a database.

5. The upstream and downstream platform communication method according to claim 4, characterized in that: When the time distribution information satisfies a preset condition, after determining the application interface credential refresh time according to the time distribution information, the method further includes: If the application interface credential is not successfully obtained according to the application interface credential refresh time, obtaining the application interface credential from the cache and the database; In the case where the application interface credential is not successfully obtained, the application interface credential is obtained through the upstream platform, and the application interface credential is saved in the cache and the database.

6. The upstream and downstream platform communication method according to claim 5, characterized in that: There are multiple information tables, and the multiple information tables include different business processes with the same application identifier; In the case where the application interface credential is not successfully obtained, obtaining the application interface credential through the upstream platform and saving the application interface credential to the cache and the database includes: In the case where the application interface credential is not successfully obtained in the cache and the database, determining a priority business process among the business processes included in the multiple information tables according to a preset distributed lock; The application interface credentials are obtained through the upstream platform according to the priority business process, and the application interface credentials are saved in the cache and the database.

7. An upstream and downstream platform communication device, characterized in that: include: An authorization unit is used to obtain an information table, the information table includes a basic information table and a special information table, the basic information table includes information for configuring the upstream platform, and the special information table includes information for configuring the downstream platform; the basic information table includes an authorized domain name; the special information table includes a third-party platform identity, a third-party platform application identifier, and a third-party application key; wherein the third-party platform identity is used to distinguish different downstream platforms, the third-party platform application identifier is used to distinguish different applications on the downstream platform, and the third-party application key is used to manage third-party applications; configuration data is generated according to the basic information table and the special information table; the generation of configuration data according to the basic information table and the special information table includes: generating push configuration data, encryption and decryption configuration data and a message queue according to the basic information table and the special information table; wherein the push configuration data indicates that the upstream platform is configuring the downstream platform The configuration information required for push, the encryption and decryption configuration data indicates the configuration information required for the downstream platform to perform encryption and decryption operations when receiving push, and the message queue indicates the queue that the upstream platform needs to use when pushing to the downstream platform; the push configuration data, encryption and decryption configuration data and message queue are generated according to the basic information table and the special information table, specifically: the push configuration data and message queue are generated through the authorized domain name in the basic information table and the third-party platform identity in the special information table, and the encryption and decryption configuration data are generated through the third-party platform password and the third-party platform message decryption key in the special information table; the downstream platform is authorized according to the configuration data; the downstream platform is authorized according to the configuration data, specifically: the configuration data is sent to the downstream platform by means of a jump link according to the third-party platform identifier in the special information table, and the jump link is used as the address authorized by the downstream platform for its business to complete the authorization of the downstream platform; A configuration unit, used to establish an interface configuration between the upstream platform and the downstream platform according to the information table and the obtained application interface credentials; a transmission unit, used to send the upstream message sent by the upstream platform to the downstream platform according to the interface configuration.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the upstream and downstream platform communication method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the upstream and downstream platform communication method as described in any one of claims 1 to 6 are implemented.