CN114979300A - Multi-service communication method and device for client - Google Patents

Multi-service communication method and device for client Download PDF

Info

Publication number
CN114979300A
CN114979300A CN202210793980.XA CN202210793980A CN114979300A CN 114979300 A CN114979300 A CN 114979300A CN 202210793980 A CN202210793980 A CN 202210793980A CN 114979300 A CN114979300 A CN 114979300A
Authority
CN
China
Prior art keywords
service
information
communication interface
client
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210793980.XA
Other languages
Chinese (zh)
Inventor
李雪丰
任洪杰
杨彦召
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Mite Information Technology Co ltd
Original Assignee
Beijing Yidiandian Entertainment Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yidiandian Entertainment Technology Co ltd filed Critical Beijing Yidiandian Entertainment Technology Co ltd
Priority to CN202210793980.XA priority Critical patent/CN114979300A/en
Publication of CN114979300A publication Critical patent/CN114979300A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a multi-service communication method and a device for a client, wherein the multi-service communication method for the client comprises the following steps: determining a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service; judging whether a function set corresponding to the second service comprises a target function or not from the basic library; if the function set corresponding to the second service comprises a target function, determining a first conversion protocol between the first service and a local native communication interface; converting the request into first information corresponding to a native communication interface according to a first conversion protocol; sending the first information to a second service according to a communication protocol of a native communication interface and the second service; determining that the second service generates corresponding response information according to the first information; and sending the response information to the first service so as to enable the first service and the second service to be communicated.

Description

Multi-service communication method and device for client
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for multiple service communication of a client.
Background
In the prior art, when a client is developed, a worker needs to write codes for converting each running time state (H5, Flutter, Unity3D) and local native in the client; and if a problem occurs in the testing process, the codes written by the working personnel also need to be checked one by one, so that the efficiency is low.
Disclosure of Invention
In view of the above, an object of the present application is to provide at least a method and an apparatus for communicating multiple services of a client, in which functions included in multiple services of the client are added to a base library in advance, and the base library is used to determine whether a target function can be executed, so as to solve the technical problem that in the prior art, whether the target function can be executed only after two services are required to communicate, and achieve a technical effect of improving development efficiency.
The application mainly comprises the following aspects:
in a first aspect, an embodiment of the present application provides a multi-service communication method for a client, where the multi-service communication method for the client includes: determining a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service; judging whether the function set corresponding to the second service comprises a target function or not from the basic library; if the function set corresponding to the second service comprises a target function, determining a first conversion protocol between the first service and a local native communication interface; converting the request into first information corresponding to a native communication interface according to a first conversion protocol; sending the first information to a second service according to a communication protocol of a native communication interface and the second service; determining that the second service generates corresponding response information according to the first information; and sending the response information to the first service so as to enable the first service and the second service to be communicated.
Optionally, the sending the response information to the first service includes: determining a second conversion protocol between a second service and a native communication interface from the basic library; converting the response information into second information corresponding to the native communication interface according to a second conversion protocol; and sending the second information to the first service according to the native communication interface and the communication protocol of the first service.
Optionally, after determining whether the function set corresponding to the second service includes the target function from the base library, the method further includes: if the function set corresponding to the second service does not include the target function, a signal that the target function cannot be executed is sent to the first service.
Optionally, the request further comprises: request name, request parameter, request time; converting the request into first information corresponding to the native communication interface according to a first conversion protocol comprises the following steps: determining a version number corresponding to the first conversion protocol; and converting the second service, the request time, the request name, the target function, the request parameter and the version number into first information corresponding to the native communication interface according to the first conversion protocol.
Optionally, the method further comprises: determining all functions performed by the second service; and adding all functions executed by the second service to a function set corresponding to the second service of the basic library.
Optionally, the first service and the second service respectively include: hypertext H5 service, jump Flutter service, universal 3D format Unity3D service.
In a second aspect, an embodiment of the present application further provides a multi-service communication device of a client, where the multi-service communication device of the client includes: the first determining module is used for determining a request sent by a first service in the client; the request comprises a second service and a target function which needs to be executed by the second service; the judging module is used for judging whether the function set corresponding to the second service comprises the target function from the basic library; the second determining module is used for determining a first conversion protocol between the first service and the local native communication interface if the function set corresponding to the second service comprises the target function; the conversion module is used for converting the request into first information corresponding to the native communication interface according to a first conversion protocol; the sending module is used for sending the first information to the second service according to a communication protocol between the native communication interface and the second service; the third determining module is used for determining that the second service generates corresponding response information according to the first information; and the communication module is used for sending the response information to the first service so as to enable the first service and the second service to be communicated with each other.
Optionally, the communication module further sends the response information to the first service by: determining a second conversion protocol between a second service and a native communication interface from the basic library; converting the response information into second information corresponding to the native communication interface according to a second conversion protocol; and sending the second information to the first service according to the native communication interface and the communication protocol of the first service.
In a third aspect, an embodiment of the present application further provides an electronic device, including: the system comprises a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, the processor and the memory communicate with each other through the bus when the electronic device runs, and the machine-readable instructions are executed by the processor to perform the steps of the multi-service communication method of the client in the first aspect or any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method performs the steps of multiple service communication of the client in the foregoing first aspect or any one of the possible implementation manners of the first aspect.
The embodiment of the application provides a method and a device for multi-service communication of a client, wherein the method comprises the following steps: determining a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service; judging whether the function set corresponding to the second service comprises a target function or not from the basic library; if the function set corresponding to the second service comprises a target function, determining a first conversion protocol between the first service and a local native communication interface; converting the request into first information corresponding to a native communication interface according to a first conversion protocol; sending the first information to a second service according to a communication protocol of a native communication interface and the second service; determining that the second service generates corresponding response information according to the first information; and sending the response information to the first service so as to enable the first service and the second service to be communicated. According to the method and the device, the functions included by the multiple services of the client are added into the basic library in advance, and the basic library is used for judging whether the target function can be executed or not, so that the technical problem that whether the target function can be executed or not can be determined after two services are required to communicate in the prior art is solved, and the technical effect of improving the development efficiency is achieved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a flowchart of a method for communicating multiple services of a client according to an embodiment of the present application.
Fig. 2 shows a flowchart of steps provided by an embodiment of the present application for sending response information to a first service.
Fig. 3 is a functional block diagram of a multi-service communication device of a client according to an embodiment of the present application.
Fig. 4 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and that steps without logical context may be performed in reverse order or concurrently. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, in the process of client development, two different services are required to communicate, when a first service sends a signal to a second service, the two services are communicated through a native communication interface, and whether the second service can execute the signal sent by the first service or not needs to be judged according to a received return signal of the second service, which results in low efficiency.
Based on this, the embodiment of the present application provides a method and an apparatus for communicating multiple services of a client, where functions included in multiple services of the client are added to a basic library in advance, and the basic library is used to determine whether a target function can be executed, so as to solve the technical problem that in the prior art, it is determined whether the target function can be executed after two services are required to communicate, thereby achieving a technical effect of improving development efficiency, specifically as follows:
referring to fig. 1, fig. 1 is a flowchart illustrating a multi-service communication method of a client according to an embodiment of the present disclosure. As shown in fig. 1, a method for communicating multiple services of a client according to an embodiment of the present application includes the following steps:
s101, determining a request sent by a first service in a client; the request includes a second service and a target function that requires the second service to perform.
The first service refers to a service page which sends a request in the process of developing a client; the second service refers to a service page in response to a request issued by the first service.
The target function is a function in the request indicating that the second service is required to perform.
That is, the request issued by the first service needs to include the second service responding to the request and the target function that needs to be executed by the second service.
Wherein the first service and the second service respectively comprise: hypertext H5 service, jump Flutter service, universal 3D format Unity3D service.
The hypertext H5 service refers to the H5 function page, the H5 function page is an interface written in the H5 language, which is originally a standard computer language for making web pages, the H5 page is a simplified vocabulary from HTML5 (hypertext 5.0), and HTML5 is designed to support multimedia on mobile devices.
The jump Flutter service refers to a Flutter function page, the Flutter function is a UI toolkit of Google, and a beautiful native compiled application program can be constructed for mobile equipment, a webpage and a desktop by using a set of code library; the Flutter function realizes a self-drawing engine, and uses a self layout and drawing system to draw an interface.
The universal 3D format Unity3D service refers to a Unity function page, the Unity platform provides a complete set of complete software solutions, can be used for creating, operating and rendering any real-time interactive 2D and 3D content, and the support platform comprises a mobile phone, a tablet computer, a PC, a game host, augmented reality and virtual reality equipment.
S102, judging whether the function set corresponding to the second service comprises the target function from the basic library.
The base library refers to a set of functions that all services of the client each perform. That is, all functions performed by the hypertext H5 service, all functions performed by the jump Flutter service, and all functions performed by the universal 3D format Unity3D service are added to the base library.
Exemplarily, if the first service refers to a base library including a hypertext H5 service and the second service refers to a jump Flutter service, the base library includes a function set corresponding to the hypertext H5 service, a function set corresponding to the jump Flutter service, and a function set corresponding to the universal 3D format Unity3D service; after receiving a request sent by hypertext H5 service, identifying jump Flutter service and target function carried in the request, and determining whether the function set corresponding to the jump Flutter service includes the target function.
The method further comprises the following steps:
determining all functions performed by the second service; and adding all functions executed by the second service to a function set corresponding to the second service of the basic library.
If the functions that can be executed by the second service are function a, function B, and function C, respectively, then function a, function B, and function C are added to the function set corresponding to the second service in the base library.
For example, a base library needs to be constructed first, and all functions executed by each service of the client are added to a function set corresponding to each service in the base library.
S103, determining a first conversion protocol between the first service and the local native communication interface.
And if the function set corresponding to the second service comprises the target function, determining a first conversion protocol between the first service and the local native communication interface.
The first conversion protocol can convert information sent by the first service into information readable by the native communication interface.
After determining whether the function set corresponding to the second service includes the target function from the base library, the method further includes: if the function set corresponding to the second service does not include the target function, a signal that the target function cannot be executed is sent to the first service.
That is, before the communication between the first service and the second service is performed through the native communication interface, it is necessary to determine whether the following second service can perform the target function, and if the second service cannot perform the target function, it is not necessary to perform data transmission between the first service and the second service through the native communication interface, and a signal that the target function cannot be performed is directly sent to the first service, so as to improve the working efficiency.
That is, the basic library includes not only the function sets corresponding to the respective services, but also a conversion protocol for converting the respective services into native communication interfaces.
And S104, converting the request into first information corresponding to the native communication interface according to a first conversion protocol.
That is, the request is converted into first information by a first conversion protocol, and the first information is sent to the native communication interface.
The request further includes: request name, request parameter, request time; converting the request into first information corresponding to the native communication interface according to a first conversion protocol comprises the following steps: determining a version number corresponding to a first conversion protocol; and converting the second service, the request time, the request name, the target function, the request parameter and the version number into first information corresponding to the native communication interface according to the first conversion protocol.
The request name refers to the name of the request; the request parameters refer to the length of a requested character string, parameters corresponding to a target function and the like; the request time refers to a time when the first service transmits a request.
The first conversion protocol is used for converting the request of the first service to the information which can be read by the native communication interface. The first conversion protocol is a preset protocol, that is, the base library further includes a conversion protocol corresponding to each service, and the conversion protocol can convert information sent by the corresponding service into information readable by the native communication interface.
And S105, sending the first information to the second service according to a communication protocol of the native communication interface and the second service.
That is to say, the native communication interface reads the first information, determines the second service corresponding to the first information, converts the first information into the first information readable by the second service according to the communication protocol between the native communication interface and the second service, and sends the first information to the second service.
And S106, determining that the second service generates corresponding response information according to the first information.
That is to say, the second service receives the first information sent by the native communication interface and generates corresponding response information according to the first information.
At this time, the data format of the first information sent by the native communication interface received by the second service is different from the data format of the first information read by the native communication interface. The first information sent by the native communication interface received by the second service is in a data format readable by the second service, and the first information read by the native communication interface is in a data format readable by the native communication interface.
S107, the response information is sent to the first service, so that the first service and the second service are communicated.
Exemplarily, if the first service refers to that the basic library comprises a hypertext H5 service and the second service refers to a jump Flutter service, if a function set corresponding to the jump Flutter service of the basic library comprises a target function, determining a conversion protocol between the hypertext H5 service and a native communication interface from the basic library, converting a request sent by the hypertext H5 service into first information through the conversion protocol, and sending the first information to the native communication interface; after reading the first information, the native communication interface determines a jump Flutter service contained in the first information, converts the first information into first information which can be read by the jump Flutter service according to a communication protocol of the native communication interface and the jump Flutter service, and sends the first information to the jump Flutter service; and the skip Flutter service generates response information according to the first information sent by the native communication interface, and sends the response information to the hypertext H5 service.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps for sending a response message to a first service according to an embodiment of the present application.
Sending the response information to the first service includes:
s1071, a second conversion protocol between the second service and the native communication interface is determined from the basic library.
And determining a second conversion protocol which can convert the information sent by the second service into the information readable by the native communication interface from the basic library.
S1072, the response information is converted into second information corresponding to the native communication interface according to a second conversion protocol.
That is, the response information is converted into second information by the second conversion protocol, and the second information is transmitted to the native communication interface.
S1073, sending the second information to the first service according to a communication protocol between the native communication interface and the first service.
That is to say, the native communication interface reads the second information, determines the first service corresponding to the second information, converts the second information into information readable by the first service according to a communication protocol between the native communication interface and the first service, and sends the information to the first service.
Illustratively, if the first service refers to a base library including hypertext H5 service and the second service refers to skip Flutter service, the skip Flutter service generates response information according to first information sent by a native communication interface, determines a conversion protocol for converting the information sent by the skip Flutter service into information readable by the native communication interface from the base library, converts the response information into second information according to the conversion protocol, and sends the second information to the native communication interface; the native communication interface reads the second information and sends the second information to the hypertext H5 service according to a communication protocol between the native communication interface and the hypertext H5 service; the hypertext H5 service receives the response information, enabling communication between the hypertext H5 service and the jump Flutter service.
Based on the same application concept, the embodiment of the present application further provides a plurality of service communication apparatuses of the client corresponding to the plurality of service communication methods of the client provided by the above embodiment, and since the principle of the apparatus in the embodiment of the present application to solve the problem is similar to the plurality of service communication methods of the client according to the above embodiment of the present application, the implementation of the apparatus may refer to the implementation of the method, and repeated details are omitted.
As shown in fig. 3, fig. 3 is a functional block diagram of a multi-service communication apparatus of a client according to an embodiment of the present application, where the multi-service communication apparatus 10 of the client includes: a first determining module 101, a judging module 102, a second determining module 103, a converting module 104, a sending module 105, a third determining module 106 and a communication module 107; a first determining module 101, configured to determine a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service; a determining module 102, configured to determine whether a function set corresponding to the second service includes a target function from the base library; a second determining module 103, configured to determine, if the function set corresponding to the second service includes a target function, a first conversion protocol between the first service and the native communication interface; the conversion module 104 is used for converting the request into first information corresponding to the native communication interface according to a first conversion protocol; the sending module 105 is used for sending the first information to the second service according to a communication protocol between the native communication interface and the second service; a third determining module 106, configured to determine that the second service generates corresponding response information according to the first information; a communication module 107, configured to send the response information to the first service, so that the first service and the second service communicate with each other.
The communication module 107, further sends the response information to the first service by: determining a second conversion protocol between a second service and a native communication interface from the basic library; converting the response information into second information corresponding to the native communication interface according to a second conversion protocol; and sending the second information to the first service according to the native communication interface and the communication protocol of the first service.
Based on the same application concept, referring to fig. 4, a schematic structural diagram of an electronic device provided in an embodiment of the present application is shown, where the electronic device 20 includes: a processor 201, a memory 202 and a bus 203, wherein the memory 202 stores machine-readable instructions executable by the processor 201, when the electronic device 20 is operated, the processor 201 communicates with the memory 202 through the bus 203, and the machine-readable instructions are executed by the processor 201 to perform the steps of the multi-service communication method of the client according to any one of the above embodiments.
In particular, the machine readable instructions, when executed by the processor 201, may perform the following: determining a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service; judging whether the function set corresponding to the second service comprises a target function or not from the basic library; if the function set corresponding to the second service comprises a target function, determining a first conversion protocol between the first service and a local native communication interface; converting the request into first information corresponding to a native communication interface according to a first conversion protocol; sending the first information to a second service according to a communication protocol of a native communication interface and the second service; determining that the second service generates corresponding response information according to the first information; and sending the response information to the first service so as to enable the first service and the second service to be communicated.
Based on the same application concept, embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for communicating multiple services of a client provided in the foregoing embodiments are performed.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, when a computer program on the storage medium is run, the method can execute the multiple service communication method of the client, and by adding the functions included in the multiple services of the client to the basic library in advance, the basic library is used to judge whether the target function can be executed, thereby solving the technical problem that in the prior art, whether the target function can be executed can be determined only after two services are required to communicate, and achieving the technical effect of improving the development efficiency.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process of the system and the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is only a logical division, and other divisions may be realized in practice, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some communication interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solutions of the present application may be essentially implemented or are part of the technical solutions or parts of the technical solutions contributing to the prior art, and the computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A multi-service communication method of a client is characterized in that the multi-service communication method of the client comprises the following steps:
determining a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service;
judging whether the function set corresponding to the second service comprises the target function from a basic library;
if the function set corresponding to the second service comprises the target function, determining a first conversion protocol between the first service and a local native communication interface;
converting the request into first information corresponding to the native communication interface according to the first conversion protocol;
sending the first information to the second service according to a communication protocol between the native communication interface and the second service;
determining that the second service generates corresponding response information according to the first information;
and sending the response information to the first service so as to enable the first service and the second service to be communicated with each other.
2. The multi-service communication method of the client according to claim 1, wherein the sending the response information to the first service comprises:
determining a second conversion protocol between the second service and a native communication interface from a basic library;
converting the response information into second information corresponding to the native communication interface according to the second conversion protocol;
and sending the second information to the first service according to a communication protocol between the native communication interface and the first service.
3. The method of claim 1, wherein after determining whether the target function is included in the set of functions corresponding to the second service from the base library, the method further comprises:
and if the function set corresponding to the second service does not comprise the target function, sending a signal that the target function cannot be executed to the first service.
4. The method of multi-service communication of a client of claim 1, wherein the requesting further comprises: request name, request parameter, request time;
the converting the request into the first information corresponding to the native communication interface according to the first conversion protocol comprises:
determining a version number corresponding to the first conversion protocol;
and converting the second service, the request time, the request name, the target function, the request parameter and the version number into first information corresponding to the native communication interface according to the first conversion protocol.
5. The method of multi-service communication of a client of claim 1, further comprising:
determining all functions performed by the second service;
and adding all functions executed by the second service to a function set corresponding to the second service of the basic library.
6. The multi-service communication method of the client according to claim 1, wherein the first service and the second service respectively comprise: hypertext H5 service, jump Flutter service, universal 3D format Unity3D service.
7. A multi-service communication apparatus of a client, comprising:
the first determining module is used for determining a request sent by a first service in the client; the request comprises a second service and a target function needing to be executed by the second service;
the judging module is used for judging whether the function set corresponding to the second service comprises the target function from a basic library;
a second determining module, configured to determine, if the function set corresponding to the second service includes the target function, a first conversion protocol between the first service and a native communication interface;
the conversion module is used for converting the request into first information corresponding to the native communication interface according to the first conversion protocol;
the sending module is used for sending the first information to the second service according to a communication protocol between the native communication interface and the second service;
a third determining module, configured to determine that the second service generates corresponding response information according to the first information;
and the communication module is used for sending the response information to the first service so as to enable the first service and the second service to be communicated with each other.
8. The multi-service communication apparatus of client as claimed in claim 7, wherein the communication module further transmits the response message to the first service by:
determining a second conversion protocol between the second service and a native communication interface from a basic library;
converting the response information into second information corresponding to the native communication interface according to the second conversion protocol;
and sending the second information to the first service according to a communication protocol between the native communication interface and the first service.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when an electronic device is operated, the machine-readable instructions being executable by the processor to perform the steps of the multi-service communication method of the client according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the multi-service communication method of a client according to any one of claims 1 to 6.
CN202210793980.XA 2022-07-05 2022-07-05 Multi-service communication method and device for client Pending CN114979300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210793980.XA CN114979300A (en) 2022-07-05 2022-07-05 Multi-service communication method and device for client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210793980.XA CN114979300A (en) 2022-07-05 2022-07-05 Multi-service communication method and device for client

Publications (1)

Publication Number Publication Date
CN114979300A true CN114979300A (en) 2022-08-30

Family

ID=82967162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210793980.XA Pending CN114979300A (en) 2022-07-05 2022-07-05 Multi-service communication method and device for client

Country Status (1)

Country Link
CN (1) CN114979300A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190059168A (en) * 2017-11-22 2019-05-30 주식회사 보이스아이 Apparatus of middleware for connecting webpages and application
CN110515678A (en) * 2019-08-23 2019-11-29 上海连尚网络科技有限公司 A kind of information processing method, equipment and computer storage medium
CN110688232A (en) * 2018-07-05 2020-01-14 珠海市魅族科技有限公司 Application program calling method, terminal device and computer readable storage medium
CN112685202A (en) * 2021-01-04 2021-04-20 深圳市房多多网络科技有限公司 Cross-platform communication method and device and computing equipment
CN112685023A (en) * 2020-12-31 2021-04-20 招联消费金融有限公司 Front-end development processing method, device, equipment and storage medium based on basic library
CN114168460A (en) * 2021-11-29 2022-03-11 北京五八信息技术有限公司 Remote debugging method, device and storage medium for front-end code in hybrid development

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190059168A (en) * 2017-11-22 2019-05-30 주식회사 보이스아이 Apparatus of middleware for connecting webpages and application
CN110688232A (en) * 2018-07-05 2020-01-14 珠海市魅族科技有限公司 Application program calling method, terminal device and computer readable storage medium
CN110515678A (en) * 2019-08-23 2019-11-29 上海连尚网络科技有限公司 A kind of information processing method, equipment and computer storage medium
CN112685023A (en) * 2020-12-31 2021-04-20 招联消费金融有限公司 Front-end development processing method, device, equipment and storage medium based on basic library
CN112685202A (en) * 2021-01-04 2021-04-20 深圳市房多多网络科技有限公司 Cross-platform communication method and device and computing equipment
CN114168460A (en) * 2021-11-29 2022-03-11 北京五八信息技术有限公司 Remote debugging method, device and storage medium for front-end code in hybrid development

