CN110865834A - Application program interface updating method and device, readable storage medium and terminal equipment - Google Patents
Application program interface updating method and device, readable storage medium and terminal equipment Download PDFInfo
- Publication number
- CN110865834A CN110865834A CN201910966523.4A CN201910966523A CN110865834A CN 110865834 A CN110865834 A CN 110865834A CN 201910966523 A CN201910966523 A CN 201910966523A CN 110865834 A CN110865834 A CN 110865834A
- Authority
- CN
- China
- Prior art keywords
- interface
- application program
- client
- control
- information
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000012423 maintenance Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 5
- 230000006399 behavior Effects 0.000 description 4
- 239000000284 extract Substances 0.000 description 4
- 238000012545 processing Methods 0.000 description 2
- 101100217298 Mus musculus Aspm gene Proteins 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- 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/451—Execution arrangements for user interfaces
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention belongs to the technical field of computers, and particularly relates to an application program interface updating method and device, a computer readable storage medium and terminal equipment. The method comprises the following steps: receiving an application program interface updating instruction, and extracting application program information in the application program interface updating instruction; acquiring a client interface corresponding to the application program information; calling an H5 control set corresponding to the application program information from a preset control library, and generating an H5 interface corresponding to the client interface by using each H5 control in the H5 control set; receiving edit information of a maintainer on the H5 interface, and generating an edited H5 interface according to the edit information; generating interface protocol content corresponding to the edited H5 interface, and sending the interface protocol content to a designated terminal device, so that the designated terminal device updates the client interface according to the interface protocol content.
Description
Technical Field
The invention belongs to the technical field of computers, and particularly relates to an application program interface updating method and device, a computer readable storage medium and terminal equipment.
Background
In recent years, with the popularization of smart terminals, users have increasingly demanded Applications (APPs). After the application program is released, the interface of the application program needs to be continuously updated according to various new requirements of the user. However, each time an application program interface is updated, the intelligent terminal needs to download an updated application program installation package in an application store, and then install the application program installation package.
Disclosure of Invention
In view of this, embodiments of the present invention provide an application program interface updating method, an application program interface updating device, a computer-readable storage medium, and a terminal device, so as to solve the problem that an existing application program interface updating method is slow in updating speed.
A first aspect of an embodiment of the present invention provides an application program interface updating method, which may include:
receiving an application program interface updating instruction, and extracting application program information in the application program interface updating instruction;
acquiring a client interface corresponding to the application program information, wherein the client interface is formed by combining all client controls in a preset client control set;
calling an H5 control set corresponding to the application information from a preset control library, and generating an H5 interface corresponding to the client interface by using each H5 control in the H5 control set, wherein each H5 control in the H5 control set corresponds to each client control in the client control set one by one;
receiving edit information of a maintainer on the H5 interface, and generating an edited H5 interface according to the edit information;
generating interface protocol content corresponding to the edited H5 interface, and sending the interface protocol content to a designated terminal device, so that the designated terminal device updates the client interface according to the interface protocol content.
A second aspect of an embodiment of the present invention provides an application interface updating apparatus, which may include:
an update instruction receiving module 401, configured to receive an application program interface update instruction, and extract application program information in the application program interface update instruction;
a client interface obtaining module 402, configured to obtain a client interface corresponding to the application information, where the client interface is formed by combining client controls in a preset client control set;
an H5 interface generating module 403, configured to retrieve an H5 control set corresponding to the application information from a preset control library, and generate an H5 interface corresponding to the client interface by using each H5 control in the H5 control set, where each H5 control in the H5 control set corresponds to each client control in the client control set one to one;
an edit information receiving module 404, configured to receive edit information of the H5 interface from a maintenance worker, and generate an edited H5 interface according to the edit information;
an interface protocol issuing module 405, configured to generate interface protocol content corresponding to the edited H5 interface, and issue the interface protocol content to a designated terminal device, so that the designated terminal device updates the client interface according to the interface protocol content.
A third aspect of embodiments of the present invention provides a computer-readable storage medium storing computer-readable instructions, which when executed by a processor implement the steps of:
receiving an application program interface updating instruction, and extracting application program information in the application program interface updating instruction;
acquiring a client interface corresponding to the application program information, wherein the client interface is formed by combining all client controls in a preset client control set;
calling an H5 control set corresponding to the application information from a preset control library, and generating an H5 interface corresponding to the client interface by using each H5 control in the H5 control set, wherein each H5 control in the H5 control set corresponds to each client control in the client control set one by one;
receiving edit information of a maintainer on the H5 interface, and generating an edited H5 interface according to the edit information;
generating interface protocol content corresponding to the edited H5 interface, and sending the interface protocol content to a designated terminal device, so that the designated terminal device updates the client interface according to the interface protocol content.
A fourth aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, where the processor executes the computer-readable instructions to implement the following steps:
receiving an application program interface updating instruction, and extracting application program information in the application program interface updating instruction;
acquiring a client interface corresponding to the application program information, wherein the client interface is formed by combining all client controls in a preset client control set;
calling an H5 control set corresponding to the application information from a preset control library, and generating an H5 interface corresponding to the client interface by using each H5 control in the H5 control set, wherein each H5 control in the H5 control set corresponds to each client control in the client control set one by one;
receiving edit information of a maintainer on the H5 interface, and generating an edited H5 interface according to the edit information;
generating interface protocol content corresponding to the edited H5 interface, and sending the interface protocol content to a designated terminal device, so that the designated terminal device updates the client interface according to the interface protocol content.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: after receiving an application program interface updating instruction, the embodiment of the invention firstly extracts application program information in the application program interface updating instruction, acquires a client interface corresponding to the application program information, then calls an H5 control set corresponding to the application program information from a preset control library, and generates an H5 interface corresponding to the client interface by using each H5 control in the H5 control set. After receiving the editing information of the H5 interface by a maintainer, generating an edited H5 interface according to the editing information, then generating interface protocol content corresponding to the edited H5 interface, and sending the interface protocol content to a designated terminal device, so that the designated terminal device updates the client interface according to the interface protocol content. By the embodiment of the invention, the updating of the application program interface from the control layer is realized, because the client interface is formed by combining all client controls in the preset client control set, all H5 controls in the H5 control set correspond to all client controls in the client control set one by one, and maintainers of the application program only need to edit on the corresponding H5 interface and can issue the edited H5 controls to the appointed terminal equipment through an interface protocol, so that the updating of the client interfaces of the terminal equipment is realized, and the whole updating process is more convenient and faster.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flowchart of an embodiment of a method for updating an application program interface according to an embodiment of the present invention;
FIG. 2 is a schematic flow diagram of building a H5 control collection;
FIG. 3 is a schematic flow chart of issuing interface protocol content to a designated terminal device;
FIG. 4 is a block diagram of an embodiment of an application interface updating apparatus according to an embodiment of the present invention;
fig. 5 is a schematic block diagram of a terminal device in an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Referring to fig. 1, an embodiment of an application program interface updating method according to an embodiment of the present invention may include:
step S101, receiving an application program interface updating instruction, and extracting application program information in the application program interface updating instruction.
The main body of the embodiment of the present invention may be a terminal device used by a serviceman who supplies an application program, such as a desktop computer, a notebook computer, or a palmtop computer, and for the sake of simplicity, it will be referred to as an execution terminal hereinafter.
When needing to update the interface of the application program, a maintenance person can issue an application program interface updating instruction to the execution terminal through a human-computer interaction interface of the execution terminal, the application program information can include an application program identifier, the application program identifier is used for uniquely identifying one application program, and the application program identifiers of different application programs are different. Preferably, if the application program has a plurality of different versions, the application program information may further include an application program version. And after receiving the application program interface updating instruction, the execution terminal can extract the application program information.
And S102, acquiring a client interface corresponding to the application program information.
The client interface is formed by combining all client controls in a preset client control set. The client control may be a container control or a non-container control, the container control refers to a control allowing other controls to be added therein, that is, a View group (View), the non-container control is an individual View (View), and all the client controls form the client control set.
Step S103, calling an H5 control set corresponding to the application program information from a preset control library, and generating an H5 interface corresponding to the client interface by using each H5 control in the H5 control set.
The H5 mentioned in the embodiment of the present invention is HTML5, that is, a web page format specified in the 5 th version of Hyper Text Markup Language (HTML). In the execution terminal, an interface in an H5 format, namely the H5 interface, is displayed for maintenance personnel, and the H5 interface is formed by combining H5 controls in the H5 control set.
Preferably, before step S103, the H5 control set may be constructed through a process as shown in fig. 2.
Step S201, a source file of the first client control is obtained.
The first client control is any one client control in the client control set. Each client control has a corresponding source file, which is typically java as a suffix. In a specific implementation of this embodiment, the corresponding relationship between each client control and each source file may be stored in a preset relationship table, and the source file of any one client control may be obtained by querying the relationship table.
Step S202, reading configuration information of the first client control on each preset dimension from the source file.
Each client control has its own properties and behaviors, for example, a news Item (Item) containing an Icon (Icon), a Title (Title) and some text description, and the Item corresponds to a specified URL address, which are the property contents of the client control. Clicking on this entry opens the specific news content in the web page pointed to by the URL address by way of H5, which is the behavior of the client control.
The source file contains detailed annotation content for the first client control to identify an @ appcard mark, configuration information of the first client control on each preset dimension can be read from the source file, the dimensions include but are not limited to type, attribute, behavior, default initialization data and the like, the configuration information on the dimensions is marked in advance through a specific identifier, for example, the type is marked with @ cardtype, the attribute is marked with @ attr, the behavior is marked with @ action, the default initialization data is marked with @ default, and the execution terminal can analyze the content to collect the configuration information of the first client control on each dimension.
And S203, generating an H5 control corresponding to the first client control according to the configuration information, and adding the generated H5 control into the H5 control set.
After reading the configuration information, the execution terminal may configure the H5 control according to the configuration information, thereby generating an H5 control corresponding to the first client control.
It should be noted that the process shown in fig. 2 is only a generation process of one H5 control, and similarly, by traversing each client control in the client control set and performing the above process on it, each H5 control corresponding to each client control in the client control set one to one can be generated, and these H5 controls constitute the H5 control set. After the H5 control set is constructed, it can be stored in the control library for later use.
Because each H5 control in the H5 control set corresponds to each client control in the client control set one to one, when an application program interface needs to be updated, the H5 control set corresponding to the application program information can be called from the control library, and each H5 control in the H5 control set is used to generate an H5 interface corresponding to the client interface.
And S104, receiving edit information of a maintainer on the H5 interface, and generating an edited H5 interface according to the edit information.
Maintenance personnel can edit the H5 interface through the execution terminal, so as to generate the editing information, wherein the editing information includes but is not limited to adding, deleting, moving and the like of each H5 control in the H5 interface. After receiving the editing information, the execution terminal can correspondingly adjust the H5 interface according to the editing information, thereby generating the edited H5 interface.
Step S105, generating interface protocol content corresponding to the edited H5 interface, and sending the interface protocol content to a designated terminal device, so that the designated terminal device updates the client interface according to the interface protocol content.
The interface protocol mentioned in this embodiment includes, but is not limited to, any interface interpretation language in the prior art for achieving consistency between the H5 interface and the client interface. And after receiving the interface protocol content, the appointed terminal equipment can analyze the interface protocol content and update the client interface according to the interface protocol content. By the method, a maintainer can simply complete the interface 'assembly' of an application program like a jigsaw puzzle, no technical threshold is provided for the maintainer basically, and the interface content can be conveniently updated according to the product requirement and sent to a client for updating and displaying.
Preferably, before the interface protocol content is sent to the designated terminal device, the execution terminal may first obtain each connection device from a preset target server, where the target server is a server corresponding to the application program identifier, and the connection device is a terminal device that establishes a communication connection with the target server. Then, the execution terminal may send a version query request to each of the connection devices, and receive feedback information of each of the connection devices, where the feedback information includes an application version installed in the connection device, and the execution terminal may select a designated terminal device from each of the connection devices according to the feedback information, where an application version in the feedback information of the designated terminal device is consistent with an application version in the application information.
This is done to take into account that the version of the application is constantly being updated, and the application used by different users may be of different versions. Accordingly, in this embodiment, H5 widget sets of each application version may be stored in the widget library, so that a maintainer may switch to use and update each different version, and these updates are only issued to a terminal device of a user using a corresponding version, so that after a content output by an execution terminal is issued to the terminal device of the user, the terminal device of the user may completely analyze an interface protocol content and update a client interface.
Further, considering that the number of the specified terminal devices may be very large and a single server consumes more time to process, the target server may preferably include more than two sub-servers, that is, the target server may be a server cluster, and in this case, the process of sending the interface protocol content to the specified terminal devices may specifically include the steps shown in fig. 3:
step S301, obtaining the device identification of the S-th appointed terminal device, and calculating the hash value of the S-th appointed terminal device according to the device identification.
Wherein s is more than or equal to 1 and less than or equal to SN, and SN is the number of the specified terminal equipment.
The device identifier may be an International Mobile Equipment Identity (IMEI), which is an electronic serial number composed of 15 digits and is one-to-one corresponding to each terminal device, and the code is unique worldwide. Each terminal device is assigned a globally unique number after assembly, which number is recorded from manufacture to delivery by the manufacturer.
In this embodiment, the hash value of the s-th designated terminal device may be calculated according to the following equation:
EqHashs=FsHashFunc(EqIDs)
wherein, EqIDsFsHashFunc is a preset first hash function, EqHash, for the device identification of the s-th appointed terminal devicesThe hash value of the s-th designated terminal device. The first hash function and other hash functions in this embodiment may include, but are not limited to, any one of the hash functions commonly used in the prior art, such as MD4, MD5, SHA1, and so on.
Step S302, determining a sub server corresponding to the S-th appointed terminal device in the target server according to the hash value of the S-th appointed terminal device.
First, a location point on a preset hash ring corresponding to the hash value of the s-th designated terminal device may be determined as a target location point.
The hash ring is a circular ring formed by connecting all function values of the first hash function clockwise or anticlockwise in sequence from small to large, namely each position point on the hash ring corresponds to one function value of the first hash function.
Then, each reference position point on the hash ring is acquired.
Wherein each reference location point corresponds to a sub-server in the target server. Respectively representing the equipment identification of each sub-server as: NodeID1、NodeID2、…、NodeIDm、…、NodeIDMWherein M is the serial number of each sub-server, M is more than or equal to 1 and less than or equal to M, M is the number of the sub-servers, NodeIDmFor the device identifier of the mth sub-server, the hash value of each sub-server can be calculated according to the following formula:
NodeHashm=SdHashFunc(NodeIDm)
wherein, SdhashFunc is a preset second hash function, and the value range of the second hash function is consistent with the value range of the first hash function, so as to ensure that the two can be mapped toNodeHash on the same Hash ringmFor the hash value of the mth sub-server, a location point on the hash ring corresponding to the hash value of the mth sub-server may be determined as a reference location point corresponding to the mth sub-server.
And finally, clockwise or anticlockwise searching the reference position point from the target position point, and determining the sub-server corresponding to the searched first reference position point as the sub-server corresponding to the s-th appointed terminal equipment.
Step S303, the interface protocol content is sent to the S-th appointed terminal device by using the sub server corresponding to the S-th appointed terminal device.
Traversing each designated terminal device through the process shown in fig. 3 can respectively determine the sub-servers corresponding to each designated terminal device, and complete the issuing of the interface protocol content.
In summary, according to the embodiment of the present invention, the application program interface is updated from the control layer, because the client interface is formed by combining the client controls in the preset client control set, and each H5 control in the H5 control set corresponds to each client control in the client control set one by one, the maintainer of the application program only needs to edit the corresponding H5 interface, and can issue the updated application program interface to the designated terminal device through the interface protocol, so as to update the client interfaces of the terminal devices, and thus the whole updating process is more convenient and faster.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 4 is a structural diagram of an embodiment of an application interface updating apparatus according to an embodiment of the present invention, which corresponds to the application interface updating method described in the foregoing embodiment.
In this embodiment, an application program interface updating apparatus may include:
an update instruction receiving module 401, configured to receive an application program interface update instruction, and extract application program information in the application program interface update instruction;
a client interface obtaining module 402, configured to obtain a client interface corresponding to the application information, where the client interface is formed by combining client controls in a preset client control set;
an H5 interface generating module 403, configured to retrieve an H5 control set corresponding to the application information from a preset control library, and generate an H5 interface corresponding to the client interface by using each H5 control in the H5 control set, where each H5 control in the H5 control set corresponds to each client control in the client control set one to one;
an edit information receiving module 404, configured to receive edit information of the H5 interface from a maintenance worker, and generate an edited H5 interface according to the edit information;
an interface protocol issuing module 405, configured to generate interface protocol content corresponding to the edited H5 interface, and issue the interface protocol content to a designated terminal device, so that the designated terminal device updates the client interface according to the interface protocol content.
Further, the application program interface updating apparatus may further include:
a source file obtaining module, configured to obtain a source file of a first client control, where the first client control is any one client control in the client control set;
the configuration information reading module is used for reading configuration information of the first client control on each preset dimension from the source file;
and the H5 control generating module is used for generating an H5 control corresponding to the first client control according to the configuration information, and adding the generated H5 control into the H5 control set.
Further, the application program interface updating apparatus may further include:
a connection device obtaining module, configured to obtain each connection device from a preset target server, where the target server is a server corresponding to the application identifier, and the connection device is a terminal device that establishes a communication connection with the target server;
the version query module is used for sending a version query request to each connecting device and receiving feedback information of each connecting device;
and the terminal equipment selection module is used for selecting appointed terminal equipment from the connecting equipment, and the application program version in the feedback information of the appointed terminal equipment is consistent with the application program version in the application program information.
Further, the interface protocol issuing module may include:
the device identifier acquisition unit is used for acquiring the device identifier of the s-th appointed terminal device and calculating the hash value of the s-th appointed terminal device according to the device identifier, wherein s is more than or equal to 1 and is less than or equal to SN, and the SN is the number of the appointed terminal devices;
a sub-server determining unit, configured to determine, in the target server, a sub-server corresponding to an s-th designated terminal device according to the hash value of the s-th designated terminal device;
and the interface protocol issuing unit is used for issuing the interface protocol content to the s-th appointed terminal equipment by using the sub-server corresponding to the s-th appointed terminal equipment.
Further, the sub server determining unit may include:
a target location point determining subunit, configured to determine, as a target location point, a location point on a preset hash ring that corresponds to the hash value of the s-th specified terminal device;
a reference position point obtaining subunit, configured to obtain each reference position point on the hash ring, where each reference position point corresponds to one of the child servers in the target server;
and the sub-server determining subunit searches the reference position point clockwise or anticlockwise from the target position point, and determines the sub-server corresponding to the searched first reference position point as the sub-server corresponding to the s-th appointed terminal device.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, modules and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Fig. 5 shows a schematic block diagram of a terminal device according to an embodiment of the present invention, and for convenience of description, only the relevant parts related to the embodiment of the present invention are shown.
In this embodiment, the terminal device 5 may be a computing device such as a desktop computer, a notebook, a palm computer, and the like. The terminal device 5 may include: a processor 50, a memory 51, and computer readable instructions 52 stored in the memory 51 and executable on the processor 50, such as computer readable instructions to perform the application program interface updating method described above. The processor 50, when executing the computer readable instructions 52, implements the steps in the various application interface update method embodiments described above, such as the steps S101-S105 shown in fig. 1. Alternatively, the processor 50, when executing the computer readable instructions 52, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 401 to 405 shown in fig. 4.
Illustratively, the computer readable instructions 52 may be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more modules/units may be a series of computer-readable instruction segments capable of performing specific functions, which are used for describing the execution process of the computer-readable instructions 52 in the terminal device 5.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing the computer readable instructions and other instructions and data required by the terminal device 5. The memory 51 may also be used to temporarily store data that has been output or is to be output.
Each functional unit in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of computer readable instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, which can store computer readable instructions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; 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.
Claims (10)
1. An application program interface updating method is characterized by comprising the following steps:
receiving an application program interface updating instruction, and extracting application program information in the application program interface updating instruction;
acquiring a client interface corresponding to the application program information, wherein the client interface is formed by combining all client controls in a preset client control set;
calling an H5 control set corresponding to the application information from a preset control library, and generating an H5 interface corresponding to the client interface by using each H5 control in the H5 control set, wherein each H5 control in the H5 control set corresponds to each client control in the client control set one by one;
receiving edit information of a maintainer on the H5 interface, and generating an edited H5 interface according to the edit information;
generating interface protocol content corresponding to the edited H5 interface, and sending the interface protocol content to a designated terminal device, so that the designated terminal device updates the client interface according to the interface protocol content.
2. The method for updating an application program interface according to claim 1, further comprising, before retrieving the H5 control set corresponding to the application program information from a preset control library:
acquiring a source file of a first client control, wherein the first client control is any one client control in the client control set;
reading configuration information of the first client control on preset dimensions from the source file;
and generating an H5 control corresponding to the first client control according to the configuration information, and adding the generated H5 control into the H5 control set.
3. The method for updating an application program interface according to claim 1, wherein the application program information includes an application program identifier and an application program version, and before sending the interface protocol content to the specified terminal device, the method further includes:
acquiring each connecting device from a preset target server, wherein the target server is a server corresponding to the application program identifier, and the connecting device is a terminal device establishing communication connection with the target server;
sending a version query request to each connecting device, and receiving feedback information of each connecting device;
and selecting appointed terminal equipment from the connecting equipment, wherein the application program version in the feedback information of the appointed terminal equipment is consistent with the application program version in the application program information.
4. The method according to claim 3, wherein the target server includes two or more sub-servers, and the sending the interface protocol content to the designated terminal device includes:
acquiring the equipment identification of the s-th appointed terminal equipment, and calculating the hash value of the s-th appointed terminal equipment according to the equipment identification, wherein s is more than or equal to 1 and is less than or equal to SN, and the SN is the number of the appointed terminal equipment;
determining a sub-server corresponding to the s-th appointed terminal device in the target server according to the hash value of the s-th appointed terminal device;
and using the sub server corresponding to the s-th appointed terminal equipment to transmit the interface protocol content to the s-th appointed terminal equipment.
5. The method for updating an application program interface according to claim 4, wherein the determining, in the target server, the sub-server corresponding to the s-th specified terminal device according to the hash value of the s-th specified terminal device comprises:
determining a position point on a preset hash ring corresponding to the hash value of the s-th appointed terminal device as a target position point;
acquiring each reference position point on the hash ring, wherein each reference position point corresponds to one sub-server in the target server;
and clockwise or anticlockwise searching the reference position point from the target position point, and determining the sub-server corresponding to the searched first reference position point as the sub-server corresponding to the s-th appointed terminal equipment.
6. An application interface updating apparatus, comprising:
the updating instruction receiving module is used for receiving an application program interface updating instruction and extracting application program information in the application program interface updating instruction;
the client interface acquisition module is used for acquiring a client interface corresponding to the application program information, and the client interface is formed by combining all client controls in a preset client control set;
an H5 interface generating module, configured to retrieve an H5 control set corresponding to the application information from a preset control library, and generate an H5 interface corresponding to the client interface using each H5 control in the H5 control set, where each H5 control in the H5 control set corresponds to each client control in the client control set one to one;
the editing information receiving module is used for receiving the editing information of the H5 interface by maintenance personnel and generating an edited H5 interface according to the editing information;
and the interface protocol issuing module is used for generating interface protocol content corresponding to the edited H5 interface and issuing the interface protocol content to the appointed terminal equipment so that the appointed terminal equipment updates the client interface according to the interface protocol content.
7. The API update apparatus of claim 6, further comprising:
a source file obtaining module, configured to obtain a source file of a first client control, where the first client control is any one client control in the client control set;
the configuration information reading module is used for reading configuration information of the first client control on each preset dimension from the source file;
and the H5 control generating module is used for generating an H5 control corresponding to the first client control according to the configuration information, and adding the generated H5 control into the H5 control set.
8. The api updating apparatus as recited in claim 7, further comprising:
a connection device obtaining module, configured to obtain each connection device from a preset target server, where the target server is a server corresponding to the application identifier, and the connection device is a terminal device that establishes a communication connection with the target server;
the version query module is used for sending a version query request to each connecting device and receiving feedback information of each connecting device;
and the terminal equipment selection module is used for selecting appointed terminal equipment from the connecting equipment, and the application program version in the feedback information of the appointed terminal equipment is consistent with the application program version in the application program information.
9. A computer readable storage medium storing computer readable instructions, which when executed by a processor implement the steps of the application interface updating method of any one of claims 1 to 5.
10. A terminal device comprising a memory, a processor and computer readable instructions stored in the memory and executable on the processor, wherein the processor when executing the computer readable instructions implements the steps of the application interface updating method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910966523.4A CN110865834B (en) | 2019-10-12 | 2019-10-12 | Application program interface updating method and device, readable storage medium and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910966523.4A CN110865834B (en) | 2019-10-12 | 2019-10-12 | Application program interface updating method and device, readable storage medium and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110865834A true CN110865834A (en) | 2020-03-06 |
CN110865834B CN110865834B (en) | 2023-04-21 |
Family
ID=69652154
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910966523.4A Active CN110865834B (en) | 2019-10-12 | 2019-10-12 | Application program interface updating method and device, readable storage medium and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110865834B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112114913A (en) * | 2020-07-27 | 2020-12-22 | 广东太平洋互联网信息服务有限公司 | Application program interface updating method and device, computer equipment and storage medium |
CN112286546A (en) * | 2020-09-22 | 2021-01-29 | 长沙市到家悠享网络科技有限公司 | Application program updating method, device and equipment |
CN112486493A (en) * | 2020-12-21 | 2021-03-12 | 京东方科技集团股份有限公司 | Application program management method and device, electronic equipment and readable storage medium |
CN114356477A (en) * | 2021-12-22 | 2022-04-15 | 青岛海信移动通信技术股份有限公司 | Terminal device and application program calling method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107992305A (en) * | 2017-12-29 | 2018-05-04 | 广州酷狗计算机科技有限公司 | The layout method and device of function of application button |
-
2019
- 2019-10-12 CN CN201910966523.4A patent/CN110865834B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107992305A (en) * | 2017-12-29 | 2018-05-04 | 广州酷狗计算机科技有限公司 | The layout method and device of function of application button |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112114913A (en) * | 2020-07-27 | 2020-12-22 | 广东太平洋互联网信息服务有限公司 | Application program interface updating method and device, computer equipment and storage medium |
CN112114913B (en) * | 2020-07-27 | 2022-08-09 | 广东太平洋互联网信息服务有限公司 | Application program interface updating method and device, computer equipment and storage medium |
CN112286546A (en) * | 2020-09-22 | 2021-01-29 | 长沙市到家悠享网络科技有限公司 | Application program updating method, device and equipment |
CN112486493A (en) * | 2020-12-21 | 2021-03-12 | 京东方科技集团股份有限公司 | Application program management method and device, electronic equipment and readable storage medium |
CN114356477A (en) * | 2021-12-22 | 2022-04-15 | 青岛海信移动通信技术股份有限公司 | Terminal device and application program calling method |
CN114356477B (en) * | 2021-12-22 | 2024-04-09 | 青岛海信移动通信技术有限公司 | Terminal equipment and application program calling method |
Also Published As
Publication number | Publication date |
---|---|
CN110865834B (en) | 2023-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110597595B (en) | Method for providing multi-language information, method for configuring multi-language information, device, equipment and medium | |
CN110865834A (en) | Application program interface updating method and device, readable storage medium and terminal equipment | |
US20190238478A1 (en) | Using a template to update a stack of resources | |
EP3347814A1 (en) | Identifying software components in a software codebase | |
JP2018528559A (en) | Method and system for realizing data tracking by software development kit | |
CN112905178A (en) | Method, device, equipment and medium for generating business function page | |
CN113076294B (en) | Information sharing method and device | |
CN111274263A (en) | Visual database change statement generation method and device and storage medium | |
CN112948264B (en) | Method and device for executing test task, system, storage medium and electronic device | |
CN114297245A (en) | Image label processing method, device, storage medium, processor and electronic device | |
CN108737487B (en) | Data synchronization method and device, storage medium and electronic device | |
CN110554951B (en) | Buried point management method and device | |
CN106528243A (en) | Information processing method, information processing device, terminal equipment and server | |
CN104123299A (en) | Message sharing method, device and system among multiple terminal devices | |
WO2021189766A1 (en) | Data visualization method and related device | |
AU2016101498B4 (en) | Data Interchange System | |
CN111488286B (en) | Method and device for independently developing Android modules | |
CN112685115A (en) | International cue language generating method, system, computer equipment and storage medium | |
CN113486025A (en) | Data storage method, data query method and device | |
CN112783842B (en) | Log collection method and device | |
US20080168087A1 (en) | System and Method for Managing Location-Independent Objects | |
CN105808628A (en) | Webpage transcoding method, apparatus and system | |
CN113157722B (en) | Data processing method, device, server, system and storage medium | |
CN114371969A (en) | Page performance testing method and device, electronic equipment and storage medium | |
CN113377378A (en) | Processing method, device and equipment for small program and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210201 Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Applicant after: Shenzhen saiante Technology Service Co.,Ltd. Address before: 1-34 / F, Qianhai free trade building, 3048 Xinghai Avenue, Mawan, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong 518000 Applicant before: Ping An International Smart City Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |