CN110865834B - 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 PDF

Info

Publication number
CN110865834B
CN110865834B CN201910966523.4A CN201910966523A CN110865834B CN 110865834 B CN110865834 B CN 110865834B CN 201910966523 A CN201910966523 A CN 201910966523A CN 110865834 B CN110865834 B CN 110865834B
Authority
CN
China
Prior art keywords
interface
application program
client
control
terminal equipment
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
Application number
CN201910966523.4A
Other languages
Chinese (zh)
Other versions
CN110865834A (en
Inventor
陈上勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Saiante Technology Service Co Ltd
Original Assignee
Shenzhen Saiante Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Saiante Technology Service Co Ltd filed Critical Shenzhen Saiante Technology Service Co Ltd
Priority to CN201910966523.4A priority Critical patent/CN110865834B/en
Publication of CN110865834A publication Critical patent/CN110865834A/en
Application granted granted Critical
Publication of CN110865834B publication Critical patent/CN110865834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total 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 present invention relates to the field of computer technologies, and in particular, to an application program interface updating method and apparatus, a computer readable storage medium, and a terminal device. 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; the H5 control set corresponding to the application program information is called from a preset control library, and an H5 interface corresponding to the client interface is generated by using each H5 control in the H5 control set; receiving editing information of maintenance personnel on the H5 interface, and generating an edited H5 interface according to the editing information; and generating interface protocol content corresponding to the edited H5 interface, and transmitting the interface protocol content to designated terminal equipment so that the designated terminal equipment updates the client interface according to the interface protocol content.

Description

Application program interface updating method and device, readable storage medium and terminal equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an application program interface updating method and apparatus, a computer readable storage medium, and a terminal device.
Background
In recent years, with the popularization of intelligent terminals, users have also increasingly demanded Application (APP). After the application program is released, the interface of the application program needs to be updated continuously according to various new requirements of the user. However, each time an application interface is updated, the intelligent terminal is required to download an updated application installation package in an application store, and then install the application installation package.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide an application program interface updating method, an apparatus, a computer readable storage medium, and a terminal device, so as to solve the problem that the update speed of the existing application program interface updating method is slower.
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;
the H5 control set corresponding to the application program information is called from a preset control library, each H5 control in the H5 control set is used for generating an H5 interface corresponding to the client interface, and each H5 control in the H5 control set corresponds to each client control in the client control set one by one;
receiving editing information of maintenance personnel on the H5 interface, and generating an edited H5 interface according to the editing information;
and generating interface protocol content corresponding to the edited H5 interface, and transmitting the interface protocol content to designated terminal equipment so that the designated terminal equipment updates the client interface according to the interface protocol content.
A second aspect of an embodiment of the present invention provides an application program interface updating apparatus, which may include:
the update instruction receiving module 401 is configured to receive an application program interface update instruction, and extract application program information in the application program interface update instruction;
a client interface acquisition module 402, configured to acquire a client interface corresponding to the application information, where the client interface is formed by combining client controls in a preset client control set;
the H5 interface generating module 403 is configured to call 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;
the editing information receiving module 404 is configured to receive editing information of the H5 interface by a maintainer, and generate an edited H5 interface according to the editing information;
and 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 specified terminal device, so that the specified 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 perform 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;
the H5 control set corresponding to the application program information is called from a preset control library, each H5 control in the H5 control set is used for generating an H5 interface corresponding to the client interface, and each H5 control in the H5 control set corresponds to each client control in the client control set one by one;
receiving editing information of maintenance personnel on the H5 interface, and generating an edited H5 interface according to the editing information;
and generating interface protocol content corresponding to the edited H5 interface, and transmitting the interface protocol content to designated terminal equipment so that the designated terminal equipment updates the client interface according to the interface protocol content.
A fourth aspect of the embodiments of the present invention provides a terminal device comprising a memory, a processor and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions to perform 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;
the H5 control set corresponding to the application program information is called from a preset control library, each H5 control in the H5 control set is used for generating an H5 interface corresponding to the client interface, and each H5 control in the H5 control set corresponds to each client control in the client control set one by one;
receiving editing information of maintenance personnel on the H5 interface, and generating an edited H5 interface according to the editing information;
and generating interface protocol content corresponding to the edited H5 interface, and transmitting the interface protocol content to designated terminal equipment so that the designated terminal equipment updates the client interface according to the interface protocol content.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: 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 invokes 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 editing information of maintenance personnel on the H5 interface, generating an edited H5 interface according to the editing information, generating interface protocol content corresponding to the edited H5 interface, and transmitting the interface protocol content to designated terminal equipment so that the designated terminal equipment updates the client interface according to the interface protocol content. According to the embodiment of the invention, the update of the application program interface from the control layer is realized, and because the client interface is formed by combining all client controls in the preset client control set, and all H5 controls in the H5 control set are in one-to-one correspondence with all client controls in the client control set, maintenance personnel of the application program can issue the update to the appointed terminal equipment through the interface protocol only by editing on the corresponding H5 interface, and the update of the client interfaces of the terminal equipment is realized, so that the whole update process is more convenient and faster.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art 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 other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
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 chart of constructing an H5 control set;
FIG. 3 is a schematic flow chart of the delivery of interface protocol content to a designated terminal device;
FIG. 4 is a block diagram of an embodiment of an application interface update 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 comprehensible, the technical solutions in the embodiments of the present invention are described in detail below with reference to the accompanying drawings, and it is apparent that the embodiments described below are only some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the 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 implementation subject of the embodiment of the present invention may be a terminal device used by a maintainer who supplies an application program, such as a desktop computer, a notebook computer, and a palm computer, and is hereinafter referred to as an execution terminal for simplicity.
When a maintainer needs to update an interface of an application program, an application program interface update instruction can be issued to the execution terminal through a man-machine interaction interface of the execution terminal, and application program information can comprise application program identifiers, wherein the application program identifiers are used for uniquely identifying one application program, and application program identifiers of different application programs are different. Preferably, if there are a plurality of different versions of the application, the application information may further include the version of the application. And the execution terminal can extract the application program information after receiving the application program interface updating instruction.
Step S102, a client interface corresponding to the application program information is obtained.
The client interface is formed by combining all client controls in a preset client control set. The client controls can be container controls or non-container controls, wherein the container controls refer to controls allowing other controls to be added into the container controls, namely View groups (ViewGroups), the non-container controls are a single View (View), and all the client controls form the client control set.
And step S103, an H5 control set corresponding to the application program information is called from a preset control library, and an H5 interface corresponding to the client interface is generated by using each H5 control in the H5 control set.
The H5 mentioned in the embodiment of the present invention is HTML5, that is, the web page format specified in the 5 th version of the hypertext markup language (Hyper Text Markup Language, HTML). In the execution terminal, an interface which is used by a maintainer and is in an H5 format, namely the H5 interface, wherein the H5 interface is formed by combining all H5 controls in the H5 control set.
Preferably, before step S103, the set of H5 controls may be constructed by a process as shown in fig. 2.
Step S201, obtaining a source file of a first client control.
The first client control is any one client control in the client control set. Each client control has a corresponding source file that typically uses 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 in each preset dimension from the source file.
Each client control has its own properties and behavior, e.g., a news Item (Item) containing an Icon (Icon), a Title (Title), and text descriptions, the Item corresponding to a specified URL address, which are the properties 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 of the first client control, marks the annotation content with an identifier @ appcard, configuration information of the first client control in preset dimensions can be read from the annotation content, the dimensions comprise but are not limited to types, attributes, behaviors, default initialization data and the like, the configuration information in the dimensions are marked in advance through specific identifiers, for example, the types are marked with @ card type, the attributes are marked with @ attr, the behaviors are marked with @ action, default initialization data are marked with @ default, and the execution terminal can collect the configuration information of the first client control in each dimension by analyzing the content.
And step 203, 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 the execution terminal reads the configuration information, the H5 control can be configured according to the configuration information, so that the H5 control corresponding to the first client control is generated.
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 executing the above process on each client control, each H5 control corresponding to each client control in the client control set one to one can be generated, and the H5 controls are constructed into the H5 control set. After the H5 control collection is built, it can be stored into 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 by one, when the application program interface is required 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 for generating an H5 interface corresponding to the client interface.
And step S104, receiving editing information of maintenance personnel on the H5 interface, and generating an edited H5 interface according to the editing information.
The maintainer can edit the H5 interface through the execution terminal so as to generate the editing information, wherein the editing information comprises, but is not limited to, operations of adding, deleting, moving and the like of each H5 control in the H5 interface. After receiving the editing information, the executing terminal can correspondingly adjust the H5 interface according to the editing information, so as to generate the edited H5 interface.
Step 105, generating interface protocol content corresponding to the edited H5 interface, and transmitting 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 protocols mentioned in this embodiment include, but are not limited to, any interface interpretation language in the prior art that implements consistency between the H5 interface and the client interface. 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 mode, maintenance personnel can complete interface assembly of an application program just like a jigsaw, basically no technical threshold is provided for the maintenance personnel, and updating of interface content can be conveniently completed according to product requirements and sent to a client for updating and displaying.
Preferably, before the interface protocol content is issued to the designated terminal device, the executing terminal may first 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. Then, the execution terminal may send a version inquiry request to each of the connection devices, and receive feedback information of each of the connection devices, in which the feedback information includes an application version installed in the connection device, and may select a designated terminal device from each of the connection devices according to the version inquiry request, the application version in the feedback information of the designated terminal device being identical to the application version in the application information.
This is done in view of the fact that the version of the application is being updated continuously, and the application used by different users may be different versions. Accordingly, in this embodiment, H5 control sets of each application version may be stored in the control library respectively, and maintainers may switch to use, and update each different version correspondingly, where the updates are only issued to the terminal device of the user using the corresponding version, so that after the content output by the execution terminal is issued to the terminal device of the user, the terminal device of the user can completely analyze the interface protocol content, and update the client interface.
Further, given that the number of specified terminal devices may be very large, a single server may be time consuming to process, and thus the target server may preferably comprise more than two sub-servers, i.e. the target server may be a server cluster, in which case the process of delivering the interfacial protocol content to the specified terminal devices may specifically comprise the steps as shown in fig. 3:
step S301, obtaining the equipment identifier of the S-th appointed terminal equipment, and calculating the hash value of the S-th appointed terminal equipment according to the equipment identifier.
Wherein, s is more than or equal to 1 and is more than or equal to SN, and SN is the number of the appointed terminal equipment.
The device identity may be an international mobile equipment identity (International Mobile Equipment Identity, IMEI), which is an electronic serial number consisting of 15 digits, which corresponds to each terminal device one-to-one and which is unique worldwide. Each terminal device will be assigned a globally unique number after assembly, which will be recorded by the manufacturer from production to delivery.
In this embodiment, the hash value of the s-th specified terminal device may be calculated according to the following equation:
EqHash s =FsHashFunc(EqID s )
wherein EqID s For the device identifier of the s-th designated terminal device, fsHashFunc is a preset first hash function, eqHash s Hash value for the s-th specified 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, etc.
Step S302, determining a sub-server corresponding to the S-th designated terminal equipment in the target server according to the hash value of the S-th designated terminal equipment.
First, a location point on a preset hash ring corresponding to a hash value of an s-th designated terminal device may be determined as a target location point.
The hash ring is a ring formed by sequentially connecting all function values of the first hash function clockwise or anticlockwise according to the 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 child server of the target servers. The device identifiers of the sub-servers are respectively expressed as: nodeID 1 、NodeID 2 、…、NodeID m 、…、NodeID M Wherein 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, nodeID m For the device identifier of the mth sub-server, the hash value of each sub-server may be calculated according to the following equation:
NodeHash m =SdHashFunc(NodeID m )
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 that the two hash functions can be mapped on the same hash ring, and NodeHash is ensured m For the hash value of the m-th sub-server, a location point on the hash ring corresponding to the hash value of the m-th sub-server may be determined as a reference location point corresponding to the m-th sub-server.
And finally, searching the reference position point clockwise or anticlockwise from the target position point, and determining the sub-server corresponding to the first reference position point to be the sub-server corresponding to the s-th designated terminal equipment.
And step S303, using a sub-server corresponding to the S-th appointed terminal equipment to issue the interface protocol content to the S-th appointed terminal equipment.
Traversing each appointed terminal device through the process shown in fig. 3, determining the sub-servers corresponding to each appointed terminal device, and completing the issuing of the interface protocol content.
In summary, through the embodiment of the invention, the update 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, and all the H5 controls in the H5 control set are in one-to-one correspondence with all the client controls in the client control set, the maintainer of the application program can send the update to the appointed terminal equipment through the interface protocol only by editing on the corresponding H5 interface, and the update of the client interfaces of the terminal equipment is realized, so that the whole update process is more convenient and faster.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
Corresponding to the method for updating an application program interface described in the above embodiments, fig. 4 shows a block diagram of an embodiment of an application program interface updating apparatus according to an embodiment of the present invention.
In this embodiment, an application program interface updating apparatus may include:
the update instruction receiving module 401 is configured to receive an application program interface update instruction, and extract application program information in the application program interface update instruction;
a client interface acquisition module 402, configured to acquire a client interface corresponding to the application information, where the client interface is formed by combining client controls in a preset client control set;
the H5 interface generating module 403 is configured to call 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;
the editing information receiving module 404 is configured to receive editing information of the H5 interface by a maintainer, and generate an edited H5 interface according to the editing information;
and 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 specified terminal device, so that the specified terminal device updates the client interface according to the interface protocol content.
Further, the application program interface updating apparatus may further include:
the source file acquisition module is used for acquiring a source file of a first client control, wherein the first client control is any client control in the client control set;
the configuration information reading module is used for reading configuration information of the first client control in each preset dimension from the source file;
and the H5 control generation 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:
the connection equipment acquisition module is used for acquiring each connection equipment from a preset target server, wherein the target server is a server corresponding to the application program identifier, and the connection equipment is terminal equipment which establishes communication connection with the target server;
the version inquiry module is used for sending a version inquiry request to each connecting device and receiving feedback information of each connecting device;
and the terminal equipment selecting module is used for selecting designated terminal equipment from the connection equipment, and the application program version in the feedback information of the designated terminal equipment is consistent with the application program version in the application program information.
Further, the interface protocol issuing module may include:
the device identification acquisition unit is used for acquiring the device identification of the s-th appointed terminal device, 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 appointed terminal devices;
a sub-server determining unit, configured to determine, in the target server, a sub-server corresponding to the s-th specified terminal device according to the hash value of the s-th specified terminal device;
and the interface protocol issuing unit is used for issuing the interface protocol content to the s appointed terminal equipment by using the sub-server corresponding to the s appointed terminal equipment.
Further, the sub-server determining unit may include:
a target location point determining subunit, configured to determine a location point corresponding to a hash value of the s-th specified terminal device on a preset hash ring as a target location point;
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 sub-server in the target server;
and the sub-server determining sub-unit starts to search 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 designated terminal equipment.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described apparatus, modules and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Fig. 5 shows a schematic block diagram of a terminal device according to an embodiment of the present invention, and for convenience of explanation, only a portion related to the embodiment of the present invention is shown.
In this embodiment, the terminal device 5 may be a desktop computer, a notebook computer, a palm computer, or 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 for performing the application interface updating method described above. The processor 50, when executing the computer readable instructions 52, implements the steps of the various application interface update method embodiments described above, such as steps S101 through S105 shown in fig. 1. Alternatively, the processor 50, when executing the computer readable instructions 52, performs the functions of the modules/units of the apparatus embodiments described above, such as the functions of modules 401 through 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 accomplish the present invention. The one or more modules/units may be a series of computer readable instruction segments capable of performing specific functions describing the execution of the computer readable instructions 52 in the terminal device 5.
The processor 50 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), field programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. 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 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) or 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 as well as 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.
The functional units in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution contributing to the prior art or in the form of a software product stored in a storage medium, comprising a number of computer readable instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing computer readable instructions.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. An application program interface updating method, comprising:
receiving an application program interface updating instruction and extracting application program information in the application program interface updating instruction; the application information comprises an application program identifier and an application program version;
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;
the H5 control set corresponding to the application program information is called from a preset control library, each H5 control in the H5 control set is used for generating an H5 interface corresponding to the client interface, and each H5 control in the H5 control set corresponds to each client control in the client control set one by one; the construction process of the H5 control set comprises the following steps: acquiring a source file of a first client control, wherein the first client control is any client control in the client control set; reading configuration information of the first client control in each preset dimension from the source file; 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;
receiving editing information of maintenance personnel on the H5 interface, and generating an edited H5 interface according to the editing information;
generating interface protocol content corresponding to the edited H5 interface; acquiring the equipment identifier of the s-th appointed terminal equipment, and calculating the hash value of the s-th appointed terminal equipment according to the equipment identifier, wherein s is more than or equal to 1 and less than or equal to SN, and SN is the number of the appointed terminal equipment; determining a sub-server corresponding to the s-th appointed terminal equipment in a preset target server according to the hash value of the s-th appointed terminal equipment; the sub-server corresponding to the s-th appointed terminal equipment is used for transmitting the interface protocol content to the s-th appointed terminal equipment, so that the appointed terminal equipment updates the client interface according to the interface protocol content; and the application program version in the feedback information of the designated terminal equipment is consistent with the application program version in the application program information, and the target server is a server corresponding to the application program identifier.
2. The application program interface updating method according to claim 1, further comprising, before the delivering of the interface protocol content to the specified terminal device:
acquiring each connecting device from the target server, wherein the connecting device is terminal equipment which establishes communication connection with the target server;
sending a version inquiry request to each connecting device and receiving feedback information of each connecting device;
and selecting a designated terminal device from the connection devices.
3. The application program interface updating method according to claim 1, wherein the determining, in the preset 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 includes:
determining a position point corresponding to a hash value of the s-th designated terminal equipment on a preset hash ring 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 searching the reference position point clockwise or anticlockwise from the target position point, and determining the sub-server corresponding to the first reference position point to be the sub-server corresponding to the s-th designated terminal equipment.
4. An application program 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 application information comprises an application program identifier and an application program version;
the client interface acquisition module is used for 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;
the H5 interface generation module is used for calling an H5 control set corresponding to the application program information from a preset control library, 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; the construction process of the H5 control set comprises the following steps: acquiring a source file of a first client control, wherein the first client control is any client control in the client control set; reading configuration information of the first client control in each preset dimension from the source file; 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;
the editing information receiving module is used for receiving editing information of maintenance personnel on the H5 interface and generating an edited H5 interface according to the editing information;
the interface protocol issuing module is used for generating interface protocol content corresponding to the edited H5 interface; acquiring the equipment identifier of the s-th appointed terminal equipment, and calculating the hash value of the s-th appointed terminal equipment according to the equipment identifier, wherein s is more than or equal to 1 and less than or equal to SN, and SN is the number of the appointed terminal equipment; determining a sub-server corresponding to the s-th appointed terminal equipment in a preset target server according to the hash value of the s-th appointed terminal equipment; the sub-server corresponding to the s-th appointed terminal equipment is used for transmitting the interface protocol content to the s-th appointed terminal equipment, so that the appointed terminal equipment updates the client interface according to the interface protocol content; and the application program version in the feedback information of the designated terminal equipment is consistent with the application program version in the application program information, and the target server is a server corresponding to the application program identifier.
5. The application program interface updating apparatus according to claim 4, further comprising:
the connection equipment acquisition module is used for acquiring each connection equipment from the target server, wherein the connection equipment is terminal equipment which establishes communication connection with the target server;
the version inquiry module is used for sending a version inquiry request to each connecting device and receiving feedback information of each connecting device;
and the terminal equipment selecting module is used for selecting the designated terminal equipment from the connection equipment.
6. A computer readable storage medium storing computer readable instructions which, when executed by a processor, implement the steps of the application program interface updating method of any of claims 1 to 3.
7. 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 program interface updating method of any of claims 1 to 3.
CN201910966523.4A 2019-10-12 2019-10-12 Application program interface updating method and device, readable storage medium and terminal equipment Active CN110865834B (en)

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 CN110865834A (en) 2020-03-06
CN110865834B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN114356477B (en) * 2021-12-22 2024-04-09 青岛海信移动通信技术有限公司 Terminal equipment and application program calling method

