CN114090135B - Method and device with error correction function and supporting cross-platform calling component - Google Patents
Method and device with error correction function and supporting cross-platform calling component Download PDFInfo
- Publication number
- CN114090135B CN114090135B CN202111405725.5A CN202111405725A CN114090135B CN 114090135 B CN114090135 B CN 114090135B CN 202111405725 A CN202111405725 A CN 202111405725A CN 114090135 B CN114090135 B CN 114090135B
- Authority
- CN
- China
- Prior art keywords
- call information
- error
- calling
- final call
- final
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000012937 correction Methods 0.000 title claims abstract description 39
- 238000006243 chemical reaction Methods 0.000 claims abstract description 71
- 230000006870 function Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 9
- 238000004806 packaging method and process Methods 0.000 claims description 5
- JEIPFZHSYJVQDO-UHFFFAOYSA-N iron(III) oxide Inorganic materials O=[Fe]O[Fe]=O JEIPFZHSYJVQDO-UHFFFAOYSA-N 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 6
- 230000008901 benefit Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 238000009877 rendering Methods 0.000 description 3
- 238000009662 stress testing Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
- G06F9/449—Object-oriented method invocation or resolution
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method and a device with error correction function and supporting cross-platform calling components, wherein the method comprises the following steps: acquiring at least one original call information of a component and a first format file of the original call information; marking a corresponding conversion identifier for each piece of original calling information, and converting each piece of original calling information into final calling information of the second format file; calling final call information, and analyzing error final call information corresponding to errors generated by calling; inquiring correct final call information corresponding to the error final call information by traversing the conversion identification in the error correction inquiry database based on the conversion identification of the error final call information; and correcting the error final call information according to the correct final call information to obtain corrected final call information, and recalling the corrected final call information. The method and the device support the efficient and quick cross-platform calling component, and can also correct error calling information generated in the calling process.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for supporting cross-platform calling components with error correction function.
Background
With the development of society, the living standard of people is improved, and mobile terminals such as mobile phones, tablet computers and other electronic devices become an indispensable part of daily life of people. At present, mobile terminals are various in variety, and operating systems installed in different types of mobile terminals are also quite different, such as an android system, an IOS system and a harmon system, so that when cross-platform calling components of different systems are realized, the problem that calling cannot be performed often occurs. Therefore, the prior art lacks a method and a device capable of supporting the cross-platform calling component, and particularly lacks a method and a device which have an error correction function and support the cross-platform calling component.
Disclosure of Invention
The technical problem to be solved by the invention is how to support the cross-platform calling component and how to correct errors generated in the calling process, so that each calling terminal can be normally called for use after error correction.
In order to solve the above technical problems, an embodiment of the present invention provides a method for supporting a cross-platform calling component with an error correction function, the method including:
acquiring at least one original call information of a component and a first format file of the at least one original call information;
Marking a corresponding conversion identifier for each piece of original calling information based on at least one piece of original calling information and at least one first format file, and converting each piece of original calling information marked with the conversion identifier into final calling information of a second format file;
Responding to the call final call information, and analyzing error final call information corresponding to errors generated by calling, wherein the error final call information is the final call information marked with the conversion identification;
Inquiring correct final call information corresponding to the error final call information by traversing the conversion identification in the error correction inquiry database based on the conversion identification of the error final call information;
and correcting the error final call information according to the correct final call information to obtain corrected final call information, and recalling the corrected final call information.
Optionally, correcting the error final call information according to the correct final call information to obtain corrected final call information, including:
Responding to a comparison result of the correct final call information and the error final call information to obtain a distinguishing part of the error final call information;
the differentiated part is modified to be the same as the corresponding part of the correct final call information.
Optionally, parsing the error final call information corresponding to the error generated by the call includes:
calling a preset analysis database, wherein the preset analysis database comprises a prestored error generated by calling and prestored error final calling information corresponding to the prestored error;
And searching the prestored errors identical to the errors by traversing a preset analysis database, and determining that prestored error final call information corresponding to the prestored errors is error final call information corresponding to the errors according to the inquired prestored errors.
Optionally, after converting each piece of original call information marked with the conversion identifier into final call information of the second format file, the method further includes:
Performing function classification according to final call information of the second format file;
And respectively packaging the final call information of the second format files with different functions into system application program interfaces for direct call of the calling end.
Optionally, based on at least one piece of original call information and at least one first format file, marking a corresponding conversion identifier for each piece of original call information, including:
and adding a conversion identifier at a preset position of each piece of original calling information based on at least one piece of original calling information and at least one first format file.
Optionally, the first format file is any one of a Javascript language format file, a C language format file, a c++ language format file, a Swift language format file, a Rust language format file and an Objective-C language format file; and/or the second format file is a binary format file.
Optionally, when the calling end is a web page end adopting Javascript, the calling end calls the final call information of the second format file, including:
the web page end of the Javascript calls the final call information of the second format file through JSBridge.
According to an aspect of an embodiment of the present invention, there is provided an apparatus having an error correction function and supporting a cross-platform calling component, the apparatus including:
the information acquisition module is used for acquiring at least one original call information of the component and a first format file of the at least one original call information;
The identification conversion module is used for marking a corresponding conversion identification for each piece of original calling information based on at least one piece of original calling information and at least one first format file, and converting each piece of original calling information marked with the conversion identification into final calling information of a second format file;
The calling error analysis module is used for responding to calling terminal calling information and analyzing error terminal calling information corresponding to errors generated by calling, wherein the error terminal calling information is terminal calling information marked with a conversion identifier;
the error correction module is used for inquiring correct final call information corresponding to the error final call information by traversing the conversion identification in the error correction inquiry database based on the conversion identification of the error final call information;
The correction module is used for correcting the error final call information according to the correct final call information to obtain corrected final call information, and recalling the corrected final call information.
According to a further aspect of embodiments of the present invention, there is provided a computer readable storage medium storing a computer program for performing the method according to any one of the above embodiments of the present invention.
According to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a processor; a memory for storing processor-executable instructions; a processor for reading the executable instructions from the memory and executing the instructions to implement the method according to any of the above embodiments of the present invention.
The method and the device with the error correction function and supporting the cross-platform calling component are realized by acquiring at least one original calling information of the component and a first format file of the original calling information; marking a corresponding conversion identifier for each piece of original calling information, and converting each piece of original calling information into final calling information of the second format file; calling final call information, and analyzing error final call information corresponding to errors generated by calling; inquiring correct final call information corresponding to the error final call information by traversing the conversion identification in the error correction inquiry database based on the conversion identification of the error final call information; according to the correct final call information, correcting the error final call information to obtain corrected final call information, and recalling the corrected final call information, the method can support each calling end to efficiently and rapidly call the component, and can correct the error call information generated in the calling process so as to recall each calling end.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing embodiments of the present invention in more detail with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, and not constitute a limitation to the invention. In the drawings, like reference numerals generally refer to like parts or steps.
FIG. 1 is a flow chart of a method with error correction and supporting cross-platform calling components according to an embodiment of the present invention;
FIG. 2 is another flow chart of a method with error correction and supporting cross-platform calling components according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a method with error correction and supporting cross-platform calling components according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus with error correction and supporting cross-platform calling components according to an embodiment of the present invention;
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Hereinafter, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some embodiments of the present invention and not all embodiments of the present invention, and it should be understood that the present invention is not limited by the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless it is specifically stated otherwise.
It will be appreciated by those of skill in the art that the terms "first," "second," etc. in embodiments of the present invention are used merely to distinguish between different steps, devices or modules, etc., and do not represent any particular technical meaning nor necessarily logical order between them.
It should also be understood that in embodiments of the present invention, "plurality" may refer to two or more, and "at least one" may refer to one, two or more.
It should also be appreciated that any component, data, or structure referred to in an embodiment of the invention may be generally understood as one or more without explicit limitation or the contrary in the context.
In addition, the term "and/or" in the present invention is merely an association relationship describing the association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In the present invention, the character "/" generally indicates that the front and rear related objects are an or relationship.
It should also be understood that the description of the embodiments of the present invention emphasizes the differences between the embodiments, and that the same or similar features may be referred to each other, and for brevity, will not be described in detail.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the techniques, methods, and apparatus should be considered part of the specification.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
Embodiments of the invention are operational with numerous other general purpose or special purpose computing system environments or configurations with electronic devices, such as terminal devices, computer systems, servers, etc. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with the terminal device, computer system, server, or other electronic device include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, minicomputer systems, mainframe computer systems, and distributed cloud computing technology environments that include any of the above systems, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc., that perform particular tasks or implement particular abstract data types. The computer system/server may be implemented in a distributed cloud computing environment in which tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computing system storage media including memory storage devices.
Exemplary method
FIG. 1 is a flow chart of a method with error correction and supporting cross-platform calling components according to an embodiment of the invention, as shown in FIG. 1, the method includes the following steps:
Step S101: acquiring at least one original call information of a component and a first format file of the at least one original call information;
In step S101, at least one piece of original calling information is related data information necessary for calling a component by the calling end, the calling end may obtain the related data information according to the actually selected component, and a method for obtaining the related data information may be obtained by using a method in the prior art, which is not limited herein. For example: if the selected component is a rendering component, the original calling information is rendering data information of the rendering component. In addition, the number of the at least one original call information may be one or more, which is not limited herein.
Correspondingly, the first format file of the at least one original call information may be obtained through a component type and/or a language type and the like included in the original call information, where the first format file may be any one of a Javascript language format file, a C language file format, a c++ language file format, a Swift language format file, a Rust language format file and an Objective-C language format file, that is, if the language adopted by the original call information is a Javascript language, the first format file is a Javascript language format file, and the other cases are not repeated herein.
Step S102: marking a corresponding conversion identifier for each piece of original calling information based on at least one piece of original calling information and at least one first format file, and converting each piece of original calling information marked with the conversion identifier into final calling information of a second format file;
in order to enable each calling end to quickly call the component in the embodiment of the invention, each piece of original call information marked with the conversion identifier is preferably converted into final call information of the binary format file, that is, the second format file is preferably the binary format file.
The conversion identifier may be a binary character, or may be another kind of character, and those skilled in the art may select the conversion identifier according to actual needs, which is not limited herein. For example: if the conversion mark is a binary character and the second format file is a binary format file, when each piece of original call information marked with the conversion mark is converted into final call information of the second format file, the conversion character is already in a binary format, so that only other parts of the final call information except the conversion character need to be converted; if the conversion identifier is a hexadecimal character and the second format file is a binary format file, when each piece of original call information marked with the conversion identifier is converted into final call information of the second format file, the conversion identifier in hexadecimal format is also converted into binary format because the conversion identifier is converted into hexadecimal format.
It should be understood that, since the embodiment of the present invention does not limit the kind of the conversion flag, the number of bits of the conversion flag is not limited, but it is necessary to ensure that the format of the conversion flag is identical to the format of the second format file when each piece of original call information marked with the conversion flag is converted into final call information of the second format file.
In an alternative embodiment, step S102 specifically includes: and marking a conversion identifier at a preset position of each piece of original calling information based on at least one piece of original calling information and at least one first format file. In order to facilitate marking and querying, it is preferable to add a conversion identifier at the beginning of each piece of original call information, that is, the preset position is preferably the beginning position of each piece of original call information. Further, when the conversion flag includes a plurality of characters, the conversion flag may also be scatter-marked at a plurality of preset positions of each piece of original call information, that is, the preset positions include a plurality of.
After converting each piece of original call information marked with the conversion identifier into final call information of the second format file in step S102, the method may further include: performing function classification according to final call information of the second format file; and respectively packaging the final call information of the second format files with different functions into system application program interfaces for direct call of the calling end. The method can enable the calling end to directly call the final call information of the second format file, and speed up the call.
Step S103: responding to the call final call information, and analyzing error final call information corresponding to errors generated by calling, wherein the error final call information is the final call information marked with the conversion identification;
optionally, as shown in fig. 2, the parsing of the error final call information corresponding to the error generated by the call specifically includes the following steps:
step S1031: calling a preset analysis database, wherein the preset analysis database comprises a prestored error generated by calling and prestored error final calling information corresponding to the prestored error;
Step S1032: and searching the prestored errors identical to the errors by traversing a preset analysis database, and determining that prestored error final call information corresponding to the prestored errors is error final call information corresponding to the errors according to the inquired prestored errors.
The pre-storage error and the pre-storage error final call information corresponding to the pre-storage error may be preset by a user, or may be summarized by analyzing historical data, and may be selected by a person skilled in the art according to actual situations, which is not limited herein.
Step S104: inquiring correct final call information corresponding to the error final call information by traversing the conversion identification in the error correction inquiry database based on the conversion identification of the error final call information;
Step S105: and correcting the error final call information according to the correct final call information to obtain corrected final call information, and recalling the corrected final call information.
Optionally, as shown in fig. 3, in step S105, the error final call information is corrected according to the correct final call information, so as to obtain corrected final call information, which specifically includes the following steps:
step S1051: responding to a comparison result of the correct final call information and the error final call information to obtain a distinguishing part of the error final call information;
Step S1052: and correcting the distinguishing part to be the same as the corresponding part of the correct final call information to obtain corrected final call information, and recalling the corrected final call information.
In this embodiment, the error correction query database may store the conversion identifier, the original call information and the correct final call information, or the error correction query database may store the conversion identifier and the correct final call information, which may be selected by those skilled in the art according to actual needs, and is not limited herein.
In a specific optional implementation manner, when the calling end is a web page end adopting Javascript, the calling end calls the final call information of the second format file, including: the web page end of the Javascript calls the final call information of the second format file through JSBridge.
The invention also provides a device with error correction function and supporting cross-platform calling components, as shown in fig. 4, the device comprises:
an information obtaining module 401, configured to obtain at least one original call information of the component, and a first format file of the at least one original call information;
the identifier conversion module 402 is configured to mark a corresponding conversion identifier for each piece of original call information based on at least one piece of original call information and at least one first format file, and convert each piece of original call information marked with the conversion identifier into final call information of a second format file;
The call error analysis module 403 is configured to respond to call end call information, and analyze error end call information corresponding to an error generated by the call, where the error end call information is end call information marked with a conversion identifier;
the error correction module 404 is configured to query correct final call information corresponding to the error final call information by traversing the conversion identifier in the error correction query database based on the conversion identifier of the error final call information;
The correction module 405 is configured to correct the error final call information according to the correct final call information, obtain corrected final call information, and recall the corrected final call information.
Wherein, the identifier conversion module 402 may add a conversion identifier at a preset location of each piece of original call information based on at least one piece of original call information and at least one first format file.
Optionally, the call error resolution module 403 is specifically configured to: calling a preset analysis database, wherein the preset analysis database comprises a prestored error generated by calling and prestored error final calling information corresponding to the prestored error; and searching the prestored errors identical to the errors by traversing a preset analysis database, and determining that prestored error final call information corresponding to the prestored errors is error final call information corresponding to the errors according to the inquired prestored errors.
Optionally, the correction module 405 is specifically configured to: responding to a comparison result of the correct final call information and the error final call information to obtain a distinguishing part of the error final call information; the differentiated part is modified to be the same as the corresponding part of the correct final call information.
In an alternative embodiment, the apparatus further comprises: an interface packaging module (not shown in the figure), which is specifically configured to: performing function classification according to final call information of the second format file; and respectively packaging the final call information of the second format files with different functions into system application program interfaces for direct call of the calling end.
Optionally, the first format file is any one of a Javascript language format file, a C language format file, a c++ language format file, a Swift language format file, a Rust language format file and an Objective-C language format file; and/or the second format file is a binary format file.
The device with error correction function and supporting the cross-platform calling component provided by the embodiment of the invention corresponds to the method with error correction function and supporting the cross-platform calling component provided by the embodiment of the invention, and other descriptions can refer to descriptions of the method with error correction function and supporting the cross-platform calling component provided by the embodiment of the invention, which are not repeated here.
The method and the device with the error correction function and supporting the cross-platform calling component are realized by acquiring at least one original calling information of the component and a first format file of the original calling information; marking a corresponding conversion identifier for each piece of original calling information, and converting each piece of original calling information into final calling information of the second format file; calling final call information, and analyzing error final call information corresponding to errors generated by calling; inquiring correct final call information corresponding to the error final call information by traversing the conversion identification in the error correction inquiry database based on the conversion identification of the error final call information; according to the correct final call information, correcting the error final call information to obtain corrected final call information, and recalling the corrected final call information, the method can support each calling end to efficiently and rapidly call the component, and can correct the error call information generated in the calling process so as to recall each calling end.
Exemplary electronic device
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device may be either or both of the first device and the second device, or a stand-alone device independent thereof, which may communicate with the first device and the second device to receive the acquired input signals therefrom. Fig. 5 illustrates a block diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 5, the electronic device 50 includes one or more processors 51 and memory 52.
The processor 51 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
Memory 52 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that can be executed by the processor 51 to implement the method of stress testing a server and/or other desired functions of the software program of the various embodiments of the present disclosure described above. In one example, the electronic device may further include: an input device 53 and an output device 54, which are interconnected by a bus system and/or other forms of connection mechanisms (not shown).
In addition, the input device 53 may also include, for example, a keyboard, a mouse, and the like.
The output device 54 can output various information to the outside. The output devices 54 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, etc.
Of course, only some of the components of the electronic device relevant to the present disclosure are shown in fig. 5 for simplicity, components such as buses, input/output interfaces, etc. being omitted. In addition, the electronic device may include any other suitable components depending on the particular application.
Exemplary computer program product and computer readable storage Medium
In addition to the methods and apparatus described above, embodiments of the present disclosure may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform steps in a method of stress testing a server according to various embodiments of the present disclosure described in the "exemplary methods" section of this specification.
The computer program product may write program code for performing the operations of embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium, having stored thereon computer program instructions, which when executed by a processor, cause the processor to perform steps in a method of stress testing a server according to various embodiments of the present disclosure described in the above "exemplary method" section of the present disclosure.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present disclosure have been described above in connection with specific embodiments, but it should be noted that the advantages, benefits, effects, etc. mentioned in the present disclosure are merely examples and not limiting, and these advantages, benefits, effects, etc. are not to be considered as necessarily possessed by the various embodiments of the present disclosure. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, since the disclosure is not necessarily limited to practice with the specific details described.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, so that the same or similar parts between the embodiments are mutually referred to. For system embodiments, the description is relatively simple as it essentially corresponds to method embodiments, and reference should be made to the description of method embodiments for relevant points.
The block diagrams of the devices, apparatuses, devices, systems referred to in this disclosure are merely illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, apparatuses, devices, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above-described sequence of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present disclosure may also be implemented as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the apparatus, devices and methods of the present disclosure, components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered equivalent to the present disclosure. The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the disclosure to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.
Claims (9)
1. A method having error correction functionality and supporting cross-platform invocation of components, the method comprising:
acquiring at least one original call information of a component and a first format file of the at least one original call information;
Marking a corresponding conversion identifier for each piece of original calling information based on the at least one piece of original calling information and the at least one first format file, and converting each piece of original calling information marked with the conversion identifier into final calling information of a second format file;
Responding to the call final call information, and analyzing error final call information corresponding to errors generated by call, wherein the error final call information is the final call information marked with the conversion identification;
Based on the conversion identification of the error final call information, inquiring correct final call information corresponding to the error final call information by traversing the conversion identification in the error correction inquiry database;
Correcting the error final call information according to the correct final call information to obtain corrected final call information, and recalling the corrected final call information;
the analyzing the error final call information corresponding to the error generated by the call includes:
calling a preset analysis database, wherein the preset analysis database comprises a prestored error generated by calling and prestored error final calling information corresponding to the prestored error;
And searching the prestored errors identical to the errors by traversing the preset analysis database, and determining that prestored error final call information corresponding to the prestored errors is error final call information corresponding to the errors according to the inquired prestored errors.
2. The method of claim 1, wherein correcting the erroneous final call information based on the correct final call information to obtain corrected final call information comprises:
Responding to a comparison result of the correct final call information and the error final call information to obtain a distinguishing part of the error final call information;
The distinguishing part is modified to be identical to the corresponding part of the correct final call information.
3. The method according to claim 1, further comprising, after said converting each of said original call information marked with said conversion identifier into final call information of a second format file:
performing function classification according to the final call information of the second format file;
and respectively packaging the final call information of the second format files with different functions into system application program interfaces for direct call of a calling end.
4. The method of claim 1, wherein the marking a corresponding translation identifier for each piece of original call information based on the at least one piece of original call information and the at least one first format file comprises:
and adding the conversion identification at a preset position of each piece of original calling information based on the at least one piece of original calling information and the at least one first format file.
5. The method according to claim 1, wherein the first format file is any one of a Javascript language format file, a C language file format, a c++ language file format, a shift language format file, a Rust language format file, and an objected-C language format file; and/or the second format file is a binary format file.
6. The method of claim 1, wherein when the calling terminal is a web terminal adopting Javascript, the calling terminal calls the final call information of the second format file, including:
And the web page end of the Javascript calls the final call information of the second format file through JSBridge.
7. An apparatus having error correction functionality and supporting cross-platform invocation of components, the apparatus comprising:
the information acquisition module is used for acquiring at least one original call information of the component and a first format file of the at least one original call information;
The identification conversion module is used for marking a corresponding conversion identification for each piece of original calling information based on the at least one piece of original calling information and the at least one first format file, and converting each piece of original calling information marked with the conversion identification into final calling information of a second format file;
The calling error analysis module is used for responding to the calling end to call the final call information and analyzing error final call information corresponding to errors generated by calling, wherein the error final call information is final call information marked with the conversion identification; the analyzing the error final call information corresponding to the error generated by the call includes: calling a preset analysis database, wherein the preset analysis database comprises a prestored error generated by calling and prestored error final calling information corresponding to the prestored error; searching the prestored errors identical to the errors by traversing the preset analysis database, and determining that prestored error final call information corresponding to the prestored errors is error final call information corresponding to the errors according to the inquired prestored errors;
the error correction module is used for inquiring correct final call information corresponding to the error final call information by traversing the conversion identification in the error correction inquiry database based on the conversion identification of the error final call information;
the correction module is used for correcting the error final call information according to the correct final call information to obtain corrected final call information, and recalling the corrected final call information.
8. A computer readable storage medium, characterized in that the storage medium stores a computer program for executing the method of any of the preceding claims 1-6.
9. An electronic device, the electronic device comprising:
A processor;
A memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method of any of the preceding claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111405725.5A CN114090135B (en) | 2021-11-24 | 2021-11-24 | Method and device with error correction function and supporting cross-platform calling component |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111405725.5A CN114090135B (en) | 2021-11-24 | 2021-11-24 | Method and device with error correction function and supporting cross-platform calling component |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114090135A CN114090135A (en) | 2022-02-25 |
CN114090135B true CN114090135B (en) | 2024-05-24 |
Family
ID=80304052
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111405725.5A Active CN114090135B (en) | 2021-11-24 | 2021-11-24 | Method and device with error correction function and supporting cross-platform calling component |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114090135B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116483328B (en) * | 2023-06-19 | 2023-09-12 | 广州信位通讯科技有限公司 | System and method for running HongMong APP on ThreadX embedded software platform |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103618699A (en) * | 2013-11-12 | 2014-03-05 | 吴晓军 | Method and device for calling component |
CN104281455A (en) * | 2014-10-11 | 2015-01-14 | 北京金山安全软件有限公司 | Interface calling method and device and terminal |
CN104516730A (en) * | 2013-09-29 | 2015-04-15 | 国际商业机器公司 | Data processing method and device |
US9823909B1 (en) * | 2014-05-02 | 2017-11-21 | Amazon Technologies, Inc. | Program code conversion for cross-platform compatibility |
CN107908426A (en) * | 2017-12-21 | 2018-04-13 | 江苏国泰新点软件有限公司 | Design method, device, mobile terminal and the storage medium of cross-platform program |
CN107957911A (en) * | 2016-10-18 | 2018-04-24 | 腾讯科技(深圳)有限公司 | Method and apparatus, the method and apparatus of module data processing of component call |
US10282241B1 (en) * | 2017-07-19 | 2019-05-07 | Vinyl Development LLC | Data driven API conversion |
CN110083457A (en) * | 2018-01-26 | 2019-08-02 | 北京京东尚科信息技术有限公司 | A kind of data capture method, device and data analysing method, device |
CN110968989A (en) * | 2018-09-27 | 2020-04-07 | 北京国双科技有限公司 | Method and device for displaying error correction information on front-end page |
CN111026797A (en) * | 2019-12-02 | 2020-04-17 | 卫盈联信息技术(深圳)有限公司 | Service data processing method, server and storage medium |
CN111722947A (en) * | 2020-06-28 | 2020-09-29 | 深圳壹账通智能科技有限公司 | Service calling method and system |
CN112015384A (en) * | 2019-05-29 | 2020-12-01 | 北京京东尚科信息技术有限公司 | An interface mapping method and device |
CN112052117A (en) * | 2020-06-28 | 2020-12-08 | 南京理工大学 | Satellite-borne system software protection method based on redundant API (application program interface) |
CN112732807A (en) * | 2020-12-30 | 2021-04-30 | 福建卓融信息技术有限公司 | Interface calling method and device |
CN113407255A (en) * | 2021-06-16 | 2021-09-17 | 上海微盟企业发展有限公司 | Component calling method and device and computer readable storage medium |
CN113407167A (en) * | 2021-05-14 | 2021-09-17 | 江苏航天七零六信息科技有限公司 | Method for designing plug-in type multi-language code editor based on grammar protocol |
CN113467972A (en) * | 2021-06-30 | 2021-10-01 | 广州华多网络科技有限公司 | Communication interface construction method, communication interface construction device, computer equipment and storage medium |
CN113625998A (en) * | 2021-08-10 | 2021-11-09 | 北京京东振世信息技术有限公司 | Request processing method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030115365A1 (en) * | 2001-12-19 | 2003-06-19 | Teddy Lindsey | Transcoding information in a first markup language into a second markup language |
US20070240114A1 (en) * | 2006-03-30 | 2007-10-11 | Ugs Corp. | Testing Transformed Interfaces |
US9792170B2 (en) * | 2013-08-30 | 2017-10-17 | Cisco Technology, Inc. | Correcting operational state and incorporating additional debugging support into an online system without disruption |
US10783477B2 (en) * | 2015-02-03 | 2020-09-22 | International Business Machines Corporation | Template containers for business process management |
US10235218B2 (en) * | 2016-05-03 | 2019-03-19 | International Business Machines Corporation | Automatic correction of cryptographic application program interfaces |
-
2021
- 2021-11-24 CN CN202111405725.5A patent/CN114090135B/en active Active
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104516730A (en) * | 2013-09-29 | 2015-04-15 | 国际商业机器公司 | Data processing method and device |
CN103618699A (en) * | 2013-11-12 | 2014-03-05 | 吴晓军 | Method and device for calling component |
US9823909B1 (en) * | 2014-05-02 | 2017-11-21 | Amazon Technologies, Inc. | Program code conversion for cross-platform compatibility |
CN104281455A (en) * | 2014-10-11 | 2015-01-14 | 北京金山安全软件有限公司 | Interface calling method and device and terminal |
CN107957911A (en) * | 2016-10-18 | 2018-04-24 | 腾讯科技(深圳)有限公司 | Method and apparatus, the method and apparatus of module data processing of component call |
US10282241B1 (en) * | 2017-07-19 | 2019-05-07 | Vinyl Development LLC | Data driven API conversion |
CN107908426A (en) * | 2017-12-21 | 2018-04-13 | 江苏国泰新点软件有限公司 | Design method, device, mobile terminal and the storage medium of cross-platform program |
CN110083457A (en) * | 2018-01-26 | 2019-08-02 | 北京京东尚科信息技术有限公司 | A kind of data capture method, device and data analysing method, device |
CN110968989A (en) * | 2018-09-27 | 2020-04-07 | 北京国双科技有限公司 | Method and device for displaying error correction information on front-end page |
CN112015384A (en) * | 2019-05-29 | 2020-12-01 | 北京京东尚科信息技术有限公司 | An interface mapping method and device |
CN111026797A (en) * | 2019-12-02 | 2020-04-17 | 卫盈联信息技术(深圳)有限公司 | Service data processing method, server and storage medium |
CN111722947A (en) * | 2020-06-28 | 2020-09-29 | 深圳壹账通智能科技有限公司 | Service calling method and system |
CN112052117A (en) * | 2020-06-28 | 2020-12-08 | 南京理工大学 | Satellite-borne system software protection method based on redundant API (application program interface) |
CN112732807A (en) * | 2020-12-30 | 2021-04-30 | 福建卓融信息技术有限公司 | Interface calling method and device |
CN113407167A (en) * | 2021-05-14 | 2021-09-17 | 江苏航天七零六信息科技有限公司 | Method for designing plug-in type multi-language code editor based on grammar protocol |
CN113407255A (en) * | 2021-06-16 | 2021-09-17 | 上海微盟企业发展有限公司 | Component calling method and device and computer readable storage medium |
CN113467972A (en) * | 2021-06-30 | 2021-10-01 | 广州华多网络科技有限公司 | Communication interface construction method, communication interface construction device, computer equipment and storage medium |
CN113625998A (en) * | 2021-08-10 | 2021-11-09 | 北京京东振世信息技术有限公司 | Request processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN114090135A (en) | 2022-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112015430A (en) | JavaScript code translation method and device, computer equipment and storage medium | |
CN112925749A (en) | Data processing method and device, electronic equipment and storage medium | |
CN111881183B (en) | Enterprise name matching method and device, storage medium and electronic equipment | |
CN112214505B (en) | Data synchronization method, device, computer readable storage medium and electronic equipment | |
CN111126006A (en) | Method and device for exporting Word document with MathType formula, electronic equipment and storage medium | |
CN112307369A (en) | Short link processing method, device, terminal and storage medium | |
CN114090135B (en) | Method and device with error correction function and supporting cross-platform calling component | |
CN109062906B (en) | Translation method and device for program language resources | |
CN110909000A (en) | Data processing method, system, device and computer readable storage medium | |
CN110704025A (en) | Method and device for generating coding specification tool, storage medium and electronic equipment | |
CN116915875A (en) | General method for analyzing modbus equipment by Internet of things and modbus system | |
CN112417515A (en) | Configuration software protocol processing method and system | |
CN103379145B (en) | The method, apparatus and system of information processing | |
CN113094086B (en) | Component integration method, device, computer readable storage medium and electronic equipment | |
CN118606123A (en) | Test configuration file generation method, device, system, equipment and storage medium | |
CN111783482A (en) | Text translation method and device, computer equipment and storage medium | |
CN111026466A (en) | File processing method and device, computer readable storage medium and electronic equipment | |
CN111259628B (en) | Webpage information extraction method and device, electronic equipment and storage medium | |
CN109408577A (en) | ORACLE database JSON analytic method, system, device and can storage medium | |
CN114090136A (en) | Method and device with error correction function and supporting cross-platform calling component | |
CN110765003B (en) | Code detection method, device and equipment and storage medium | |
CN110659062B (en) | Front-end scaffold configuration method and device, readable storage medium and electronic equipment | |
CN112287643B (en) | Message monitoring method, device, equipment and computer readable storage medium | |
CN111562909B (en) | Class-based application implementation method and device, electronic equipment and storage medium | |
CN111985235B (en) | Text processing method, text processing device, computer readable storage medium and electronic equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |