CN113076118A - Application program updating method and device and data sending method and device - Google Patents

Application program updating method and device and data sending method and device Download PDF

Info

Publication number
CN113076118A
CN113076118A CN202010010261.7A CN202010010261A CN113076118A CN 113076118 A CN113076118 A CN 113076118A CN 202010010261 A CN202010010261 A CN 202010010261A CN 113076118 A CN113076118 A CN 113076118A
Authority
CN
China
Prior art keywords
page
information
navigation bar
updating
updating 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.)
Pending
Application number
CN202010010261.7A
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010010261.7A priority Critical patent/CN113076118A/en
Publication of CN113076118A publication Critical patent/CN113076118A/en
Pending legal-status Critical Current

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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an application program updating method and device and a data sending method and device, and relates to the technical field of computers. One specific implementation of the application program updating method includes: acquiring navigation bar configuration information and/or stage type page updating information aiming at an application program, which is transmitted by a control console; wherein the navigation bar is located in a bar controller of the application program, the navigation bar includes at least one tag for controlling a page of the application program, and the configuration information of the navigation bar includes: the style updating information and/or the full-scale page updating information of the navigation bar; updating the navigation bar according to the style updating information of the navigation bar; and/or updating the application program page controlled by the label according to the stage type page updating information or the full-scale page updating information. The embodiment can update the navigation bar style information and the page information of the application program bar controller at any time through the console.

Description

Application program updating method and device and data sending method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an application updating method and apparatus, and a data sending method and apparatus.
Background
In an iOS (mobile operating system) system, a main interface of most application programs is a hierarchical structure of a page managed by a partition controller as a framework, and the partition controller realizes page switching by managing a plurality of tags and corresponding view controllers. In the prior art, the style, the number of tags and the page corresponding to each tag of the column controller cannot be changed at any time after the column controller is created, and the frame of the application program is fixed, so that the flexibility is lacked. Meanwhile, pages managed by the column controller generally belong to important pages of an application program, and once problems occur in the pages, user experience is affected, but in the prior art, the pages can be modified only by releasing a new version, and the new version can be on-line only by auditing and cannot be modified and effective immediately.
Disclosure of Invention
In view of this, embodiments of the present invention provide an application updating method and apparatus, and a data sending method and apparatus, which can update navigation bar style information and page information of an application bar controller at any time through a console.
To achieve the above object, according to one aspect of the present invention, there is provided an application updating method.
The application program updating method of the embodiment of the invention comprises the following steps: acquiring navigation bar configuration information and/or stage type page updating information aiming at an application program, which is transmitted by a control console; wherein the navigation bar is located in a bar controller of the application program, the navigation bar includes at least one tag for controlling a page of the application program, and the configuration information of the navigation bar includes: the style updating information and/or the full-scale page updating information of the navigation bar; updating the navigation bar according to the style updating information of the navigation bar; and/or updating the application program page controlled by the label according to the stage type page updating information or the full-scale page updating information.
Optionally, the style update information of the navigation bar includes: updating information of the background picture of the navigation bar and/or updating information of the style of the label, wherein the updating information of the style of the label comprises the updating information of the title, the picture and/or the corner mark of the label; the full-amount page updating information is information sent by the console to a plurality of clients in a preset range, and the information comprises a label title corresponding to a page to be updated and the type and the identification of a preset updated page; the stage type page updating information is information sent by the console to a client side with a preset proportion in the plurality of client sides, and the information comprises a label title corresponding to a page to be updated and a preset type and an identification of the updated page.
Optionally, the obtaining of the navigation bar configuration information and/or the staged page update information for the application program, which is sent by the console, includes: when an application program is started or switched from a background to a foreground, acquiring navigation bar configuration information and/or stage type page updating information which are issued by a control console and aim at the application program; updating the application page controlled by the label according to the stage page update information or the full-scale page update information, comprising: and when the stage page updating information or the full-scale page updating information is acquired, calling a view controller corresponding to a label title included in the information, and creating a page by the view controller according to the type and the identification of the updated page included in the information.
Alternatively, the method may be applied to an iOS system; the type of page includes at least one of: a Native page, an H5 page, a read Native page; the identification of the Native page is the class name of the view controller corresponding to the page, the identification of the H5 page is the link address of the page, and the identification of the real Native page is the name of the page module.
To achieve the above object, according to another aspect of the present invention, a data transmission method is provided.
The data transmission method of the embodiment of the invention is applied to a console and comprises the following steps: determining style update information for an application navigation bar, the navigation bar being in a columnar controller of the application; generating navigation bar configuration information by using the style updating information, and sending the navigation bar configuration information to a client side which installs the application program so as to update the style of the navigation bar; and/or determining page update information for an application navigation bar, the navigation bar being in a columnar controller of the application; when page update information needs to be sent to a plurality of clients within a preset range: determining page updating information as full-scale page updating information, generating navigation bar configuration information by using the full-scale page updating information, and sending the navigation bar configuration information to the plurality of clients to update the pages controlled by the navigation bar; when page update information needs to be sent to clients with preset proportions in the multiple clients: and determining page updating information as staged page updating information, and sending the staged page updating information to the client with the preset proportion so as to update the page controlled by the navigation bar.
Optionally, the navigation bar includes at least one tab for controlling an application page; the style update information of the navigation bar includes: updating information of the background picture of the navigation bar and/or style updating information of the label; the method further comprises: after the stage type page updating information is sent to the client side with the preset proportion, collecting operation index data of the application program in the client side; when the operation index data meets a preset condition, sending the stage type page updating information to other clients in the plurality of clients; and when the labels in the navigation bar need to be added, combining the style updating information of the labels to be added and the full page updating information corresponding to the labels to be added into navigation bar configuration information and sending the navigation bar configuration information to the plurality of clients.
Optionally, the style update information of the tag includes update information of a title, a picture and/or a corner mark of the tag; the full-scale page updating information and the staged page updating information comprise tag titles corresponding to the pages to be updated and preset types and identifications of the updated pages; the type of page includes at least one of: a Native page, an H5 page, a read Native page; the identification of the Native page is the class name of a view controller corresponding to the page, the identification of the H5 page is the link address of the page, and the identification of the read Native page is the name of a page module; when page update information needs to be sent to clients with preset proportions in the plurality of clients, the method comprises the following steps: when the page controlled by the navigation bar needs to be upgraded or repaired.
To achieve the above object, according to still another aspect of the present invention, there is provided an application updating apparatus.
The application program updating device of the embodiment of the invention can comprise: the configuration acquisition unit is used for acquiring navigation bar configuration information and/or staged page updating information aiming at the application program and issued by the console; wherein the navigation bar is located in a bar controller of the application program, the navigation bar includes at least one tag for controlling a page of the application program, and the configuration information of the navigation bar includes: the style updating information and/or the full-scale page updating information of the navigation bar; an update unit configured to: updating the navigation bar according to the style updating information of the navigation bar; and/or updating the application program page controlled by the label according to the stage type page updating information or the full-scale page updating information.
To achieve the above object, according to still another aspect of the present invention, there is provided a data transmission apparatus.
The data sending device of the embodiment of the invention is applied to a console and can comprise: a first sending unit configured to: determining style update information for an application navigation bar, the navigation bar being in a columnar controller of the application; generating navigation bar configuration information by using the style updating information, and sending the navigation bar configuration information to a client side which installs the application program so as to update the style of the navigation bar; and/or, a second sending unit, configured to: determining page update information for an application navigation bar, the navigation bar being in a columnar controller of the application; when page update information needs to be sent to a plurality of clients within a preset range: determining page updating information as full-scale page updating information, generating navigation bar configuration information by using the full-scale page updating information, and sending the navigation bar configuration information to the plurality of clients to update the pages controlled by the navigation bar; when page update information needs to be sent to clients with preset proportions in the multiple clients: and determining page updating information as staged page updating information, and sending the staged page updating information to the client with the preset proportion so as to update the page controlled by the navigation bar.
To achieve the above object, according to still another aspect of the present invention, there is provided an electronic apparatus.
An electronic device of the present invention includes: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the application program updating or data sending method provided by the invention.
To achieve the above object, according to still another aspect of the present invention, there is provided a computer-readable storage medium.
A computer-readable storage medium of the present invention stores thereon a computer program that, when executed by a processor, implements an application updating or data transmitting method provided by the present invention.
According to the technical scheme of the invention, one embodiment of the invention has the following advantages or beneficial effects: by configuring the style updating information of the navigation bar of the column controller on the console and sending the navigation bar configuration information comprising the style updating information to the client, the background of the navigation bar and the style of each label can be flexibly changed as required; when an application program is online or a new page (i.e. a new tag) is added to the columnar controller, the console can send navigation column configuration information including full-scale page update information to corresponding clients within a preset range, so that each client can display each page or the new page of the columnar controller; when a certain page controlled by the columnar controller goes wrong or needs to be upgraded, the console can send staged page updating information to clients with preset proportion in a preset range to modify or upgrade the corresponding page, meanwhile, the console collects operation index data of the application programs, and sends staged page updating information to more clients when the operation index data reach preset conditions, so that page display of the application programs is flexibly changed without releasing a new version of the application programs. The method has simple operation flow, can configure the application program style and the page structure without changing the application program code, can ensure the stability of the whole system by modifying or upgrading the page according to the staged page updating information, and can find and adjust the problems and control the influence range at the initial stage of using the updated page.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram illustrating the main steps of an application update method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a navigation bar of a bar controller in an embodiment of the present invention;
FIG. 3 is a schematic diagram of console and client interaction in an embodiment of the invention;
FIG. 4 is a schematic diagram of the components of an application update apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the components of a data transmission apparatus according to an embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 7 is a schematic structural diagram of an electronic device for implementing an application updating method or a data sending method according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments of the present invention and the technical features of the embodiments may be combined with each other without conflict.
FIG. 1 is a diagram illustrating the main steps of an application update method according to an embodiment of the present invention.
As shown in fig. 1, the application program updating method according to the embodiment of the present invention may specifically be performed according to the following steps:
step S101: and acquiring navigation bar configuration information and/or stage type page updating information aiming at the application program transmitted by the console.
In this step, the navigation bar refers to the navigation bar of the bar controller of the application program. In the iOS system, a columnar controller, i.e., uitabbbar controller, is used for a management view controller (Viewcontroller) to implement page switching. The column controller comprises a navigation bar (UITabbar), the navigation bar is arranged at the bottom of the screen and is always visible, at least one label (UITabbaritem) for controlling the application program page is arranged on the navigation bar, each label corresponds to one application program page through the view controller, and each label is provided with a title, an image and a corner mark. Fig. 2 is a schematic diagram of a navigation bar of a column controller in an embodiment of the present invention, as shown in fig. 2, the navigation bar includes four labels, the images of the labels are respectively pentagonal, circular, square and triangular from left to right, the titles are Label a, Label B, Label C and Label D, the Label C Label contains HOT characters in the upper right corner and is shaped as a corner mark of the Label.
It should be noted that the application program updating method in the embodiment of the present invention may be applied to application program updating in an iOS system, and may also be applied to an android system and a browser side. When the method is applied to an android system and a browser end, the above-mentioned split-bar controller refers to a component in the android system and the browser that has the same or similar function as the iOS split-bar controller, and the following description will mainly take the application of the present invention in the iOS system as an example.
In an embodiment of the present invention, the console is a part of the server that directly interacts with the client, i.e., a front-end part of the server, and is used for configuring the page data or the style data for the client. In step S101, the navigation bar configuration information may include style update information of the navigation bar or full page update information, the style update information of the navigation bar may include update information of a background picture of the navigation bar (for example, content, color, and the like of the updated background picture) and/or style update information of a tag, and the style update information of the tag may include update information of a title, a picture, or a corner mark of the tag. It is understood that the updated information of the title may include updated title content, font, color information, etc. in a selected state or an unselected state, the updated information of the picture may include updated information of content, size, color, etc. of the picture in a selected state or an unselected state, and the updated information of the corner mark may include updated information of content, font, color, etc. of the corner mark in a selected state or an unselected state.
The full-scale page update information is information sent by the console to all relevant clients within a preset range, where the preset range may be determined according to actual needs, and may be a space range or other ranges for defining different clients, for example, the preset range may be a certain city, a certain province, or a certain country, and the relevant clients refer to clients installed with corresponding applications. The full-amount page updating information comprises a tag title corresponding to a page to be updated and a preset type and an identifier of the updated page, and it can be understood that the identifier of the page enables a client to uniquely determine an application page. In practical application, the type of the page includes at least one of the following: the Native page (i.e., the page created by using the development method of the system itself), the H5 page (i.e., the page created by using the H5 method, H5 is the fifth generation hypertext markup language), the read Native page (i.e., the page created by using the read Native method, which is a cross-platform application development framework), the Native page is identified as the class name of the view controller corresponding to the page, the H5 page is identified as the link address of the page, i.e., the URL (Uniform Resource Locator) address, and the read Native page is identified as the name of the page module. In practical application, the configuration information of the navigation bar may also include style update information and full page update information of the navigation bar.
It can be understood that the navigation bar configuration information only includes information for updating the navigation bar of the split-bar controller of the client application program, and if the navigation bar is not updated, the console does not send the navigation bar configuration information to the client. In addition, the style update information and the full page update information of the navigation bar in the navigation bar configuration information sent by the console are information which is determined by the console and does not need to be issued in a staged manner (i.e. a part of clients in a preset range is selected for distribution at first, and the issuing range is expanded when the feedback result is good). For example, when it is necessary to update the picture color of tab a of an application to red and update a native page controlled by tab b to H5 page, if the console determines that the above update information does not need to be published in a stepwise manner, navigation bar configuration information including update information of tab a and update information of tab b may be generated, the update information of tab a being style update information indicating that the image color of tab a is updated to red, and the update information of tab b being full-scale page update information including the type of the updated page (i.e., H5) and the link address of the updated page. In the embodiment of the present invention, the page controlled by the tag may include an application main page corresponding to the tag and sub pages at each level.
In specific application, when an application program is online or a page is newly added to the application program, a console may display the page by sending full-scale page update information to a client, but when the page is modified or upgraded, the console often needs to perform staged publishing on the updated page, that is, clients with a preset proportion are selected to publish in a preset range, and meanwhile, operation indication data (such as error rate, throughput, page access amount and the like) of the application programs of the clients are monitored, and when the operation indication data meet preset conditions (such as the operation indication data is greater than a threshold with good representation effect), the operation indication data are distributed to other parts or all the clients in the preset range. In this scenario, the console may first send staged page update information to the client at a preset ratio, where the information includes a tag title corresponding to the page to be updated and a preset type and identifier of the updated page. It can be understood that the console may store in advance a mapping relationship between the page to be updated and the updated page type, the identifier, and the corresponding preset ratio, and the mapping relationship may be queried through the identifier of the page to be updated. In practical applications, the console may determine the clients sending the staged page update information by using various strategies, for example, first select the clients whose operating systems meet certain conditions, then divide the clients into a plurality of clients according to certain user characteristics and select a certain number of the clients, set a white list to select another part of the clients meeting requirements, and send the staged page update information when the selected clients reach a preset ratio.
In step S101, the client may obtain the navigation bar configuration information or the staged page update information issued by the console when the application program is started or switched from the background to the foreground, or may obtain the navigation bar configuration information or the staged page update information at any time. The above acquisition may be performed in a manner that the client actively pulls from the console, or in a manner that the console actively sends data to the client and the client receives data.
Step S102: updating the navigation bar according to the style updating information of the navigation bar; and/or updating the application program page controlled by the label according to the stage type page updating information or the full-scale page updating information.
In this step, the client adjusts the style or page structure of the application program according to the navigation bar configuration information or the staged page update information issued by the console. Specifically, when the navigation bar configuration information received by the client contains the style update information of the navigation bar, the style of the navigation bar is updated according to the information. For example, when the style update information of the navigation bar comprises the update information of the background picture of the navigation bar, the background of the navigation bar is updated by using the update information of the background picture of the navigation bar; and when the style updating information of the label is included in the style updating information of the navigation bar, updating the corresponding label by using the style updating information of the label. When the navigation bar configuration information received by the client contains full page update information, a view controller corresponding to a tag title included in the information can be called, and a page is created by the view controller according to the type and the identification of the updated page included in the information and is displayed when the user selects the tag.
When the client receives the stage page updating information, the view controller corresponding to the label title included in the information can be called, and the view controller creates a page according to the type and the identification of the updated page included in the information and displays the page when the user selects the label. It can be understood that the client may receive the navigation bar configuration information and the staged page update information at the same time, the navigation bar configuration information may contain the update information of the navigation bar background picture and the style update information of the plurality of tags at the same time, and the client may perform the update operation of the application style and the page structure according to the above information, respectively.
Fig. 3 is a schematic diagram of interaction between a console and a client according to an embodiment of the present invention, as shown in fig. 3, the client may obtain navigation bar configuration information or staged page update information delivered by the console at any time and cache the navigation bar configuration information or staged page update information locally, in practical applications, only the most recently delivered navigation bar configuration information or staged page update information is cached locally, and after receiving the most recently delivered navigation bar configuration information or staged page update information, corresponding information cached before may be deleted. Fig. 3 shows the information acquisition process of the client by using a dotted line, which means that the client can realize the information acquisition in the above manner but currently does not necessarily acquire and cache the navigation bar configuration information or the staged page update information.
When the application program is started or switched from a background to a foreground, the client judges whether the navigation bar configuration information exists in the local cache: if so, setting the navigation bar style by using the navigation bar configuration information; otherwise, the navigation bar style is set by using default navigation bar configuration information preset in the client list (this occurs when the network request fails or is abnormal). Then, the client judges whether the local has stage page updating information: and if so, creating and displaying the page by using the staged page updating information, otherwise, creating and displaying the page by using the navigation bar configuration information cached locally or the full page updating information in the default navigation bar configuration information. In a specific scenario, when the console issues the navigation bar configuration information including the full-scale update information to the client, the console may simultaneously send the staged page update information of the corresponding page and with empty content to the client to empty the staged page update information of the corresponding page cached in the client, thereby ensuring that the issued full-scale update information can take effect.
A data transmission method performed to the console corresponding to an application update method of the client will be described below. Specifically, the console may determine style update information for the application navigation bar and send navigation bar configuration information including the style update information to the client, thereby implementing style update of the client navigation bar. The console may further determine page update information for the application program navigation bar, and issue the page update information to the client by using full-scale or staged publishing according to actual needs to implement page update of the client, which will be described below according to specific scenarios.
When the application program is on line, the console can issue the style updating information and the full page updating information of the navigation bar to each relevant client in a preset range, so that each client can quickly display the style information and the page structure. When a certain page of the application program navigation bar has problems and needs to be repaired, in order to maintain system stability, the possible problems can be found at the initial stage of the updated page, staged publishing is generally needed, at the moment, the console can generate staged page updating information to be sent to a client with a preset proportion, and when the application program operation index data monitored at the later stage meets the conditions, the publishing range is expanded and the full sending is finally realized. When a certain page of the application program navigation bar needs to be upgraded, staged publishing is generally needed, at the moment, the console can generate staged page updating information to be sent to a client side with a preset proportion, and when application program operation index data monitored in the later period meet conditions, a publishing range is expanded and full sending is finally achieved. When the labels of the navigation bar need to be added, the console sends navigation bar configuration information comprising style updating information of the labels to be added and full page updating information corresponding to the labels to be added to the client. Generally, the updated page in the full-scale page update information is tested and passed in other entries of the application program in advance, so that a full-scale publishing mode can be adopted. After receiving the configuration information of the navigation bar, the client can set the style of the tag to be added according to the style updating information of the tag to be added, and create and display the page according to the full page updating information corresponding to the tag to be added.
In the technical scheme of the embodiment of the invention, the navigation bar background and the style of each label can be flexibly changed as required by configuring the style updating information of the navigation bar of the column controller on the console and sending the navigation bar configuration information comprising the style updating information to the client; when an application program is online or a new page of the columnar controller is added, the console can send navigation bar configuration information including full page updating information to corresponding client sides in a preset range, so that each client side can display each page or the new page of the columnar controller; when a certain page controlled by the columnar controller goes wrong or needs to be upgraded, the console can send staged page updating information to clients with preset proportion in a preset range to modify or upgrade the corresponding page, meanwhile, the console collects operation index data of the application programs, and sends staged page updating information to more clients when the operation index data reach preset conditions, so that page display of the application programs is flexibly changed without releasing a new version of the application programs. The method has simple operation flow, can configure the application program style and the page structure without changing the application program code, can ensure the stability of the whole system by modifying or upgrading the page according to the staged page updating information, and can find and adjust the problems and control the influence range at the initial stage of using the updated page.
It should be noted that, for the convenience of description, the foregoing method embodiments are described as a series of acts, but those skilled in the art will appreciate that the present invention is not limited by the order of acts described, and that some steps may in fact be performed in other orders or concurrently. Moreover, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no acts or modules are necessarily required to implement the invention.
To facilitate a better implementation of the above-described aspects of embodiments of the present invention, the following also provides relevant means for implementing the above-described aspects.
Referring to fig. 4, an application updating apparatus 400 according to an embodiment of the present invention may include: a configuration acquisition unit 401 and an update unit 402.
The configuration acquiring unit 401 may be configured to acquire navigation bar configuration information and/or staged page update information for an application program, which are issued by a console; wherein the navigation bar is located in a bar controller of the application program, the navigation bar includes at least one tag for controlling a page of the application program, and the configuration information of the navigation bar includes: the style updating information and/or the full-scale page updating information of the navigation bar; the update unit 402 may be configured to: updating the navigation bar according to the style updating information of the navigation bar; and/or updating the application program page controlled by the label according to the stage type page updating information or the full-scale page updating information.
In the embodiment of the present invention, the style update information of the navigation bar includes: updating information of the background picture of the navigation bar and/or updating information of the style of the label, wherein the updating information of the style of the label comprises the updating information of the title, the picture and/or the corner mark of the label; the full-amount page updating information is information sent by the console to a plurality of clients in a preset range, and the information comprises a label title corresponding to a page to be updated and the type and the identification of a preset updated page; the stage type page updating information is information sent by the console to a client side with a preset proportion in the plurality of client sides, and the information comprises a label title corresponding to a page to be updated and a preset type and an identification of the updated page.
In a specific application, the configuration obtaining unit 401 is further configured to: when an application program is started or switched from a background to a foreground, acquiring navigation bar configuration information and/or stage type page updating information which are issued by a control console and aim at the application program; the updating unit 402 is further configured to: and when the stage page updating information or the full-scale page updating information is acquired, calling a view controller corresponding to a label title included in the information, and creating a page by the view controller according to the type and the identification of the updated page included in the information.
As a preferred solution, the method can be applied to an iOS system; the type of page includes at least one of: a Native page, an H5 page, a read Native page; the identification of the Native page is the class name of the view controller corresponding to the page, the identification of the H5 page is the link address of the page, and the identification of the real Native page is the name of the page module.
Fig. 5 is a schematic diagram of a component of a data transmitting apparatus according to an embodiment of the present invention, and as shown in fig. 5, the data transmitting apparatus 500 according to the embodiment of the present invention may include a first transmitting unit 501 and/or a second transmitting unit 502.
The first sending unit 501 is configured to: determining style update information for an application navigation bar, the navigation bar being in a columnar controller of the application; generating navigation bar configuration information by using the style updating information, and sending the navigation bar configuration information to a client side which installs the application program so as to update the style of the navigation bar; the second sending unit 502 may be configured to: determining page update information for an application navigation bar, the navigation bar being in a columnar controller of the application; when page update information needs to be sent to a plurality of clients within a preset range: determining page updating information as full-scale page updating information, generating navigation bar configuration information by using the full-scale page updating information, and sending the navigation bar configuration information to the plurality of clients to update the pages controlled by the navigation bar; when page update information needs to be sent to clients with preset proportions in the multiple clients: and determining page updating information as staged page updating information, and sending the staged page updating information to the client with the preset proportion so as to update the page controlled by the navigation bar.
In the embodiment of the invention, the navigation bar comprises at least one tag for controlling the application program page; the style update information of the navigation bar includes: updating information of the background picture of the navigation bar and/or style updating information of the label; the apparatus 500 may further comprise a monitoring unit and a tag adding unit, the monitoring unit being operable to: after the stage type page updating information is sent to the client side with the preset proportion, collecting operation index data of the application program in the client side; when the operation index data meets a preset condition, sending the stage type page updating information to other clients in the plurality of clients; the tag addition unit may be configured to: and when the labels in the navigation bar need to be added, combining the style updating information of the labels to be added and the full page updating information corresponding to the labels to be added into navigation bar configuration information and sending the navigation bar configuration information to the plurality of clients.
Preferably, in the embodiment of the present invention, the style update information of the tag includes update information of a title, a picture and/or a corner mark of the tag; the full-scale page updating information and the staged page updating information comprise tag titles corresponding to the pages to be updated and preset types and identifications of the updated pages; the type of page includes at least one of: a Native page, an H5 page, a read Native page; the identification of the Native page is the class name of a view controller corresponding to the page, the identification of the H5 page is the link address of the page, and the identification of the read Native page is the name of a page module; when page update information needs to be sent to clients with preset proportions in the plurality of clients, the method comprises the following steps: when the page controlled by the navigation bar needs to be upgraded or repaired.
In the technical scheme of the embodiment of the invention, the navigation bar background and the style of each label can be flexibly changed as required by configuring the style updating information of the navigation bar of the column controller on the console and sending the navigation bar configuration information comprising the style updating information to the client; when an application program is online or a new page of the columnar controller is added, the console can send navigation bar configuration information including full page updating information to corresponding client sides in a preset range, so that each client side can display each page or the new page of the columnar controller; when a certain page controlled by the columnar controller goes wrong or needs to be upgraded, the console can send staged page updating information to clients with preset proportion in a preset range to modify or upgrade the corresponding page, meanwhile, the console collects operation index data of the application programs, and sends staged page updating information to more clients when the operation index data reach preset conditions, so that page display of the application programs is flexibly changed without releasing a new version of the application programs. The method has simple operation flow, can configure the application program style and the page structure without changing the application program code, can ensure the stability of the whole system by modifying or upgrading the page according to the staged page updating information, and can find and adjust the problems and control the influence range at the initial stage of using the updated page.
Fig. 6 illustrates an exemplary system architecture 600 of an application update method or apparatus and a data transmission method or apparatus to which embodiments of the present invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604 and a server 605 (this architecture is merely an example, and the components included in a specific architecture may be adjusted according to the specific application). The network 604 serves to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 601, 602, 603 to interact with the server 605 via the network 604 to receive or send messages or the like. Various client applications may be installed on the terminal devices 601, 602, 603.
The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 605 may be a server that provides various services, such as a console (for example only) that provides services to applications operated by users using the terminal devices 601, 602, 603. The console may process the received page update request and feed back the processing results (e.g., updated page information-by way of example only) to the terminal device 601, 602, 603.
It should be noted that the application updating method and apparatus provided by the embodiment of the present invention are generally associated with the terminal devices 601, 602, and 603, and the data sending method and apparatus are generally associated with the server 605.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The invention also provides the electronic equipment. The electronic device of the embodiment of the invention comprises: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the application program updating method or the data transmission method provided by the invention.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use with the electronic device implementing an embodiment of the present invention. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the computer system 700 are also stored. The CPU701, the ROM 702, and the RAM703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, the processes described in the main step diagrams above may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the main step diagram. In the above-described embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by the central processing unit 701, performs the above-described functions defined in the system of the present invention.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a configuration acquisition unit and an update unit. The names of these units do not constitute a limitation to the unit itself in some cases, and for example, the configuration acquisition unit may also be described as a "unit that transmits navigation bar configuration information and/or staged page update information to the update unit".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to perform steps comprising: acquiring navigation bar configuration information and/or stage type page updating information aiming at an application program, which is transmitted by a control console; wherein the navigation bar is located in a bar controller of the application program, the navigation bar includes at least one tag for controlling a page of the application program, and the configuration information of the navigation bar includes: the style updating information and/or the full-scale page updating information of the navigation bar; updating the navigation bar according to the style updating information of the navigation bar; and/or updating the application program page controlled by the label according to the stage type page updating information or the full-scale page updating information. The one or more programs, when executed by the apparatus, cause the apparatus to perform steps further comprising: determining style update information for an application navigation bar, the navigation bar being in a columnar controller of the application; generating navigation bar configuration information by using the style updating information, and sending the navigation bar configuration information to a client side which installs the application program so as to update the style of the navigation bar; and/or determining page update information for an application navigation bar, the navigation bar being in a columnar controller of the application; when page update information needs to be sent to a plurality of clients within a preset range: determining page updating information as full-scale page updating information, generating navigation bar configuration information by using the full-scale page updating information, and sending the navigation bar configuration information to the plurality of clients to update the pages controlled by the navigation bar; when page update information needs to be sent to clients with preset proportions in the multiple clients: and determining page updating information as staged page updating information, and sending the staged page updating information to the client with the preset proportion so as to update the page controlled by the navigation bar.
In the technical scheme of the embodiment of the invention, the navigation bar background and the style of each label can be flexibly changed as required by configuring the style updating information of the navigation bar of the column controller on the console and sending the navigation bar configuration information comprising the style updating information to the client; when an application program is online or a new page of the columnar controller is added, the console can send navigation bar configuration information including full page updating information to corresponding client sides in a preset range, so that each client side can display each page or the new page of the columnar controller; when a certain page controlled by the columnar controller goes wrong or needs to be upgraded, the console can send staged page updating information to clients with preset proportion in a preset range to modify or upgrade the corresponding page, meanwhile, the console collects operation index data of the application programs, and sends staged page updating information to more clients when the operation index data reach preset conditions, so that page display of the application programs is flexibly changed without releasing a new version of the application programs. The method has simple operation flow, can configure the application program style and the page structure without changing the application program code, can ensure the stability of the whole system by modifying or upgrading the page according to the staged page updating information, and can find and adjust the problems and control the influence range at the initial stage of using the updated page.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. An application program update method, comprising:
acquiring navigation bar configuration information and/or stage type page updating information aiming at an application program, which is transmitted by a control console; wherein the content of the first and second substances,
the navigation bar is arranged in a bar controller of the application program, the navigation bar comprises at least one label used for controlling the page of the application program, and the configuration information of the navigation bar comprises: the style updating information and/or the full-scale page updating information of the navigation bar;
updating the navigation bar according to the style updating information of the navigation bar; and/or updating the application program page controlled by the label according to the stage type page updating information or the full-scale page updating information.
2. The method of claim 1,
the style update information of the navigation bar includes: updating information of the background picture of the navigation bar and/or updating information of the style of the label, wherein the updating information of the style of the label comprises the updating information of the title, the picture and/or the corner mark of the label;
the full-amount page updating information is information sent by the console to a plurality of clients in a preset range, and the information comprises a label title corresponding to a page to be updated and the type and the identification of a preset updated page;
the stage type page updating information is information sent by the console to a client side with a preset proportion in the plurality of client sides, and the information comprises a label title corresponding to a page to be updated and a preset type and an identification of the updated page.
3. The method of claim 2, wherein obtaining navigation bar configuration information and/or staged page update information for an application program issued by a console comprises:
when an application program is started or switched from a background to a foreground, acquiring navigation bar configuration information and/or stage type page updating information which are issued by a control console and aim at the application program;
updating the application page controlled by the label according to the stage page update information or the full-scale page update information, comprising:
and when the stage page updating information or the full-scale page updating information is acquired, calling a view controller corresponding to a label title included in the information, and creating a page by the view controller according to the type and the identification of the updated page included in the information.
4. The method according to claim 2 or 3,
the method is applied to the iOS system;
the type of page includes at least one of: a Native page, an H5 page, a read Native page;
the identification of the Native page is the class name of the view controller corresponding to the page, the identification of the H5 page is the link address of the page, and the identification of the real Native page is the name of the page module.
5. A data transmission method is applied to a console, and is characterized by comprising the following steps:
determining style update information for an application navigation bar, the navigation bar being in a columnar controller of the application;
generating navigation bar configuration information by using the style updating information, and sending the navigation bar configuration information to a client side which installs the application program so as to update the style of the navigation bar;
and/or the presence of a gas in the gas,
determining page update information for an application navigation bar, the navigation bar being in a columnar controller of the application;
when page update information needs to be sent to a plurality of clients within a preset range: determining page updating information as full-scale page updating information, generating navigation bar configuration information by using the full-scale page updating information, and sending the navigation bar configuration information to the plurality of clients to update the pages controlled by the navigation bar;
when page update information needs to be sent to clients with preset proportions in the multiple clients: and determining page updating information as staged page updating information, and sending the staged page updating information to the client with the preset proportion so as to update the page controlled by the navigation bar.
6. The method of claim 5,
the navigation bar comprises at least one label used for controlling an application program page;
the style update information of the navigation bar includes: updating information of the background picture of the navigation bar and/or style updating information of the label;
the method further comprises:
after the stage type page updating information is sent to the client side with the preset proportion, collecting operation index data of the application program in the client side;
when the operation index data meets a preset condition, sending the stage type page updating information to other clients in the plurality of clients;
and when the labels in the navigation bar need to be added, combining the style updating information of the labels to be added and the full page updating information corresponding to the labels to be added into navigation bar configuration information and sending the navigation bar configuration information to the plurality of clients.
7. The method of claim 6,
the style updating information of the label comprises the updating information of the title, the picture and/or the corner mark of the label;
the full-scale page updating information and the staged page updating information comprise tag titles corresponding to the pages to be updated and preset types and identifications of the updated pages;
the type of page includes at least one of: a Native page, an H5 page, a read Native page;
the identification of the Native page is the class name of a view controller corresponding to the page, the identification of the H5 page is the link address of the page, and the identification of the read Native page is the name of a page module;
when page update information needs to be sent to clients with preset proportions in the plurality of clients, the method comprises the following steps: when the page controlled by the navigation bar needs to be upgraded or repaired.
8. An application program update apparatus, comprising:
the configuration acquisition unit is used for acquiring navigation bar configuration information and/or staged page updating information aiming at the application program and issued by the console; wherein the content of the first and second substances,
the navigation bar is arranged in a bar controller of the application program, the navigation bar comprises at least one label used for controlling the page of the application program, and the configuration information of the navigation bar comprises: the style updating information and/or the full-scale page updating information of the navigation bar;
an update unit configured to: updating the navigation bar according to the style updating information of the navigation bar; and/or updating the application program page controlled by the label according to the stage type page updating information or the full-scale page updating information.
9. A data transmission apparatus applied to a console, comprising:
a first sending unit configured to: determining style update information for an application navigation bar, the navigation bar being in a columnar controller of the application; generating navigation bar configuration information by using the style updating information, and sending the navigation bar configuration information to a client side which installs the application program so as to update the style of the navigation bar; and/or the presence of a gas in the gas,
a second transmitting unit configured to: determining page update information for an application navigation bar, the navigation bar being in a columnar controller of the application; when page update information needs to be sent to a plurality of clients within a preset range: determining page updating information as full-scale page updating information, generating navigation bar configuration information by using the full-scale page updating information, and sending the navigation bar configuration information to the plurality of clients to update the pages controlled by the navigation bar; when page update information needs to be sent to clients with preset proportions in the multiple clients: and determining page updating information as staged page updating information, and sending the staged page updating information to the client with the preset proportion so as to update the page controlled by the navigation bar.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202010010261.7A 2020-01-06 2020-01-06 Application program updating method and device and data sending method and device Pending CN113076118A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010010261.7A CN113076118A (en) 2020-01-06 2020-01-06 Application program updating method and device and data sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010010261.7A CN113076118A (en) 2020-01-06 2020-01-06 Application program updating method and device and data sending method and device

Publications (1)

Publication Number Publication Date
CN113076118A true CN113076118A (en) 2021-07-06

Family

ID=76608969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010010261.7A Pending CN113076118A (en) 2020-01-06 2020-01-06 Application program updating method and device and data sending method and device

Country Status (1)

Country Link
CN (1) CN113076118A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100115452A1 (en) * 2008-11-03 2010-05-06 Novarra, Inc. Methods and Systems for Providing Navigation Bars in a Client Browser for a Client Device
CN103246529A (en) * 2012-02-13 2013-08-14 腾讯科技(深圳)有限公司 Method, equipment and system for updating and pushing navigation bar
CN107092652A (en) * 2017-03-14 2017-08-25 口碑控股有限公司 The air navigation aid and device of target pages
CN109558162A (en) * 2017-09-26 2019-04-02 腾讯科技(深圳)有限公司 Application issued method, apparatus, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100115452A1 (en) * 2008-11-03 2010-05-06 Novarra, Inc. Methods and Systems for Providing Navigation Bars in a Client Browser for a Client Device
CN103246529A (en) * 2012-02-13 2013-08-14 腾讯科技(深圳)有限公司 Method, equipment and system for updating and pushing navigation bar
CN107092652A (en) * 2017-03-14 2017-08-25 口碑控股有限公司 The air navigation aid and device of target pages
CN109558162A (en) * 2017-09-26 2019-04-02 腾讯科技(深圳)有限公司 Application issued method, apparatus, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曾钰;张继贤;李海涛;江娜;: "土地利用基础图件更新技术体系研究与软件系统构建", 测绘科学, no. 04, 20 July 2008 (2008-07-20) *

