Cross-platform communication method, device and computing equipment
By implementing cross-language platform functional module forwarding and processing in the application server, the multi-language integration problem of the cross-platform mobile development framework is solved, cross-terminal calls are realized, and development complexity and costs are reduced.
Patent Information
- Application Number
- CN202110004781.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-04
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-01-04
AI Technical Summary
Existing cross-platform mobile development frameworks such as React Native are difficult to integrate and call each other across multiple cross-platform solutions, resulting in increased development complexity and cost.
By implementing the cross-language platform function module in the application server, after receiving the request, it parses and forwards it to the function module of the corresponding language platform, executes and returns the result, and uses the preset bridge protocol to process cross-language platform calls, realizing multiple cross-language platform calls. Cross-end calling of platform languages.
It simplifies the calling process of cross-platform languages, reduces development costs and optimizes user experience, and achieves simple and rapid integration of multiple cross-platform languages.
Smart Images

Figure CN112685202B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a cross-platform communication method, apparatus and computing device. Background Art
[0002] Cross-platform mobile development has gained a reputation as one of the most popular software development trends. React Native framework is a cross-platform application development framework that uses JavaScript to provide Android and iOS users with a truly native application look and feel. In the field of front-end development of React Native framework, there are cross-platform solutions such as Web, FLutter, and React Native, but how to integrate these solutions so that they can call each other and can be easily integrated into the App is the current problem to be solved. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention provide a cross-platform communication method, apparatus, and computing device, which overcome the above problems or at least partially solve the above problems.
[0004] According to one aspect of an embodiment of the present invention, a cross-platform communication method is provided, the method comprising: receiving a first request, the first request being a request generated by a first functional module in the application server; the first functional module being a functional module implemented by a first language platform; parsing the first request to obtain a function to be implemented; determining whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server by a second language platform; when the function is a function corresponding to the second functional module in the application server, forwarding the first request to the second functional module; receiving an execution result of the function by the second functional module according to the first request; and forwarding the execution result of the function to the first functional module.
[0005] In an optional manner, the first language platform is constructed using a first computer language, and the second language platform is constructed using a second computer language.
[0006] In an optional manner, the second computer language is a native language of the APP during the APP development process.
[0007] In an optional manner, the first computer language is one of a Web language or a Flutter language.
[0008] In an optional manner, parsing the first request to obtain the function implemented by the request includes: identifying the first computer language applied to generate the first request according to a preset bridge protocol; parsing the first request according to the application of the first computer language to obtain the function that needs to be implemented in the first request.
[0009] In an optional manner, the functions that need to be implemented in the first request include but are not limited to calling Bluetooth, turning on the microphone, turning on the camera, and calling the address book.
[0010] In an optional manner, forwarding the execution result of the function to the first functional module includes: processing the execution result using a first computer language according to a preset bridge protocol; and transmitting the processed execution result to the first language platform.
[0011] According to another aspect of an embodiment of the present invention, a cross-platform communication device is provided, the device comprising: a first receiving unit, used to receive a first request, the first request being a request generated by a first functional module in the application server; the first functional module being a functional module implemented by a first language platform; a parsing unit, used to parse the first request and obtain a function to be implemented; a judging unit, used to determine whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server by a second language platform; a first forwarding unit, used to forward the first request to the second functional module when the function is a function corresponding to the second functional module in the application server; a second receiving unit, used to receive an execution result of the function by the second functional module according to the first request; and a second forwarding unit, used to forward the execution result of the function to the first functional module.
[0012] According to another aspect of an embodiment of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0013] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the steps of the above cross-platform communication method.
[0014] According to another aspect of an embodiment of the present invention, a computer storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables the processor to execute the steps of the above cross-platform communication method.
[0015] The embodiment of the present invention receives a first request, where the first request is a request generated by a first functional module in the application server; the first functional module is a functional module implemented by a first language platform; the first request is parsed to obtain a function to be implemented; it is determined whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server by a second language platform; when the function is a function corresponding to the second functional module in the application server, the first request is forwarded to the second functional module; the execution result of the function by the second functional module according to the first request is received; and the execution result of the function is forwarded to the first functional module, so that cross-end calls of multiple cross-platform languages can be simply and quickly implemented, development costs can be reduced, and user experience can be optimized.
[0016] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0018] Figure 1 A schematic diagram of a process flow of a cross-platform communication method provided by an embodiment of the present invention is shown;
[0019] Figure 2 A schematic diagram of a container structure of a cross-platform communication method provided by an embodiment of the present invention is shown;
[0020] Figure 3 A schematic diagram showing the structure of a cross-platform communication device provided by an embodiment of the present invention is shown;
[0021] Figure 4 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0022] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0023] Figure 1 FIG. 1 is a flow chart showing a cross-platform communication method provided by an embodiment of the present invention. The method is executed by a server. Figure 1 As shown, the cross-platform communication method includes:
[0024] Step S11: receiving a first request, where the first request is a request generated by a first functional module in the application server; the first functional module is a functional module implemented by a first language platform.
[0025] Before step S11, the first language platform is constructed by using the first computer language, and the second language platform is constructed by using the second computer language. In the embodiment of the present invention, the application server includes multiple language platforms and a container for applying native language settings, and the container includes multiple computer language SDKs and a scheduling center for scheduling between different language platforms. Figure 2 As shown, the Hydrofoil container is provided with a Native SDk corresponding to the native language platform, a Web SDK corresponding to the Web language platform, and a Flutter SDK corresponding to the Flutter language platform. The scheduling center in the Hydrofoil container can realize scheduling between the native language platform, the Web language platform, and the Flutter language platform. The first computer language is one of the Web language or the Flutter language. The second computer language can be the native (React Native) language of the APP in the APP development process. Of course, in other embodiments of the present invention, the first computer language may also be any computer language other than the native language, and the second computer language may also be other computer languages different from the first computer language, which is not limited here.
[0026] Step S12: Parse the first request to obtain the function to be implemented.
[0027] In an embodiment of the present invention, the first computer language used to generate the first request is identified according to a preset bridge protocol; the first request is parsed according to the first computer language, and the function to be implemented in the first request is obtained. The function to be implemented in the first request includes but is not limited to calling Bluetooth, turning on the microphone, turning on the camera, calling the address book, video playback, and image editing functions.
[0028] Step S13: Determine whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server through a second language platform.
[0029] In an embodiment of the present invention, the application scheduling center determines whether the function to be implemented obtained in step S12 is a function corresponding to the second functional module in the application server. That is, it is determined whether the function to be implemented is a function that needs to be implemented on the second language platform. For example, the first language platform is a Web language platform, and the second language platform is a Flutter language platform. The function to be implemented obtained according to the first request sent by the received Web language platform is to turn on the microphone. In step S13, it is determined whether the function of turning on the microphone is a function corresponding to the second functional module, that is, whether it is a function that needs to be implemented on the Flutter language platform.
[0030] Step S14: When the function is a function corresponding to a second functional module in the application server, forwarding the first request to the second functional module.
[0031] In an embodiment of the present invention, if the function to be implemented obtained in step S12 is a function corresponding to the second function module in the application server, the function is forwarded to the second function module so that the corresponding second language platform executes the function according to the first request.
[0032] Step S15: receiving the execution result of the function by the second functional module according to the first request.
[0033] After the second functional module executes the corresponding function according to the first request, it feeds back the execution result to the dispatch center, and the dispatch center receives the execution result fed back by the second functional module.
[0034] Step S16: forwarding the execution result of the function to the first functional module.
[0035] The execution result is processed by applying the first computer language according to the preset bridge protocol; and the processed execution result is transmitted to the first language platform. For example, the first language platform in the container is a Web language platform, and the second language platform is a Flutter language platform. The function obtained in the first request is the image editing function of the Flutter language platform. After the second functional module executes the image editing function corresponding to the first request through the Flutter language platform, it is necessary to forward the execution result to the first functional module. The execution result of the image editing function can be processed by applying the Web language according to the preset bridge protocol; and the processed execution result is transmitted to the Web language platform.
[0036] The second language platform in the embodiment of the present invention may also be a native language platform. When it is determined that the function obtained in the first request is a function that needs to be implemented by the native language platform, the second function module executes the function through the native language platform, obtains the corresponding execution result, and forwards the execution result to the first function module.
[0037] The cross-platform communication method of the embodiment of the present invention supports cross-end calls by integrating multiple cross-platform solutions on a preset platform. The code logic converges into an installable container, which can simply and quickly implement cross-end calls of multiple cross-platform languages, reduce development costs, and optimize user experience.
[0038] The embodiment of the present invention receives a first request, where the first request is a request generated by a first functional module in the application server; the first functional module is a functional module implemented by a first language platform; the first request is parsed to obtain a function to be implemented; it is determined whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server by a second language platform; when the function is a function corresponding to the second functional module in the application server, the first request is forwarded to the second functional module; the execution result of the function by the second functional module according to the first request is received; and the execution result of the function is forwarded to the first functional module, so that cross-end calls of multiple cross-platform languages can be simply and quickly implemented, development costs can be reduced, and user experience can be optimized.
[0039] Figure 3 FIG. 1 is a schematic diagram showing the structure of a cross-platform communication device according to an embodiment of the present invention. The cross-platform communication device is applied to a server. Figure 3 As shown, the cross-platform communication device includes: a first receiving unit 301, a parsing unit 302, a judging unit 303, a first forwarding unit 304, a second receiving unit 305 and a second forwarding unit 306. Wherein:
[0040] The first receiving unit 301 is used to receive a first request, where the first request is a request generated by a first functional module in the application server; the first functional module is a functional module implemented by a first language platform; the parsing unit 302 is used to parse the first request to obtain a function to be implemented; the judging unit 303 is used to determine whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server by a second language platform; the first forwarding unit 304 is used to forward the first request to the second functional module when the function is a function corresponding to the second functional module in the application server; the second receiving unit 305 is used to receive the execution result of the function by the second functional module according to the first request; the second forwarding unit 306 is used to forward the execution result of the function to the first functional module.
[0041] In an optional manner, the first language platform is constructed using a first computer language, and the second language platform is constructed using a second computer language.
[0042] In an optional manner, the second computer language is a native language of the APP during the APP development process.
[0043] In an optional manner, the first computer language is one of a Web language or a Flutter language.
[0044] In an optional manner, the parsing unit 302 is used to: identify the first computer language applied to generate the first request according to a preset bridge protocol; parse the first request according to the application of the first computer language to obtain the function to be implemented in the first request.
[0045] In an optional manner, the functions that need to be implemented in the first request include but are not limited to calling Bluetooth, turning on the microphone, turning on the camera, and calling the address book.
[0046] In an optional manner, the second forwarding unit 306 is used to: process the execution result using the first computer language according to a preset bridge protocol; and transmit the processed execution result to the first language platform.
[0047] The embodiment of the present invention receives a first request, where the first request is a request generated by a first functional module in the application server; the first functional module is a functional module implemented by a first language platform; the first request is parsed to obtain a function to be implemented; it is determined whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server by a second language platform; when the function is a function corresponding to the second functional module in the application server, the first request is forwarded to the second functional module; the execution result of the function by the second functional module according to the first request is received; and the execution result of the function is forwarded to the first functional module, so that cross-end calls of multiple cross-platform languages can be simply and quickly implemented, development costs can be reduced, and user experience can be optimized.
[0048] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the cross-platform communication method in any of the above method embodiments.
[0049] The executable instructions may be used to cause the processor to perform the following operations:
[0050] receiving a first request, wherein the first request is a request generated by a first functional module in the application server; the first functional module is a functional module implemented by a first language platform;
[0051] Parsing the first request to obtain the function to be implemented;
[0052] Determine whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server through a second language platform;
[0053] When the function is a function corresponding to a second functional module in the application server, forwarding the first request to the second functional module;
[0054] receiving a result of executing the function by the second functional module according to the first request;
[0055] The execution result of the function is forwarded to the first function module.
[0056] In an optional manner, the first language platform is constructed using a first computer language, and the second language platform is constructed using a second computer language.
[0057] In an optional manner, the second computer language is a native language of the APP during the APP development process.
[0058] In an optional manner, the first computer language is one of a Web language or a Flutter language.
[0059] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0060] identifying the first computer language used to generate the first request according to a preset bridge protocol;
[0061] The first request is parsed by applying a first computer language to obtain the function that needs to be implemented in the first request.
[0062] In an optional manner, the functions that need to be implemented in the first request include but are not limited to calling Bluetooth, turning on the microphone, turning on the camera, and calling the address book.
[0063] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0064] Processing the execution result using a first computer language according to a preset bridge protocol;
[0065] The processed execution result is transmitted to the first language platform.
[0066] The embodiment of the present invention receives a first request, where the first request is a request generated by a first functional module in the application server; the first functional module is a functional module implemented by a first language platform; the first request is parsed to obtain a function to be implemented; it is determined whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server by a second language platform; when the function is a function corresponding to the second functional module in the application server, the first request is forwarded to the second functional module; the execution result of the function by the second functional module according to the first request is received; and the execution result of the function is forwarded to the first functional module, so that cross-end calls of multiple cross-platform languages can be simply and quickly implemented, development costs can be reduced, and user experience can be optimized.
[0067] An embodiment of the present invention provides a cross-platform communication device, which is used to execute the above cross-platform communication method.
[0068] An embodiment of the present invention provides a computer program, which can be called by a processor to enable a base station device to execute the cross-platform communication method in any of the above method embodiments.
[0069] An embodiment of the present invention provides a computer program product, which includes a computer program stored on a computer storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the cross-platform communication method in any of the above method embodiments.
[0070] The executable instructions may be used to cause the processor to perform the following operations:
[0071] receiving a first request, wherein the first request is a request generated by a first functional module in the application server; the first functional module is a functional module implemented by a first language platform;
[0072] Parsing the first request to obtain the function to be implemented;
[0073] Determine whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server through a second language platform;
[0074] When the function is a function corresponding to a second functional module in the application server, forwarding the first request to the second functional module;
[0075] receiving a result of executing the function by the second functional module according to the first request;
[0076] The execution result of the function is forwarded to the first function module.
[0077] In an optional manner, the first language platform is constructed using a first computer language, and the second language platform is constructed using a second computer language.
[0078] In an optional manner, the second computer language is a native language of the APP during the APP development process.
[0079] In an optional manner, the first computer language is one of a Web language or a Flutter language.
[0080] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0081] identifying the first computer language used to generate the first request according to a preset bridge protocol;
[0082] The first request is parsed by applying a first computer language to obtain the function that needs to be implemented in the first request.
[0083] In an optional manner, the functions that need to be implemented in the first request include but are not limited to calling Bluetooth, turning on the microphone, turning on the camera, and calling the address book.
[0084] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0085] Processing the execution result using a first computer language according to a preset bridge protocol;
[0086] The processed execution result is transmitted to the first language platform.
[0087] The embodiment of the present invention receives a first request, where the first request is a request generated by a first functional module in the application server; the first functional module is a functional module implemented by a first language platform; the first request is parsed to obtain a function to be implemented; it is determined whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server by a second language platform; when the function is a function corresponding to the second functional module in the application server, the first request is forwarded to the second functional module; the execution result of the function by the second functional module according to the first request is received; and the execution result of the function is forwarded to the first functional module, so that cross-end calls of multiple cross-platform languages can be simply and quickly implemented, development costs can be reduced, and user experience can be optimized.
[0088] Figure 4 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the device.
[0089] like Figure 4 As shown, the computing device may include: a processor (processor) 402 , a communications interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .
[0090] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above cross-platform communication method embodiment.
[0091] Specifically, the program 410 may include program codes, which include computer operation instructions.
[0092] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0093] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0094] The program 410 may be specifically configured to enable the processor 402 to perform the following operations:
[0095] receiving a first request, wherein the first request is a request generated by a first functional module in the application server; the first functional module is a functional module implemented by a first language platform;
[0096] Parsing the first request to obtain the function to be implemented;
[0097] Determine whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server through a second language platform;
[0098] When the function is a function corresponding to a second functional module in the application server, forwarding the first request to the second functional module;
[0099] receiving a result of executing the function by the second functional module according to the first request;
[0100] The execution result of the function is forwarded to the first function module.
[0101] In an optional manner, the first language platform is constructed using a first computer language, and the second language platform is constructed using a second computer language.
[0102] In an optional manner, the second computer language is a native language of the APP during the APP development process.
[0103] In an optional manner, the first computer language is one of a Web language or a Flutter language.
[0104] In an optional manner, the program 410 enables the processor to perform the following operations:
[0105] identifying the first computer language used to generate the first request according to a preset bridge protocol;
[0106] The first request is parsed by applying a first computer language to obtain the function that needs to be implemented in the first request.
[0107] In an optional manner, the functions that need to be implemented in the first request include but are not limited to calling Bluetooth, turning on the microphone, turning on the camera, and calling the address book.
[0108] In an optional manner, the program 410 enables the processor to perform the following operations:
[0109] Processing the execution result using a first computer language according to a preset bridge protocol;
[0110] The processed execution result is transmitted to the first language platform.
[0111] The embodiment of the present invention receives a first request, where the first request is a request generated by a first functional module in the application server; the first functional module is a functional module implemented by a first language platform; the first request is parsed to obtain a function to be implemented; it is determined whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server by a second language platform; when the function is a function corresponding to the second functional module in the application server, the first request is forwarded to the second functional module; the execution result of the function by the second functional module according to the first request is received; and the execution result of the function is forwarded to the first functional module, so that cross-end calls of multiple cross-platform languages can be simply and quickly implemented, development costs can be reduced, and user experience can be optimized.
[0112] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description made to specific languages above is for disclosing the best mode of the present invention.
[0113] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0114] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this method of disclosure should not be interpreted as reflecting an intention that the claimed invention requires more features than those expressly recited in each claim.
[0115] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0116] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A cross-platform communication method, characterized in that: Applied in an application server, the method comprises: Receive a first request, where the first request is a request generated by a first functional module in the application server; the application server includes multiple language platforms and a container for applying native language settings, and the container includes multiple computer language SDKs and a scheduling center for scheduling between different language platforms; the first functional module is a functional module implemented by a first language platform; the first language platform is constructed using a first computer language, and the first computer language is one of a Web language or a Flutter language; Parsing the first request to obtain the function to be implemented; Determine whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server through a second language platform; the second language platform is constructed using a second computer language, and the second computer language is a native language of the APP in the APP development process; When the function is a function corresponding to a second functional module in the application server, forwarding the first request to the second functional module; receiving a result of executing the function by the second functional module according to the first request; The execution result of the function is forwarded to the first function module.
2. The method according to claim 1, characterized in that The parsing of the first request to obtain the function implemented by the request includes: identifying the first computer language used to generate the first request according to a preset bridge protocol; The first request is parsed by applying a first computer language to obtain the function that needs to be implemented in the first request.
3. The method according to claim 2, characterized in that The functions that need to be implemented in the first request include but are not limited to calling Bluetooth, turning on the microphone, turning on the camera, and calling the address book.
4. The method according to claim 1, characterized in that: The forwarding the execution result of the function to the first functional module includes: Processing the execution result using a first computer language according to a preset bridge protocol; The processed execution result is transmitted to the first language platform.
5. A cross-platform communication device, characterized in that: The device comprises: A first receiving unit is used to receive a first request, where the first request is a request generated by a first functional module in an application server; the application server includes multiple language platforms and a container for application native language settings, and the container includes multiple computer language SDKs and a scheduling center for scheduling between different language platforms; the first functional module is a functional module implemented by a first language platform; the first language platform is constructed using a first computer language, and the first computer language is one of a Web language or a Flutter language; A parsing unit, used for parsing the first request to obtain a function to be implemented; A judgment unit, used to determine whether the function to be implemented is a function corresponding to a second functional module in the application server; the second functional module is a functional module implemented by the application server through a second language platform; the second language platform is constructed using a second computer language, and the second computer language is a native language of the APP in the APP development process; a first forwarding unit, configured to forward the first request to the second functional module in the application server when the function is a function corresponding to the second functional module in the application server; a second receiving unit, configured to receive a result of executing the function by the second functional module according to the first request; The second forwarding unit is used to forward the execution result of the function to the first functional module.
6. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the steps of the cross-platform communication method according to any one of claims 1-4.
7. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and wherein the executable instruction enables a processor to execute the steps of the cross-platform communication method according to any one of claims 1 to 4.