Citations (1)

* Cited by examiner, † Cited by third party
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN110865834A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN110865834B (en) Application program interface updating method and device, readable storage medium and terminal equipment
US9015657B2 (en) Systems and methods for developing and delivering platform adaptive web and native application content
US20190013993A1 (en) Updating Web Resources
US10257110B2 (en) Using a template to update a stack of resources
CN105027121A (en) Indexing application pages of native applications
CN111177618A (en) Website building method, device, equipment and computer readable storage medium
CN102663062A (en) Method and device for processing invalid links in search result
CN103268319A (en) Cloud browser based on webpages
CN106649446B (en) Information pushing method and device
CN103248641A (en) Network download method, device and system
WO2013175560A1 (en) Information communicating system and information converting method
CN110941779A (en) Page loading method and device, storage medium and electronic equipment
CN112394932A (en) Automatic browser webpage skin changing method and device
CN104063475A (en) User-defined list processing method and device
AU2016101498B4 (en) Data Interchange System
CN109213955B (en) Data processing method and related equipment
CN113282591B (en) Authority filtering method, authority filtering device, computer equipment and storage medium
CN104182229A (en) Callback display method and device and callback method and device
CN104361007A (en) Browser and processing method for browser favorites
CN108737487B (en) Data synchronization method and device, storage medium and electronic device
CN103139298A (en) Method for transmitting network data and device
CN113672225B (en) User interface processing method, device, equipment and storage medium
CN115065945A (en) Short message link generation method and device, electronic equipment and storage medium
CN114254592A (en) Webpage content saving method and device, storage medium and electronic equipment
CN111061627B (en) Webpage embedding method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
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