Service access method and device, electronic equipment and storage medium
By providing a service access method in the network isolation scenario of the power system, analyzing the service call request and calling services in the target system, the problem of inability to flow two-way between the intranet side system and the external network side system is solved, and the problem of inability to flow two-way between the intranet side system and the external network side system is realized. The flexibility and efficiency of information flow are reduced and the complexity of system maintenance is reduced.
Patent Information
- Application Number
- CN202410876966.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-11-15
AI Technical Summary
The proprietary network isolation technology of the power system causes the inability to flow two-way data between the intranet side system and the external network side system, limiting the flexibility and efficiency of information exchange and increasing the complexity of system maintenance.
Provide a service access method, which receives service call requests through the receiving side system, parses the requests to determine the target side system, and calls services in the target side system, realizes the smooth delivery of service call requests and the reading of results, ensuring the intranet side Bidirectional information flow between the system and the external network side system.
It realizes two-way information flow between the intranet side system and the external network side system, reduces resource waste and system maintenance complexity, supports asynchronous data transmission, and meets the access needs of the business system.
Smart Images

Figure CN118972453A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a service access method, device, electronic device and storage medium. Background Art
[0002] The proprietary network isolation technology of the power system is based on the concept of unidirectional data flow, which realizes the isolation of the internal network system from the external network system, and prevents the establishment of a direct TCP connection between the two to protect the data security of the power system. This means that applications based on the TCP / IP protocol cannot directly exchange data. In order to solve this problem, the usual practice is to split the TCP connection between the internal and external networks into two parts: one connected to the internal network interface of the isolation device, and the other connected to the external network interface. These two interfaces do not form a network connection inside the device and only support one-way flow of data. Therefore, due to the existence of the proprietary network isolation technology of the power system, bidirectional flow of data is not possible between the internal network system and the external network system. Summary of the invention
[0003] In view of this, the purpose of the present application is to propose a service access method, device, electronic device and storage medium to overcome all or part of the deficiencies in the prior art.
[0004] Based on the above-mentioned purpose, the present application provides a service access method, which is applied to an access system, wherein the access system includes an intranet side system and an extranet side system, including: receiving a service call request from a receiving side system, wherein the receiving side system is the intranet side system or the extranet side system; parsing the service call request to determine a target side system to which the service to be called corresponding to the service call request belongs, wherein the target side system is the intranet side system or the extranet side system; in response to determining that the target side system is different from the receiving side system, sending the service call request from the receiving side system to the target side system; in the target side system, calling the service to be called to obtain a call result; and controlling the receiving side system to read the call result.
[0005] Optionally, before controlling the receiving-side system to read the calling result, the method includes: storing the calling result in a first database in the intranet-side system.
[0006] Optionally, the service call request includes a network side field corresponding to the service to be called; the parsing of the service call request to determine the target side system to which the service to be called corresponding to the service call request belongs includes: in response to determining that the network side field belongs to a predetermined external network side field, determining that the target side system is the external network side system; in response to determining that the network side field belongs to a predetermined internal network side field, determining that the target side system is the internal network side system.
[0007] Optionally, before receiving a service call request from the receiving side system, the method includes: registering the service general information corresponding to the service to be called into a second database in the intranet side system, and pushing the service general information to the first predetermined unit of the intranet side system and the second predetermined unit in the external network side system respectively.
[0008] Optionally, after pushing the general service information to the first predetermined unit of the intranet side system and the second predetermined unit of the external network side system respectively, the method includes: in response to determining that a viewing instruction issued by a user is received from the intranet side system, viewing the general service information corresponding to the viewing instruction in the intranet side system; in response to determining that a viewing instruction issued by a user is received from the external network side system, viewing the general service information corresponding to the viewing instruction in the external network side system.
[0009] Optionally, the method further includes: in response to determining that the target side system is the same as the receiving side system, in the receiving side system, calling the service to be called to obtain a calling result corresponding to the service calling request.
[0010] Optionally, after controlling the receiving side system to read the call result, the method includes: in response to determining that the receiving side system completes reading the call result within a predetermined time, determining that the call of the service to be called is successful; in response to determining that the receiving side system does not complete reading the call result within the predetermined time, determining that the call of the service to be called has failed.
[0011] Based on the same inventive concept, the present application also provides a service access device, which is applied to an access system, wherein the access system includes an intranet side system and an extranet side system, and includes: a receiving module, configured to receive a service call request from the receiving side system, wherein the receiving side system is the intranet side system or the extranet side system; a parsing module, configured to parse the service call request and determine a target side system to which the service to be called corresponding to the service call request belongs, wherein the target side system is the intranet side system or the extranet side system; a sending module, configured to send the service call request from the receiving side system to the target side system in response to determining that the target side system is different from the receiving side system; a first calling module, configured to call the service to be called in the target side system to obtain a calling result; and a control module, configured to control the receiving side system to read the calling result.
[0012] Based on the same inventive concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.
[0013] Based on the same inventive concept, the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the method as described above.
[0014] As can be seen from the above, the service access method, device, electronic device and storage medium provided by the present application, the method includes receiving a service call request from a receiving side system, the receiving side system is the intranet side system or the extranet side system. The service call request is parsed to determine the target side system to which the service to be called corresponding to the service call request belongs, the target side system is the intranet side system or the extranet side system, so as to achieve the purpose of accurately determining the target side system to which the service to be called belongs. In response to determining that the target side system is different from the receiving side system, the service call request is sent from the receiving side system to the target side system, so that the service call request reaches the target system smoothly. In the target side system, the service to be called is called to obtain the call result, so as to achieve the purpose of accurately determining the call result. The receiving side system is controlled to read the call result, so as to achieve the purpose of enabling two-way information flow between the intranet side system and the extranet side system. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 A flowchart of a service access method according to an embodiment of the present application;
[0017] Figure 2 A schematic diagram of an access system according to an embodiment of the present application;
[0018] Figure 3 A schematic diagram of the structure of a service access device according to an embodiment of the present application;
[0019] Figure 4 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0020] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0021] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0022] As described in the background technology section, the proprietary network isolation technology of the power system is based on the concept of unidirectional data flow, which realizes the isolation of the internal network side system from the external network side system, and prevents the direct establishment of a TCP connection between the two to protect the data security of the power system. This means that applications based on the TCP / IP protocol cannot directly exchange data. In order to solve this problem, the usual practice is to split the TCP connection between the internal and external networks into two parts: one connected to the internal network interface of the isolation device, and the other connected to the external network interface. These two interfaces do not form a network connection inside the device and only support one-way flow of data. Therefore, due to the existence of the proprietary network isolation technology of the power system, bidirectional flow of data cannot be carried out between the internal network side system and the external network side system.
[0023] In the scenario of implementing network isolation, direct synchronous service calls are strictly prohibited. In this case, JDBC-based relational database systems, such as Oracle and MySQL, can be used as an asynchronous data transmission medium. This means that after implementing appropriate information security measures, external networks can use JDBC technology to perform asynchronous operations on relational databases in the internal network. Faced with the challenges of network isolation, many business systems need to meet the access requirements of both internal and external networks. When a relational database is used as a data exchange platform, the deployment of the system may be restricted. Usually, in order to ensure the normal operation of business functions, a complete set of business systems needs to be deployed in the internal network and the external network respectively. However, this deployment strategy not only leads to a large waste of resources, but also significantly increases the complexity of system maintenance. With the expansion of business scope and the acceleration of technological progress, information systems face more complex and diverse challenges in operation and maintenance management and resource allocation.
[0024] In view of this, the present application embodiment proposes a service access method, referring to Figure 1 , applied to an access system, the access system including an intranet side system and an extranet side system, including the following steps:
[0025] Step 101: receiving a service call request from a receiving side system, wherein the receiving side system is the intranet side system or the extranet side system.
[0026] In this step, the proprietary network isolation technology of the power system determines that there is a power grid system isolation device between the intranet side system and the extranet side system to protect the data security of the intranet side system and the extranet side system. However, due to the existence of the power grid isolation device, the intranet side system and the extranet side system cannot perform two-way information transmission. Information is always transmitted from one system to another. Even if two-way information transmission is possible between the intranet side system and the extranet side system, it is asynchronous information transmission, which requires relatively more resources. In order to solve the above problems, the present application first receives a service call request from a receiving side system. The receiving side system can be an intranet side system and an extranet side system, wherein the service call request is generated based on the actual needs of the user and is used to represent a request to call a service. It should be noted that, if Figure 2 As shown, Figure 2 This is a schematic diagram of the access system of an embodiment of the present application. There are clients on the intranet side system and the extranet side system respectively. Users can transmit service call requests to the above systems through the clients, and the service call requests are transmitted to the business network microservice unit through the gateway. When there is no client access demand in the extranet side system, there is no need to deploy a gateway. In addition, in addition to sending service call requests through the client, another microservice can be called through the intranet / extranet microservice. The microservice that initiates the request selects one of the instances of the call service based on the load configuration (generally, the load configuration includes the number of cross-network calls allowed to ensure performance). There is no need to use a gateway for a microservice to call another microservice.
[0027] Step 102: parse the service call request to determine the target side system to which the to-be-called service corresponding to the service call request belongs, wherein the target side system is the intranet side system or the extranet side system.
[0028] In this step, the service call request can reflect the system on which the service is called. Therefore, by parsing the service call request, it is possible to determine the target system to which the service to be called corresponding to the service call request belongs. The target system is an intranet system or an extranet system. The target system may be the same as the receiving system or may be different. By parsing the service call request, the purpose of accurately determining the target system to which the service to be called belongs is achieved. It should be noted that the parsing of the calling service is performed in the business microservice unit in the receiving system.
[0029] Step 103: In response to determining that the target-side system is different from the receiving-side system, sending the service call request from the receiving-side system to the target-side system.
[0030] In this step, when it is accurately known that the target side system is an intranet side system or an extranet side system, it can be determined whether the target side system is the same as the receiving side system. If the target side system is not the same as the receiving side system, it means that the service that the service call request needs to call is in the opposite side system of the service call request. At this time, the service call request needs to be sent from the receiving side system to the target side system so that the service call request can reach the target system smoothly. It should be noted that since the target side system is different from the receiving side system, the service call request cannot be sent dynamically through routing. The routing dynamic sending is switched to the transparent transmission service, and the receiving side system transparently transmits the service call request to the target side system. The transparent transmission service in the access system can be used to send the service call request. Among them, transparent transmission is an important technology in the current communication field. Transparent transmission is transparent transmission. In communication, it is only responsible for transmitting the transmitted content from the source address to the destination address, and does not make any changes to the business data content. Wireless transparent transmission technology realizes data transmission and reception through wireless signals without setting up a special communication connection. The wireless transparent transmission module plays an important role in the era of the Internet of Things. It can achieve complete consistency in the length and content of the data of the sender and the receiver, eliminating the tediousness and timeliness of development. It should also be noted that the service call request is sent from the receiving side system to the target side system through the transparent transmission service unit of the receiving side system. In the case where the receiving side system is an intranet side system, the service call request is also sent to the transparent transmission database in the intranet side system through the transparent transmission service unit, and the data is sent to the transparent transmission service unit in the external network side system through the transparent transmission database. In the case where the receiving side system is an external network side system, the service call request is sent to the transparent transmission database in the intranet side system through the transparent transmission service unit of the external network side system, and the intranet side system can read the service call request from the transparent transmission database.
[0031] Step 104: In the target side system, the service to be called is called to obtain a calling result.
[0032] In this step, there is a to-be-called service corresponding to the service call request in the target side system, and the to-be-called service is called to obtain a call result, so that the service call request can be realized, thereby achieving the purpose of accurately determining the call result.
[0033] Step 105: Control the receiving side system to read the calling result.
[0034] In this step, the receiving side system can read the call result. The service call request of the receiving side system is sent to the target side system, and the receiving side system can read the call result from the target side system. The receiving side system is different from the target side system. The receiving side system is an intranet side system or an extranet side system, and the target side system is an intranet side system or an extranet side system. This means that bidirectional information flow can be achieved between the receiving side system and the target side system, achieving the purpose of bidirectional information flow between the intranet side system and the extranet side system.
[0035] Through the above scheme, the receiving side system receives the service call request, and the receiving side system is the intranet side system or the extranet side system. The service call request is parsed to determine the target side system to which the service to be called corresponding to the service call request belongs, and the target side system is the intranet side system or the extranet side system, thereby achieving the purpose of accurately determining the target side system to which the service to be called belongs. In response to determining that the target side system is different from the receiving side system, the service call request is sent from the receiving side system to the target side system, so that the service call request reaches the target system smoothly. In the target side system, the service to be called is called to obtain the call result, thereby achieving the purpose of accurately determining the call result. The receiving side system is controlled to read the call result, thereby achieving the purpose of enabling two-way information flow between the intranet side system and the extranet side system.
[0036] In some embodiments, before controlling the receiving-side system to read the calling result, the method includes: storing the calling result in a first database in the intranet-side system.
[0037] In this embodiment, the access system also includes a first database in the intranet system, wherein the first database can be a transparent transmission database, and the call result is stored in the first database in the intranet system, and then the receiving system can be controlled to read the call result from the first database, thereby ensuring data security. If the target system is the intranet system, the call result is stored in the first database in the intranet system; if the target system is the extranet system, the call result is transparently transmitted to the first database in the intranet system through the transparent transmission service in the extranet system. After receiving the service call request, the transparent transmission service unit stores the service call request in the transparent transmission database, wherein the transparent transmission database can store fields such as the request id, request protocol, request address, target address, request parameters, return value and request status in the service call request. Through the first database, the intranet system and the extranet system can communicate with each other, reducing the complexity of information flow between the intranet system and the extranet system.
[0038] In some embodiments, the service call request includes a network side field corresponding to the service to be called; the parsing of the service call request to determine the target side system to which the service to be called corresponding to the service call request belongs includes: in response to determining that the network side field belongs to a predetermined external network side field, determining that the target side system is the external network side system; in response to determining that the network side field belongs to a predetermined internal network side field, determining that the target side system is the internal network side system.
[0039] In this embodiment, the service call request includes a network side field corresponding to the service to be called. The network side field can reflect which side system the service to be called is located in. When the network field belongs to a predetermined external network field, the target side system is determined to be an external network system. When the network field belongs to a predetermined internal network field, the target side system is determined to be an internal network system. The network side field corresponding to the service to be called achieves the purpose of accurately determining which side system the target side system is.
[0040] In some embodiments, before receiving a service call request from a receiving side system, the method includes: registering the service general information corresponding to the service to be called into a second database in the intranet side system, and pushing the service general information to a first predetermined unit in the intranet side system and a second predetermined unit in the external network side system respectively.
[0041] In this embodiment, after the internal / external network transparent transmission service unit, business microservice unit, and gateway in the internal network side system and the external network side system are started respectively, a request is sent to the service discovery unit of the same side network to register the service. Generally, the general service information includes fields such as service name, instance IP, instance port, instance status, etc. The internal / external network service discovery unit regularly stores the registration information in the second database, wherein the second database is a routing database, and when storing, a source network field (source_network) is added to the service in the general service information to distinguish whether the service comes from the internal or external network, and the full amount of general service information of the internal and external networks is obtained from the routing database regularly. At this time, the full amount of general service information saved by the service platform is fused data, that is, the same service contains internal and external network instance information, and each instance information carries the source_network field. Through the service general information sharing mechanism and the routing dynamic switching mechanism, the service general information is pushed to the first predetermined unit in the intranet side system and the second predetermined unit in the extranet side system respectively, wherein the above-mentioned predetermined unit can be a service discovery unit, allowing the service information of the same service to be deployed in the intranet and extranet at the same time, realizing the global load of the intranet and extranet, and enabling the resources of the intranet and extranet to be shared and reused.
[0042] In some embodiments, after the service general information is pushed to the first predetermined unit of the intranet side system and the second predetermined unit of the external network side system respectively, the method includes: in response to determining that a viewing instruction issued by a user is received from the intranet side system, viewing the service general information corresponding to the viewing instruction in the intranet side system; in response to determining that a viewing instruction issued by a user is received from the external network side system, viewing the service general information corresponding to the viewing instruction in the external network side system.
[0043] In this embodiment, at this time, the predetermined units in the intranet side system and the extranet side system can monitor the general service information, wherein the general service information includes all online instance information, and the predetermined unit is the service discovery unit. Allow the operation and maintenance personnel to manage uniformly and perform load, current limiting and other governance operations on the general service information of the service. In the case where the intranet side system receives a viewing instruction issued by the user, the intranet side system views the general service information corresponding to the viewing instruction; in the case where the extranet side system receives a viewing instruction issued by the user, the extranet side system views the general service information corresponding to the viewing instruction. The general service information of the intranet and extranet networks is synchronized through the service general information sharing mechanism, and the operation and maintenance personnel can view the service information of all service instances deployed in the service discovery unit on either side of the intranet and extranet. It should be noted that load, current limiting and other governance operations can also be performed on the general service information of the service, reducing the complexity of operation and maintenance. The intranet / extranet service discovery unit regularly pushes the full amount of service general information and service governance configuration to the transparent service unit, the business microservice unit and the gateway. The transparent service unit, the business microservice unit and the gateway perform relevant governance operations according to the governance configuration.
[0044] In some embodiments, it also includes: in response to determining that the target side system is the same as the receiving side system, in the receiving side system, calling the service to be called to obtain a calling result corresponding to the service calling request.
[0045] In this embodiment, when the target side system is the same as the receiving side system, the client of the receiving side system sends a request to call the microservice, and the same-side gateway receives the request and selects one of the service instances to call according to the load configuration. The network to which the instance belongs is determined according to source_network. If the selected instance is an instance deployed on the same-side network, the request call is completed normally.
[0046] In some embodiments, after controlling the receiving side system to read the call result, the method includes: in response to determining that the receiving side system completes reading the call result within a predetermined time, determining that the call of the service to be called is successful; in response to determining that the receiving side system does not complete reading the call result within the predetermined time, determining that the call of the service to be called has failed.
[0047] In this embodiment, due to various reasons, such as network problems, there is a possibility that the service to be called may fail to be called, so it is necessary to judge the success or failure of the service to be called. If the receiving side system completes reading the call result within the predetermined time, it means that the receiving side system already has the call result, and it is determined that the call of the service to be called is successful. If the receiving side system does not complete reading the call result within the predetermined time, it means that the receiving side system does not have the call result, and it is determined that the call of the service to be called failed. By judging the success or failure of the call of the service to be called, the user can know whether the service to be called corresponding to the service call request is completed.
[0048] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0049] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0050] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a service access device.
[0051] refer to Figure 3 The service access device is applied to an access system, wherein the access system includes an intranet side system and an extranet side system, including:
[0052] The receiving module 10 is configured to receive a service call request from a receiving side system, where the receiving side system is the intranet side system or the extranet side system.
[0053] The parsing module 20 is configured to parse the service call request and determine the target side system to which the to-be-called service corresponding to the service call request belongs, wherein the target side system is the intranet side system or the extranet side system.
[0054] The sending module 30 is configured to send the service call request from the receiving side system to the target side system in response to determining that the target side system is different from the receiving side system.
[0055] The first calling module 40 is configured to call the to-be-called service in the target-side system to obtain a calling result.
[0056] The control module 50 is configured to control the receiving side system to read the calling result.
[0057] Through the above-mentioned device, the receiving side system receives the service call request, and the receiving side system is the intranet side system or the extranet side system. The service call request is parsed to determine the target side system to which the service to be called corresponding to the service call request belongs, and the target side system is the intranet side system or the extranet side system, thereby achieving the purpose of accurately determining the target side system to which the service to be called belongs. In response to determining that the target side system is different from the receiving side system, the service call request is sent from the receiving side system to the target side system, so that the service call request reaches the target system smoothly. In the target side system, the service to be called is called to obtain the call result, thereby achieving the purpose of accurately determining the call result. The receiving side system is controlled to read the call result, thereby achieving the purpose of enabling two-way information flow between the intranet side system and the extranet side system.
[0058] In some embodiments, a storage module is also included, and the storage module is configured to store the call result in a first database in the intranet side system before controlling the receiving side system to read the call result.
[0059] In some embodiments, the parsing module 20 is also configured so that the service call request includes a network side field corresponding to the service to be called; in response to determining that the network side field belongs to a predetermined external network side field, the target side system is determined to be the external network side system; in response to determining that the network side field belongs to a predetermined internal network side field, the target side system is determined to be the internal network side system.
[0060] In some embodiments, a push module is also included, which is configured to register the service general information corresponding to the service to be called into the second database in the intranet side system before receiving the service call request from the receiving side system, and push the service general information to the first predetermined unit of the intranet side system and the second predetermined unit in the external network side system respectively.
[0061] In some embodiments, a viewing module is also included, and the viewing module is configured to, after pushing the service general information to the first predetermined unit of the intranet side system and the second predetermined unit of the external network side system respectively, in response to determining that a viewing instruction issued by a user is received from the intranet side system, view the service general information corresponding to the viewing instruction in the intranet side system; in response to determining that a viewing instruction issued by a user is received from the external network side system, view the service general information corresponding to the viewing instruction in the external network side system.
[0062] In some embodiments, a second calling module is also included, and the second calling module is configured to, in response to determining that the target side system is the same as the receiving side system, call the service to be called in the receiving side system to obtain a calling result corresponding to the service calling request.
[0063] In some embodiments, a determination module is also included, and the determination module is configured to, after controlling the receiving side system to read the call result, determine that the call of the service to be called is successful in response to determining that the receiving side system completes reading the call result within a predetermined time; and determine that the call of the service to be called fails in response to determining that the receiving side system does not complete reading the call result within the predetermined time.
[0064] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0065] The apparatus of the above embodiment is used to implement the corresponding service access method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0066] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application 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 service access method as described in any of the above embodiments is implemented.
[0067] Figure 4A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0068] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0069] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0070] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0071] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0072] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0073] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0074] The electronic device of the above embodiment is used to implement the corresponding service access method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0075] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the service access method described in any of the above embodiments.
[0076] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0077] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the service access method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0078] Based on the same concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a computer program product, including computer program instructions. When the computer program instructions are run on a computer, the computer executes the service access method described in any of the above embodiments, which has the beneficial effects of the corresponding method embodiments and will not be repeated here.
[0079] It should be noted that the embodiments of the present application can be further described in the following manner:
[0080] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0081] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0082] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0083] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0084] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0085] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0086] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0087] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A service access method, characterized in that: Applied to an access system, the access system includes an intranet side system and an extranet side system, including: Receiving a service call request from a receiving side system, wherein the receiving side system is the intranet side system or the extranet side system; Parsing the service call request to determine a target side system to which the to-be-called service corresponding to the service call request belongs, wherein the target side system is the intranet side system or the extranet side system; In response to determining that the target-side system is not the same as the receiving-side system, sending the service call request from the receiving-side system to the target-side system; In the target side system, calling the service to be called to obtain a calling result; Control the receiving side system to read the calling result.
2. The method according to claim 1, characterized in that: Before controlling the receiving side system to read the calling result, the method includes: The calling result is stored in the first database in the intranet side system.
3. The method according to claim 1, characterized in that The service invocation request includes a network side field corresponding to the service to be invoked; The parsing of the service call request to determine the target side system to which the to-be-called service corresponding to the service call request belongs includes: In response to determining that the network-side field belongs to a predetermined external-network-side field, determining that the target-side system is the external-network-side system; In response to determining that the network-side field belongs to a predetermined intranet-side field, determining that the target-side system is the intranet-side system.
4. The method according to claim 1, characterized in that: Before receiving a service call request from a receiving-side system, the method includes: The service general information corresponding to the service to be called is registered in the second database in the intranet system, and the service general information is pushed to the first predetermined unit in the intranet system and the second predetermined unit in the extranet system respectively.
5. The method according to claim 4, characterized in that After the service general information is pushed to the first predetermined unit of the intranet system and the second predetermined unit of the extranet system respectively, the method includes: In response to determining that a viewing instruction issued by a user is received from the intranet-side system, viewing the service general information corresponding to the viewing instruction in the intranet-side system; In response to determining that a viewing instruction issued by a user is received from the external network side system, the service general information corresponding to the viewing instruction is viewed in the external network side system.
6. The method according to claim 1, characterized in that Also includes: In response to determining that the target side system is the same as the receiving side system, in the receiving side system, the service to be called is called to obtain a calling result corresponding to the service calling request.
7. The method according to claim 1, characterized in that After controlling the receiving side system to read the calling result, the method includes: In response to determining that the receiving-side system completes reading the call result within a predetermined time, determining that the call of the to-be-called service is successful; In response to determining that the receiving-side system has not completed reading the calling result within the predetermined time, it is determined that the calling of the to-be-called service has failed.
8. A service access device, characterized in that: Applied to an access system, the access system includes an intranet side system and an extranet side system, including: A receiving module, configured to receive a service call request from a receiving side system, wherein the receiving side system is the intranet side system or the extranet side system; A parsing module is configured to parse the service call request and determine a target side system to which the to-be-called service corresponding to the service call request belongs, wherein the target side system is the intranet side system or the extranet side system; a sending module, configured to send the service call request from the receiving side system to the target side system in response to determining that the target side system is different from the receiving side system; A first calling module is configured to call the to-be-called service in the target-side system to obtain a calling result; The control module is configured to control the receiving side system to read the calling result.
9. 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 method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