Similar Documents

Publication Publication Date Title
CN107656748B (en) Application publishing method and device
CN101944032A (en) Microware updating method, client, server and system
CN111294395A (en) Terminal page transmission method, device, medium and electronic equipment
CN109726038B (en) Method and apparatus for managing virtual machines
CN112486482A (en) Page display method and device
CN113157270A (en) Page adaptation method and device
CN112597134B (en) Configuration method, device, electronic equipment and medium of distributed configuration center
CN114756228A (en) Page processing method, device, equipment and storage medium
CN105574114A (en) On-line plotting method based on telecom resource management standard control library
CN113254043A (en) Web front-end project processing method and device, electronic equipment and storage medium
CN113760278A (en) Page management method and device
US10713064B2 (en) User interface configuration using activator fields
CN113076118A (en) Application program updating method and device and data sending method and device
CN115982148A (en) Database table processing method and device, electronic equipment and storage medium
CN113434233B (en) Interface jump method and device, storage medium and electronic device
CN111767495A (en) Method and system for synthesizing webpage
CN106156308B (en) Local updating method and system for webpage
CN113326079A (en) Service version switching method, switching device, electronic equipment and storage medium
CN112947918A (en) Data display method and device
US10990750B2 (en) Dynamically bundling web page resources
CN112835962A (en) Information display method and device, electronic equipment and storage medium
CN112579447A (en) Browser testing method and device
CN113515328A (en) Page rendering method and device, electronic equipment and storage medium
CN113378346A (en) Method and device for model simulation
CN112966201A (en) Object processing method, 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