Similar Documents

Publication Publication Date Title
CN102567516B (en) Script loading method and device
CN110362372A (en) Page translation method, device, medium and electronic equipment
EP2721520B1 (en) Selection mapping between fetched files and source files
CN103605502A (en) Form page display method and server
CN100590624C (en) Method for exhibiting multidimensional space data based on SOA structure
CN110955409B (en) Method and device for creating resources on cloud platform
CN112486490B (en) Front-end code packaging method and device, electronic equipment and storage medium
CN114500423A (en) Message processing method, device, equipment and storage medium
CN111290996A (en) Document format conversion method, device, equipment and readable storage medium
CN113296752A (en) Method, system, device and storage medium for generating API document
CN114265657A (en) Method and device for displaying page of applet
CN107395663B (en) Data acquisition method and device
CN114979300A (en) Multi-service communication method and device for client
CN108536715B (en) Preview page generation method, device, equipment and storage medium
CN111796812B (en) Image rendering method and device, electronic equipment and computer readable storage medium
CN112104544B (en) Method and device for sending dynamic mail based on Freemarker
CN113377376A (en) Data packet generation method, data packet generation device, electronic device, and storage medium
CN111752559B (en) Front-end and back-end separation system, method, device and storage medium
CN114741294A (en) Page debugging method, device, equipment and storage medium
CN110327626B (en) Virtual server creation method and device
CN106371822A (en) Universal cloud platform internationalization method and device
CN115114280A (en) Report generation processing method, device and equipment
CN113051178A (en) Test data construction method, device, equipment and medium
CN112527278A (en) Smart form generating and issuing method, device, terminal and storage medium
CN115658838B (en) Map set data generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20230426

Address after: Room B-022, 1st floor, Building 18, No. 9 Jiuxianqiao North Road (factory area), Chaoyang District, Beijing, 100000

Applicant after: Beijing Mite Information Technology Co.,Ltd.

Address before: 100000 room b-021, first floor, building 18, No. 9 Jiuxianqiao North Road (plant area), Chaoyang District, Beijing

Applicant before: Beijing yidiandian Entertainment Technology Co.,Ltd.

TA01 Transfer of patent application right