XML text detection method, device, equipment, storage medium and program product
1. An XML text detection method is characterized by comprising the following steps:
traversing all transaction configuration XML files;
extracting an attribute value of an opstep node id;
and sending out a prompt for the id value appearing multiple times.
2. The XML text detection method of claim 1, further comprising, after the step of extracting attribute values of the opstep node-id:
the id value of multiple occurrences is recorded.
3. The XML text detection method of claim 1, further comprising, after the step of extracting attribute values of the opstep node-id:
the profile name of the multiple occurrence id value is recorded.
4. The XML text detection method of claim 1, further comprising, after the step of traversing all transaction configuration XML files:
and stopping compiling and making edition after the scanning is finished.
5. The XML text detection method according to claim 1, wherein the step of issuing a prompt for a multiple occurrence of an id value includes:
and sending information to remind relevant developers to carry out inspection processing.
6. The XML text detection method according to claim 1, wherein the XML text detection employs multi-threaded parallel processing.
7. An apparatus for detecting an XML text, comprising:
the text detection module is used for detecting the XML text; and the number of the first and second groups,
and the prompt module is used for sending out prompts to the id values appearing for many times.
8. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
9. A computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 6.
10. A computer program product, comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 6.
Background
XML stands for extensible markup language, a subset of standard generalized markup language, a markup language for marking electronic documents to be structured. In electronic computers, a label refers to a symbol of information that can be understood by a computer, and by this label, various information such as articles and the like can be handled between computers. It can be used to mark data, define data types, and is a source language that allows a user to define his or her own markup language. It is well suited for world wide web transport, providing a unified approach to describing and exchanging structured data that is independent of the application or vendor. Is a cross-platform, content-dependent technology in the Internet environment and is also an effective tool today for processing distributed structural information. As early as 1998, the XML1.0 specification was published by W3C, which was used to simplify the transmission of Internet documents. XML, extensible markup language (extensiblemarklanguage), its predecessors are SGML and HTML. SGML, a standard generalized markup language standard (standard generalized markup language), is a standard that internationally defines the structure and content description of electronic documents, is a very complex document structure, is mainly used in defense areas of large amounts of highly structured data and other various industrial fields, and is convenient for classification and indexing. The SGML definition is powerful compared to XML, however it is not suitable for Web data description and is very expensive.
XML is different from Access, Oracle, SQLServer and other databases, which provide more powerful data storage and analysis capabilities, such as: data indexing, sorting, lookup, correlation consistency, etc., XML is simply the presentation data. In fact, XML differs most from other forms of data representation: he is extremely simple. This is an advantage that looks somewhat trivial, but it is this that makes XML unusual. The simplicity of XML makes it easy to read and write data in any application, which makes XML the only common language for data exchange very quickly, although different applications will support other data exchange formats as well, but soon they will support XML, which means that a program can more easily integrate with information generated under Windows, MacOS, Linux, and other platforms, and then can easily load XML data into the program and parse it and output the result in XML format.
To make SGML user-friendly, XML redefines some of the internal values and parameters of SGML, eliminating a large number of rarely used functions that complicate SGML in designing a web site. XML reserves the structural function of SGML, so that a website designer can define own document types, and XML also provides a novel document type, so that a developer does not need to define the document types.
XML is made by W3C, and the standardization work for XML is handled by the XML working group of W3C, which consists of experts from various places and industries. Because XML is a common format, (it is not specific to any one company), there is no concern that XML technology will become a profitable tool for a small number of companies, and XML is not a language that is tied to a particular browser.
At present, git versions are stored in a plurality of characteristic branches, developers submit codes in different characteristic branches and finally combine the codes into a release branch, and the condition that ids in xml submitted by different personnel are the same exists, so that the skip logic of production operation transaction is abnormal. Different property branch code writers use the same id of opcode at the same time: ebdp _ setvaluepopstep 1, one for the aaa variable to assign 0 and one for the bbb variable to assign 10. After merging into the issue branch, since there is the same id, the program will be loaded randomly during execution, resulting in a logical error, as opposed to the expected socket.
Disclosure of Invention
The invention mainly aims to provide an XML text detection method, an XML text detection device, XML text detection equipment, an XML text detection storage medium and an XML text detection program product, and aims to solve the technical problem that in the prior art, random loading and execution can be performed during program execution, so that logic errors are caused, and the technical problem is opposite to expected errors.
In order to achieve the above object, the present invention provides an XML document detection method, which can be applied in the financial field, and the XML document detection method includes the following steps:
traversing all transaction configuration XML files;
extracting an attribute value of an opstep node id;
and sending out a prompt for the id value appearing multiple times.
Optionally, after the step of extracting the attribute value of the opstep node id, the method further includes:
the id value of multiple occurrences is recorded.
Optionally, after the step of extracting the attribute value of the opstep node id, the method further includes:
the profile name of the multiple occurrence id value is recorded.
Optionally, after the step of traversing all transaction configuration XML files, the method further includes:
and stopping compiling and making edition after the scanning is finished.
Optionally, the step of issuing a prompt for multiple occurrences of the id value includes:
and sending information to remind relevant developers to carry out inspection processing.
Optionally, the XML text detection employs multi-thread parallel processing.
In addition, to achieve the above object, the present invention further provides a flowchart generating apparatus, including:
the text detection module is used for detecting the XML text; and the number of the first and second groups,
and the prompt module is used for sending out prompts to the id values appearing for many times.
In addition, to achieve the above object, the present invention also provides an electronic device including:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform any of the methods described above.
Furthermore, to achieve the above object, the present invention also proposes a computer program product comprising a computer program which, when being executed by a processor, implements the steps of the XML text detection method as described above.
In the technical scheme provided by the invention, the XML text detection method can be used in the field of financial systems, and comprises the following steps: traversing all transaction configuration XML files; extracting an attribute value of an opstep node id; and sending out a prompt for the id value appearing multiple times. By designing a detection mechanism based on an xml text, codes merged into main branches by multiple branches are detected when compiling is carried out. The condition that a plurality of opsteps have the same id value is fundamentally avoided, the condition that the combined code has undefined opsteps is also avoided, developers do not need to detect and release the branch code and then check the branch code, manpower is released, the working efficiency is improved, and the correctness of the transaction code is also fundamentally improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a schematic diagram of a system architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of the electronic device in FIG. 1;
fig. 3 is a flowchart illustrating an embodiment of an XML text detection method according to the present invention.
The reference numbers illustrate:
reference numerals
Name (R)
Reference numerals
Name (R)
100
System architecture
1806
Input part
101
XML text detection device
1807
Output section
102
Network
1808
Storage section
103
Server
1809
Communication part
1800
Electronic device
1810
Driver
1801
Processor with a memory having a plurality of memory cells
1811
Removable media
1802
Read-only memory
1803
Random access memory
1804
Bus line
1805
I/O interface
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings. The technical solutions in the present invention are clearly and completely described, and it is obvious that the described embodiments are some, not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
It should be noted that, if directional indication is involved in the embodiment of the present invention, the directional indication is only used for explaining the relative positional relationship, the motion situation, and the like between the components in a certain posture, and if the certain posture is changed, the directional indication is changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, the meaning of "and/or" appearing throughout includes three juxtapositions, exemplified by "A and/or B" including either A or B or both A and B. Also, the technical solutions in the embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not be within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "upper", "lower", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplification of description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, in the description of the present invention, "a plurality", and "a plurality" mean two or more unless otherwise specified.
Trunk branch (master branch): the production peer-to-peer branch requires the code to be consistent with the production status, and the code is not allowed to be submitted to the trunk branch randomly, and the name is generally a sender. Feature branch (feature branch): and according to the requirement item/production patch creation, creating a characteristic branch from the latest trunk branch. Issue branch (release branch): and after the characteristic branches are developed and tested, pulling the release branches from the main branches, merging the characteristic branches to the release branches, and merging the release branches to the main branches after the production is carried out. At present, git versions are stored in a plurality of characteristic branches, developers submit codes in different characteristic branches and finally combine the codes into a release branch, and the condition that ids in xml submitted by different personnel are the same exists, so that the skip logic of production operation transaction is abnormal. With the currently used IBM BTT framework, the execution of transactions is specified by xml files.
BTT (BTT): branch Transformation Toolkit, is based on the java framework. We can develop our specific application with a set of java classes or tools. The method is specially designed for realizing multi-channel access, and can simply realize the multi-channel access function. It provides a generic technology-based infrastructure for implementing a wide variety of applications. Thus, we can focus on the functionality we need to develop. On the basis of the internet standard, the application required by the user is developed. An operation always runs on a specific node chain. When the operation starts, it can access all data and services of the current node chain.
Composition of Operation: data definition, format definition, service definition, and opstep definition. The system generally comprises a plurality of different states, each step of state corresponds to a corresponding Operation, and the Operation comprises a plurality of steps of OpStep to complete the function of the state.
A typical opstep is as follows:
different property branch code writers use the same id of opcode at the same time: ebdp _ setvaluepopstep 1, one for the aaa variable to assign 0 and one for the bbb variable to assign 10. After merging into the issue branch, since there is the same id, the program will be loaded randomly during execution, resulting in a logical error, as opposed to the expected socket.
In view of this, the invention provides an XML text detection method, apparatus, device, storage medium, and program product. And aiming at codes merged into the main branches by the multiple branches, detecting when compiling is carried out. The method and the device have the advantages that the tool detection step of the method and the device are added in the original edition making process, the condition that the id values of a plurality of posts are the same is fundamentally avoided, the condition that undefined posts exist in the combined codes is also avoided, developers do not need to detect and release branch codes and then check the branch codes, manpower is released, working efficiency is improved, and the correctness of transaction codes is also fundamentally improved.
As shown in fig. 1, the system architecture 100 according to the embodiment may include an XML text detection device 101, a network 102 and a server 103. Network 102 is used to provide a communication link between XML text detection device 101 and server 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
It should be noted that the XML text detection method provided by the embodiment of the present disclosure may be executed by the server 103. Accordingly, the XML text detection apparatus 101 provided by the embodiment of the present disclosure may be disposed in the server 103. Alternatively, the XML text detection method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 103 and is capable of communicating with the XML text detection apparatus 101 and/or the server 103. Accordingly, the XML document detection apparatus 101 provided in the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 103 and capable of communicating with the server 103. Alternatively, the XML text detection method provided by the embodiment of the present disclosure may also be partially executed by the server 103 and executed by the XML text detection apparatus 101. Accordingly, the XML document detection apparatus 101 provided in the embodiment of the present disclosure may also be partially disposed in the server 103.
It should be understood that the number of XML text detection devices 101, networks 102, and servers 103 in fig. 1 is merely illustrative. There may be any number of XML text detection devices 101, networks 102, and servers 103, as desired for implementation.
The XML text detection apparatus 101 according to the disclosed embodiment includes: the text detection module and the prompt module. The text detection module is used for detecting the XML text, and the prompt module is used for sending out prompts to the id values appearing many times.
It should be noted that, a part of the XML document detection apparatus 101 in the embodiment of the present disclosure corresponds to a part of the XML document detection method in the embodiment of the present disclosure, and specific implementation details and technical effects thereof are also the same, and are not described herein again. The XML text detection apparatus 101 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present disclosure.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an electronic device 1800 in a hardware operating environment according to an embodiment of the present invention. As shown in fig. 2, the electronic device 1800 may include: a processor 1801, which may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)1802 or a program loaded from a storage portion 1808 into a Random Access Memory (RAM) 1803. The processor 1801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 1801 may also include onboard memory for caching purposes. The processor 1801 may include a single processing unit or multiple processing units for performing the different actions of the method flows in accordance with embodiments of the present disclosure.
In the RAM1803, the electronic device 1800 includes various programs and data necessary for operation. A processor 1801 and a memory unit 3, the memory unit 3 including a ROM 1802 and a RAM1803 being connected to each other by a bus 1804. The processor 1801 performs various operations of the method flows according to embodiments of the present disclosure by executing programs in the ROM 1802 and/or the RAM 1803. Note that the programs may also be stored in one or more memories other than ROM 1802 and RAM 1803. The processor 1801 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Control apparatus 1800 of the text-to-flow method may also include input/output (I/O) interface 1805, input/output (I/O) interface 1805 also connected to bus 1804, according to an embodiment of the present disclosure. The control device 1800 of the text-to-flow method may further comprise one or more of the following components connected to the I/O interface 1805: an input portion 1806 including a keyboard, a mouse, and the like; an output portion 1807 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1808 including a hard disk and the like; and a communication section 1809 including a network interface card such as a LAN card, a modem, or the like. The communication section 1809 performs communication processing via a network such as the internet. A driver 1810 is also connected to the I/O interface 1805 as needed. A removable medium 1811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1810 as necessary, so that a computer program read out therefrom is mounted in the storage portion 1808 as necessary. The communication section 1809 is used for implementing connection communication among these components, and includes various connection types such as wired, wireless communication links, or fiber optic cables. The input/output (I/O) interface 1805 may also include a standard wired interface, which may be a USB interface, a wireless interface.
The electronic device 1800 shown in FIG. 2 further includes: the network interface is mainly used for connecting the background server 103 and performing data communication with the background server 103; the user interface is mainly used for connecting user equipment; the electronic device 1800 calls the control program of the XML text detection method stored in the memory through the processor 1801, and executes the control steps of the XML text detection method provided by the embodiment of the present invention.
Those skilled in the art will appreciate that the configuration shown in fig. 2 does not constitute a limitation of the electronic device 1800 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Based on the hardware structure, the embodiment of the XML text detection method is provided.
Referring to fig. 3, fig. 3 is a schematic flowchart of an embodiment of an XML text detection method according to the present invention, in which the XML text detection method includes the following steps:
s10: all transaction configuration XML files are traversed.
S20 extracts the attribute value of the opstep node id: .
S30: and sending out a prompt for the id value appearing multiple times.
Further, after step S20, the method further includes:
step S21: the id value of multiple occurrences is recorded.
Further, after step S20, the method further includes:
step S21: the profile name of the multiple occurrence id value is recorded.
Further, after step S10, the method further includes:
step S11: and stopping compiling and making edition after the scanning is finished.
Further, step S30 includes:
step S31: and sending information to remind relevant developers to carry out inspection processing.
Furthermore, the XML text detection adopts multi-thread parallel processing, so that the detection efficiency is improved.
In summary, the technical solution provided by the present invention can be applied to the field of financial systems, and a detection mechanism based on xml text is designed to detect a code merged from multiple branches to a main branch when compiling and making edition. The tool detection step of the invention is added and called in the original edition making process, the tool traverses all transaction configuration xml files, and multithreading parallel processing is adopted, so that the detection efficiency is improved. The tool extracts the attribute value of the opStep node id according to the general definition format of opStep < opStep id ═ xxx' through regular expressions. And recording the id value and the name of the configuration file for the id value appearing many times, stopping compiling and making a edition after scanning is finished, and sending a mail to remind related developers to carry out inspection processing. Xml.xml is required by the Btt framework, and the id of the opsstep used in the transaction profile must be defined in btt.xml. The invention fundamentally avoids the condition that a plurality of opsteps have the same id value, also avoids the condition that the combined code has undefined opsteps, does not need developers to detect and release the branch code and then check, releases manpower, improves the working efficiency and also fundamentally improves the correctness of the transaction code.
The present disclosure also provides a computer-readable storage medium, which may be embodied in the apparatus/system described in the above embodiments; or may exist separately and not be incorporated into the device/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM and/or RAM and/or one or more memories other than ROM and RAM described above.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The computer program, when executed by a processor, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the item recommendation method provided by the embodiment of the disclosure. The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 1801. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal on a network medium, distributed, downloaded and installed via the communication section 1809, and/or installed from a removable media 1811. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such embodiments, the computer program may be downloaded and installed from a network via the communication portion 1809, and/or installed from the removable media 1811. The computer program, when executed by the processor 1801, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention. The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the protection scope of the present invention.