CN115348352A - Page access method and system - Google Patents

Page access method and system Download PDF

Info

Publication number
CN115348352A
CN115348352A CN202210855330.3A CN202210855330A CN115348352A CN 115348352 A CN115348352 A CN 115348352A CN 202210855330 A CN202210855330 A CN 202210855330A CN 115348352 A CN115348352 A CN 115348352A
Authority
CN
China
Prior art keywords
page
client
task processing
application
offline
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
CN202210855330.3A
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.)
Dingtalk China Information Technology Co Ltd
Original Assignee
Dingtalk China 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 Dingtalk China Information Technology Co Ltd filed Critical Dingtalk China Information Technology Co Ltd
Priority to CN202210855330.3A priority Critical patent/CN115348352A/en
Publication of CN115348352A publication Critical patent/CN115348352A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

One or more embodiments of the present specification provide a page access method, which is applied to a client, where at least application data corresponding to an offline application in a plurality of user applications included in a task processing page provided by the client for a user is stored in cache data of the client, and the method includes: responding to an access operation aiming at a task processing page triggered by a user, and determining whether the network condition of the terminal equipment where the client is positioned meets a degradation condition aiming at the task processing page; the task processing page comprises a plurality of user applications; the plurality of user applications comprise offline applications; if so, reading application data corresponding to the offline application from the cache data of the client; performing visual rendering based on the read application data corresponding to the offline application, generating a degraded page corresponding to the task processing page, and outputting and displaying the degraded page to the user; wherein the demoted page does not include the non-offline application or the non-offline application included in the demoted page is in an inoperable state.

Description

Page access method and system
Technical Field
One or more embodiments of the present disclosure relate to the field of application technologies, and in particular, to a page access method and system.
Background
With the development of electronic technology, clients provide users with more and more various applications, and in order to facilitate the users to use application functions, some applications are uniformly placed in one page, and an access portal of the page is provided on the client. And the user can access the page through the entrance, and then the applications can be quickly used on the page, so that the user experience is greatly improved.
Disclosure of Invention
The application provides a page access method, which is applied to a client, wherein at least application data corresponding to an offline application in a plurality of user applications included in a task processing page provided by the client facing a user is stored in cache data of the client, and the method comprises the following steps:
responding to an access operation which is triggered by a user and aims at the task processing page, and determining whether the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page; the task processing page comprises a plurality of user applications; the user applications comprise offline applications;
if the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page, reading application data corresponding to the offline application from cache data of the client;
performing visual rendering based on the read application data corresponding to the offline application, generating a degraded page corresponding to the task processing page, and outputting and displaying the degraded page to the user; wherein the demoted page does not include a non-offline application or the non-offline application included in the demoted page is in an inoperable state.
Optionally, a data synchronization channel is maintained between the client and the server;
responding to an access operation aiming at the task processing page triggered by a user, and before determining whether the network condition of the terminal equipment where the client is located meets a degradation condition aiming at the task processing page, the method further comprises the following steps:
in response to the user successfully logging in the client, synchronizing application data corresponding to the user applications from the server based on the data synchronization channel; the application data corresponding to the user applications at least comprises application data corresponding to offline applications in the user applications.
Optionally, the client includes: enterprise instant messaging client; the task processing page comprises a working page corresponding to a mobile office platform provided by the enterprise instant messaging client side for the user.
Optionally, determining whether the network condition of the terminal device where the client is located meets a degradation condition for the task processing page includes:
sending a page acquisition request corresponding to the task processing page to a page server, and determining whether response data corresponding to the page acquisition request returned by the server is received within a preset time length;
and if response data corresponding to the page acquisition request returned by the server is not received within a preset time length, determining that the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page.
Optionally, determining whether the network condition of the terminal device where the client is located meets a degradation condition for the task processing page includes:
determining whether the terminal equipment where the client is located is accessed to the Internet,
and if the terminal equipment where the client is located does not access the Internet, determining that the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page.
Optionally, the client side is loaded with a preset offline applet for acquiring client side cache data;
the reading of the application data corresponding to the offline application from the cache data of the client includes:
and starting the off-line small program, and reading application data corresponding to the off-line application from the cache data of the client by the off-line small program.
Optionally, performing visual rendering based on the read application data corresponding to the offline application, and generating a degraded page corresponding to the task processing page, includes:
performing visual rendering based on the read application data corresponding to the offline application, generating the task processing page including the access entries of the plurality of user applications, and setting the access entries of the user applications, except the offline application, in the plurality of user applications included in the task processing page as inoperable; alternatively, the first and second electrodes may be,
and performing visual rendering based on the read application data corresponding to the offline application, and generating the task processing page only containing the access entrance of the offline application.
Optionally, the application data includes:
page data for rendering an access entry corresponding to the offline application at the demoted page; and running data for running the offline application.
The present application further provides a page access system, which is applied to a client, where the cache data of the client stores login data and application data, and the system includes:
the determining unit is used for responding to an access operation, triggered by a user, of a task processing page provided by the client facing the user, and determining whether the network condition of the terminal equipment where the client is located meets the degradation condition of the task processing page; the task processing page comprises a plurality of user applications; the user applications comprise offline applications;
the reading unit is used for reading application data corresponding to the offline application from the cache data of the client if the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page;
the rendering unit is used for performing visual rendering based on the read application data corresponding to the offline application, generating a degraded page corresponding to the task processing page, and outputting and displaying the degraded page to the user; wherein the demoted page does not include a non-offline application or the non-offline application included in the demoted page is in an inoperable state.
Optionally, the determining unit is further configured to:
in response to the user successfully logging in the client, synchronizing application data corresponding to the user applications from the server based on the data synchronization channel; the application data corresponding to the user applications at least comprises application data corresponding to offline applications in the user applications.
Optionally, the client includes an enterprise instant messaging client; the task processing page comprises a working page corresponding to a mobile office platform provided by the enterprise instant messaging client side for the user.
Optionally, the determining unit is specifically configured to:
sending a page acquisition request corresponding to the task processing page to a page server, and determining whether response data corresponding to the page acquisition request returned by the server is received within a preset time length;
and if response data corresponding to the page acquisition request returned by the server is not received within a preset time length, determining that the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page.
Optionally, the determining unit is specifically configured to:
determining whether the terminal equipment where the client is located is accessed to the Internet,
and if the terminal equipment where the client is located does not access the Internet, determining that the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page.
Optionally, the client side is loaded with a preset offline applet for acquiring client side cache data;
the reading unit is specifically configured to:
and starting the off-line small program, and reading application data corresponding to the off-line application from the cache data of the client by the off-line small program.
Optionally, the rendering unit is specifically configured to:
performing visual rendering based on the read application data corresponding to the offline application, generating the task processing page including the access entries of the plurality of user applications, and setting the access entries of the user applications, except the offline application, in the plurality of user applications included in the task processing page as inoperable; alternatively, the first and second electrodes may be,
and performing visual rendering based on the read application data corresponding to the offline application, and generating the task processing page only containing the access entrance of the offline application.
Optionally, the application data includes page data used for rendering an access entry corresponding to the offline application on the degraded page; and running data for running the offline application.
Through the embodiment, when the network condition of the terminal equipment where the client is located meets the degradation condition of the task processing page, the application data corresponding to the offline application contained in the task processing page is read from the cache data of the client, and visual rendering is performed based on the read application data corresponding to the offline application, so that the task processing page containing the degradation of the offline application is generated, and therefore a user can still normally access the task processing page and normally use the offline application contained in the page when the network condition is poor.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and it is obvious for a person skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a schematic diagram of the architecture of a page access system in one embodiment of the present specification;
FIG. 2 is a flow chart of a page access method in one embodiment of the present description;
FIG. 3 is a schematic diagram of a page access scenario in an embodiment of the present specification;
FIG. 4 is a diagram illustrating a scenario of page access in an embodiment of the present specification;
FIG. 5 is a schematic view of a page access scenario in an embodiment of the present specification;
FIG. 6 is a diagram illustrating a scenario of page access in an embodiment of the present specification;
fig. 7 is a schematic structural diagram of an electronic device in which a page access apparatus is located in an embodiment of the present specification;
fig. 8 is a block diagram of a page access apparatus in an embodiment of the present specification.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of one or more embodiments of the specification, as detailed in the claims that follow.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described herein. In some other embodiments, the method may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
In order to make those skilled in the art better understand the technical solution in the embodiment of the present specification, a brief description will be given below of the related art of page access related to the embodiment of the present specification.
In order to facilitate the user to use the application function, the client uniformly places some applications which are frequently used by the user in a task processing page, and provides an access entry of the task processing page for the user, so that the user can access the task processing page through the access entry and then can use the applications in the task processing page.
Among them, the applications in the task processing page may generally include two types:
one of the applications is an online application which can normally run only by acquiring application data from a server in real time; for example: such as video conferencing, teleconferencing, and the like.
The other is offline application which can be used in an offline state without acquiring application data from a server in real time; for example: such as attendance opening, logging, etc.
In practical applications, when a user accesses the task processing page provided by the client to the user, the user usually needs to rely on a network accessed by the terminal device where the client is located, and once the network condition of the terminal device where the client is located is poor, the user can load the data slowly or even cannot load the data when accessing the page. Because the applications in the task processing page also include some offline applications that can run normally without acquiring application data from the server, in this case, the use of the offline applications that can still be used normally is abnormal under the condition of poor network conditions.
For example: in the task management page, the offline application such as attendance card punching generally does not depend on the network to acquire server data in real time, so that the server data can be punched normally under poor network conditions.
In view of the above, the present specification aims to provide a technical solution for normally accessing offline applications included in a task processing page when a network condition of a terminal device where a client is located is bad.
When the method is implemented, at least application data corresponding to offline applications in a plurality of user applications included in a task processing page provided by the client to a user are stored in cache data of the client.
When a user accesses the task processing page, the client can respond to the access operation aiming at the task processing page triggered by the user and determine whether the network condition of the terminal equipment where the client is positioned meets the degradation condition aiming at the task processing page; the task processing page may include a plurality of user applications; the plurality of user applications may include offline applications;
further, if the network condition of the terminal device where the client is located meets the degradation condition for the task processing page, the application data corresponding to the offline application can be read from the cache data of the client, visual rendering is performed based on the read application data corresponding to the offline application, a degradation page corresponding to the task processing page is generated, and the degradation page is output and displayed to the user; wherein the demoted page does not include a non-offline application or the non-offline application included in the demoted page is in an inoperable state.
In the technical scheme, when the network condition of the terminal device where the client is located meets the degradation condition of the task processing page, the application data corresponding to the offline application included in the task processing page is read from the cache data of the client, and visual rendering is performed based on the read application data corresponding to the offline application, so that the degraded task processing page including the offline application is generated, and therefore, when the network condition is poor, a user can still normally access the task processing page and normally use the offline application included in the page.
Fig. 1 is a schematic diagram of an architecture of a page access system according to an exemplary embodiment.
As shown in fig. 1, the system may include a network 10, a server 11, a number of electronic devices, such as a cell phone 12, a cell phone 13, a cell phone 14, and so on.
The server 11 may be a physical server comprising an independent host, or the server 11 may be a virtual server, a cloud server, etc. carried by a cluster of hosts. Handsets 12-14 are just one type of electronic device that a user may use. In fact, it is obvious that the user can also use electronic devices of the type such as: tablet devices, notebook computers, personal Digital Assistants (PDAs), wearable devices (e.g., smart glasses, smart watches, etc.), etc., which are not limited by one or more embodiments of the present disclosure. The mobile phones 12-14 may be installed with client programs, and the client programs may provide a task processing page to the user, where the task processing page may include a plurality of user applications for the user to access. The network 10 may comprise various types of wired or wireless networks.
In one embodiment, the server 11 may cooperate with clients installed on the handsets 12-14; the application data related to the offline application in each user application included in the task processing page can be acquired from the server 11 through the network 10 by the mobile phone 12-14 and stored in the cache data, and then when the user accesses the task processing page, the client installed on the mobile phone 12-14 can read the application data corresponding to the offline application from the cache data and perform visual rendering based on the read application data corresponding to the offline application when it is determined that the network condition of the mobile phone 12-14 meets the degradation condition for the task processing page based on the page access method of the present specification, so as to generate a degradation page corresponding to the task processing page, and output and display the degradation page to the user.
The technical solution in this specification is described below by using specific embodiments and combining specific application scenarios.
FIG. 2 is a flowchart of a page access method provided by an exemplary embodiment. As shown in fig. 2, the method is applied to a client, which may be, for example, a client program installed on the cell phones 12-14 shown in fig. 1. The method may comprise the steps of:
s202: responding to an access operation aiming at a task processing page triggered by a user, and determining whether the network condition of a terminal device where a client is positioned meets a degradation condition aiming at the task processing page; the task processing page comprises a plurality of user applications; the user applications comprise offline applications;
the client may present the user with a task processing page that contains several user applications. The task processing page may be any form of function page for centrally managing and accessing the user applications.
In one illustrated embodiment, the client may be an enterprise instant messaging client. In this case, the task processing page may be a work page corresponding to a mobile office platform provided by the enterprise instant messaging client for the user.
For example, as shown in fig. 3, fig. 3 is a schematic diagram of a work page corresponding to a mobile office platform provided by the instant messaging client to a user, and the user accesses the work page by clicking a function button in the middle of the bottom of the page.
Of course, in practical applications, the function page may be a page other than the work page, and is not listed in this specification.
The task processing page comprises a plurality of user applications including an online application and an offline application. The online application may be a user application that needs to obtain data from a server in real time to run, for example: the offline application may be a user application that can run without acquiring server data in real time and reading local cache data, such as: checking work attendance, checking and approving, logging and the like.
When the user accesses the task processing page, whether the network condition meets the degradation condition aiming at the task processing page is determined. The determining whether the network condition meets the degradation condition may be performed by sending a page acquisition request corresponding to the task processing page to a page server, determining whether response data corresponding to the page acquisition request returned by the server is received within a preset time period, and determining whether the network condition is a weak network, and determining whether the network condition is a network-less network by determining whether a terminal device where the client is located is connected to the internet.
In an embodiment shown, when a user accesses the task processing page, the client may send a page obtaining request corresponding to the task processing page to the page server, determine whether response data corresponding to the page obtaining request returned by the server is received within a preset time length to determine a network condition, and if not, determine that the network condition is a weak network, where the network condition meets the degradation condition, where the preset time length may be any time length set according to actual needs, and the preset time length may also be a preset number of times, for example: and the client continuously sends the page acquisition request to the page server, determines whether response data corresponding to the page acquisition request returned by the server is received within preset times, and if so, determines that the network condition is a weak network.
In an embodiment shown, when the user accesses the task processing page, it may detect whether the terminal device where the client is located is connected to the internet, to determine a network condition, and if not, determine that the network condition is wireless, where the wireless network condition satisfies the degradation condition.
For example: and determining whether the terminal equipment of the client opens a switch connected with the network or determining that the terminal equipment is in an environment in which network signals are shielded.
In practical applications, the above-mentioned manner of determining whether the network condition satisfies the degradation condition may be other manners besides the above-mentioned determination manner, and is not listed in this specification.
S204: if the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page, reading application data corresponding to the offline application from cache data of the client;
in practical applications, when a user accesses a task processing page, application data of the user application in the task processing page is synchronized from a server to a local place online by a client based on a network connection with the server.
In order to avoid that the page cannot be loaded normally due to poor network condition of the client, the data synchronization process when the task processing page is accessed may be improved in this specification, and when the user accesses the page, the client may not synchronize data online from the server based on the network connection with the server any more, but may perform offline synchronization in the process of the user logging in the client.
In one embodiment, a data synchronization channel can be generally maintained between the client and the server; the data synchronization channel is used for synchronizing data between the client and the server. In the process of logging in the client, the client can utilize the data synchronization channel to perform some login interaction with the server so as to complete the login process. In this specification, after the user successfully logs in the client, the application data corresponding to the user applications may be synchronized to the client cache data based on the data synchronization channel. The data synchronization channel may be a data synchronization channel created based on a synchronization protocol supported by the client. It should be noted that the data synchronization channel may specifically be a data synchronization channel of multiple terminals; for example: taking the client as a nail as an example, the data synchronization channel may be a data synchronization channel supported by a mobile terminal nail, a PC terminal nail, a server, and the like.
In practical applications, the client may generally perform data synchronization in a push (push) and pull (pull) combined manner in the process of synchronizing data from the server based on the data synchronization channel. The push-pull combination mode refers to that the client can comprehensively adopt two modes, namely a pull mode and a push mode, and data is synchronized from the server. The pull mode refers to a data synchronization mode in which the client actively obtains the application data corresponding to the user applications from the server by sending a request to the server. The push mode refers to a data synchronization mode in which the server actively pushes application data corresponding to the user applications to the client after the user successfully logs in the client.
By the method, after a user logs in the client, the client can multiplex a data synchronization channel kept between the client and the server, and the application data corresponding to the user application required by page access is efficiently synchronized to the local by adopting a push-pull combination mode and is pre-stored in the client cache data.
For example, in practical applications, when the client multiplexes the data synchronization channel and synchronizes the application data corresponding to the user applications from the server in a push-pull combination manner, the application data corresponding to one part of the user applications is specifically synchronized to the local in a push mode, and the user data corresponding to another part of the user applications may also be synchronized to the local in a pull mode. Because the push mode and the pull mode can be adopted in parallel to synchronize the data, the data synchronization efficiency is obviously higher compared with the case that the client side adopts only a single synchronization mode to synchronize the data from the server side.
When the user accesses the page, the application data corresponding to the offline application can be read from the cache, and real-time synchronization does not need to be performed from the server.
In an embodiment shown, the client may be loaded with a preset offline applet for obtaining the client cache data. In this case, the client may specifically start the offline applet when reading the application data corresponding to the offline application from the cache data of the client, and the offline applet reads the application data from the cache data of the client when the network condition is not good.
By the method, the application data corresponding to the offline application can be read when the network condition is poor.
S206: performing visual rendering based on the read application data corresponding to the offline application, generating a degraded page corresponding to the task processing page, and outputting and displaying the degraded page to the user; wherein the demoted page does not include a non-offline application or the non-offline application included in the demoted page is in an inoperable state
After reading application data corresponding to the offline application, the offline applet may perform visual rendering based on the application data and output a rendering result generated by the display, or perform rendering by a rendering program preset in the client cache data, which is not limited in this specification.
The application data may specifically include: page data for rendering an access entry corresponding to the offline application at the demoted page; and running data for running the offline application.
When the client performs visual rendering on the task processing page, a degraded page containing access entries of all applications can be rendered, for example: the icon may include only a demotion page of an access entry corresponding to an offline application, and is not particularly limited in this specification.
In an embodiment shown, the demotion page containing the access entries of all the applications may be a state in which the access entries of non-offline user applications other than the offline application in the contained user applications are set to be inoperable.
For example, as shown in fig. 4, in the common application column, icons of the teleconference and the video conference are set to be inoperable gray icons.
By the method, the original layout of the user application in the task processing page is not changed when the page is rendered, so that the page rendering efficiency can be improved, the system overhead in page rendering can be reduced, and the adaptation and learning cost of the user when the operation layout is changed in a new page can be reduced without changing the use habit of the user. Moreover, because the non-offline application in the page is set to be in the inoperable state, the user can be prevented from continuously accessing the non-offline application in the page under the weak network or no network state, thereby avoiding the misoperation of the user,
in another embodiment shown, the demotion page that only includes the access entry corresponding to the offline application may be a very simple page that is rearranged from the offline application access entry.
For example, as shown in fig. 5, in the column of the common application, only an access entry for offline application attendance checking and logging exists.
By the method, the task processing page can be simpler and more visual.
In order to facilitate understanding of the process of implementing the above page access method, the present application is described in the present specification with reference to a specific example, where a user accesses an enterprise instant messaging client page as an example.
A user may click a function button in the middle of a function menu at the bottom of a main page of a client to access a task processing page, as shown in (1) in fig. 6, and display that the task processing page is being loaded after the click, as shown in (2) in fig. 6, at this time, the client sends a page acquisition request to a page server, and by determining whether response data corresponding to the page acquisition request is received within a preset time period, for example: setting the preset time length to be 1s, 2s, 3s, and the like to determine whether the current network condition is poor, where the specific time length may be set according to actual needs, and is not limited in this specification, or the client may continuously send a page acquisition request to the page server, and determine whether the current network condition is poor by determining whether response data corresponding to the page acquisition request is received within a preset number of times, for example, setting the preset number of times to be 10 times, 20 times, 30 times, and the like, and the specific number of times may also be set according to actual needs, and this specification is not limited in this way.
At this time, the network status may also be determined by detecting whether the terminal device where the client is located is accessed to the internet, for example, whether a column of network signals in the upper left corner of the terminal page is displayed in a no-service state or whether a network connection entry of the terminal is opened is checked, and the specific detection mode may also be other modes, which are not illustrated in this specification.
After determining that the terminal device where the client is located meets the degradation condition for processing the page for the task, the client starts an offline applet, as shown in (3) in fig. 6, where the offline applet can read application data corresponding to an offline application from client cache data, where the application data corresponding to the offline application includes page data used for rendering an access entry corresponding to the offline application and operation data used for operating the offline application.
The application data may be data that is synchronized to the client cache data based on a data synchronization channel for performing data synchronization with the server after the last network condition is good and the user successfully logs in. The data synchronization channel may be a data synchronization channel created by a synchronization protocol supported by the client, or may be a data synchronization channel of a multi-terminal, for example: the mobile terminal is nailed, the PC terminal is nailed, the server terminal is nailed, and the data synchronization channel is supported by three parties.
The task processing page may display a general page as shown in (3) in fig. 6, where the page includes access icons of all applications, where an inaccessible user application is marked as an inoperable gray icon, the inaccessible user application is an online application that needs to obtain data from a server in real time to run, and may display a very simple page as shown in (4) in fig. 6, where the page includes only an access icon corresponding to an offline application, and the offline application may be a user application that can run without obtaining server data in real time and reading locally cached data.
Corresponding to the embodiment of the page access method, the specification also provides an embodiment of a page access device.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device in which a page access apparatus is located in an embodiment of this specification. At the hardware level, the device includes a processor 702, an internal bus 704, a network interface 706, a memory 708, and a non-volatile storage 710, although other hardware required for the service may be included. One or more embodiments of the present description may be implemented in software, for example, by the processor 702 reading a corresponding computer program from the non-volatile storage 710 into the memory 708 and then running. Of course, besides software implementation, the one or more embodiments in this specification do not exclude other implementations, such as logic devices or combinations of software and hardware, and so on, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Referring to fig. 8, fig. 8 is a block diagram of a page access apparatus in an embodiment of the present disclosure. The page access device can be applied to the electronic device shown in fig. 7 to implement the technical solution of the present specification. The page access system is applied to a client, where the cache data of the client stores login data and application data, and may include:
the determining unit is used for responding to an access operation which is triggered by a user and aims at a task processing page provided by the client side to the user, and determining whether the network condition of the terminal equipment where the client side is located meets the degradation condition aiming at the task processing page; the task processing page comprises a plurality of user applications; the user applications comprise offline applications;
the reading unit is used for reading application data corresponding to the offline application from the cache data of the client if the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page;
the rendering unit is used for performing visual rendering based on the read application data corresponding to the offline application, generating a degraded page corresponding to the task processing page, and outputting and displaying the degraded page to the user; wherein the demoted page does not include a non-offline application or the non-offline application included in the demoted page is in an inoperable state.
In this embodiment, the determining unit may be configured to:
in response to the user successfully logging in the client, synchronizing application data corresponding to the user applications from the server based on the data synchronization channel; the application data corresponding to the user applications at least comprises application data corresponding to offline applications in the user applications.
The client comprises an enterprise instant messaging client; the task processing page comprises a working page corresponding to a mobile office platform provided by the enterprise instant messaging client side for the user.
The determining unit may be specifically configured to:
sending a page acquisition request corresponding to the task processing page to a page server, and determining whether response data corresponding to the page acquisition request returned by the server is received within a preset time length; and if response data corresponding to the page acquisition request returned by the server is not received within a preset time length, determining that the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page.
The determining unit may be specifically configured to:
and determining whether the terminal equipment where the client is located is accessed to the Internet, and if the terminal equipment where the client is located is not accessed to the Internet, determining that the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page.
The client side is loaded with a preset off-line small program for acquiring client side cache data;
the reading unit may specifically be configured to:
and starting the off-line small program, and reading application data corresponding to the off-line application from the cache data of the client by the off-line small program.
The rendering unit may specifically be configured to:
performing visual rendering based on the read application data corresponding to the offline application, generating the task processing page including the access entries of the plurality of user applications, and setting the access entries of the user applications, except the offline application, in the plurality of user applications included in the task processing page as inoperable; alternatively, the first and second electrodes may be,
and performing visual rendering based on the read application data corresponding to the offline application, and generating the task processing page only comprising the access entrance of the offline application.
The application data including page data for rendering an access entry corresponding to the offline application at the degraded page; and running data for running the offline application.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are only illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. It will also be apparent to those skilled in the art that hardware circuitry for implementing the logical method flows can be readily obtained by a mere need to program the method flows with some of the hardware description languages described above and into an integrated circuit.
The controller may be implemented in any suitable manner, and those skilled in the art will also appreciate that instead of implementing the controller in purely computer readable program code, the method steps may well be programmed logically to cause the controller to perform the same functions in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a server system. Of course, this application does not exclude that with future developments in computer technology, the computer implementing the functionality of the above described embodiments may be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device or a combination of any of these devices.
Although one or more embodiments of the present description provide method operational steps as described in the embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive approaches. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or end product executes, it may execute sequentially or in parallel (e.g., parallel processors or multi-threaded environments, or even distributed data processing environments) according to the method shown in the embodiment or the figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in processes, methods, articles, or apparatus that include the recited elements is not excluded. For example, the use of the terms first, second, etc. are used to denote names, but not to denote any particular order.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, when implementing one or more of the present description, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of multiple sub-modules or sub-units, etc. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage, graphene storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In the description of the present specification, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The above description is merely exemplary of one or more embodiments of the present disclosure and is not intended to limit the scope of one or more embodiments of the present disclosure. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present specification should be included in the scope of the claims.

Claims (11)

1. A page access method is applied to a client, wherein at least application data corresponding to an offline application in a plurality of user applications included in a task processing page provided by the client for a user is stored in cache data of the client, and the method comprises the following steps:
responding to an access operation which is triggered by a user and aims at the task processing page, and determining whether the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page; the task processing page comprises a plurality of user applications; the user applications comprise offline applications;
if yes, reading application data corresponding to the offline application from the cache data of the client;
performing visual rendering based on the read application data corresponding to the offline application, generating a degraded page corresponding to the task processing page, and outputting and displaying the degraded page to the user; wherein the demoted page does not include a non-offline application or the non-offline application included in the demoted page is in an inoperable state.
2. The method of claim 1, wherein a data synchronization channel is maintained between the client and the server;
responding to an access operation aiming at the task processing page triggered by a user, and before determining whether the network condition of the terminal equipment where the client is located meets a degradation condition aiming at the task processing page, the method further comprises the following steps:
in response to the user successfully logging in the client, synchronizing application data corresponding to the user applications from the server based on the data synchronization channel; the application data corresponding to the user applications at least comprises application data corresponding to offline applications in the user applications.
3. The method of claim 1, the client, comprising: enterprise instant messaging client;
the task processing page comprises a working page corresponding to a mobile office platform provided by the enterprise instant messaging client side for the user.
4. The method of claim 1, wherein determining whether the network condition of the terminal device where the client is located meets a degradation condition for the task processing page comprises:
sending a page acquisition request corresponding to the task processing page to a page server, and determining whether response data corresponding to the page acquisition request returned by the server is received within a preset time length;
and if not, determining that the network condition of the terminal equipment where the client is positioned meets the degradation condition aiming at the task processing page.
5. The method of claim 1, wherein determining whether the network condition of the terminal device where the client is located meets a degradation condition for the task processing page comprises:
determining whether the terminal equipment of the client is accessed to the Internet or not,
and if not, determining that the network condition of the terminal equipment where the client is positioned meets the degradation condition aiming at the task processing page.
6. The method of claim 1, wherein the client side is loaded with a preset offline applet for obtaining client side cache data;
the reading of the application data corresponding to the offline application from the cache data of the client includes:
and starting the off-line small program, and reading application data corresponding to the off-line application from the cache data of the client by the off-line small program.
7. The method according to claim 1, performing visual rendering based on the read application data corresponding to the offline application, and generating a degraded page corresponding to the task processing page, including:
performing visual rendering based on the read application data corresponding to the offline application, generating the task processing page including the access entries of the plurality of user applications, and setting the access entries of the user applications, except the offline application, in the plurality of user applications included in the task processing page as inoperable; alternatively, the first and second electrodes may be,
and performing visual rendering based on the read application data corresponding to the offline application, and generating the task processing page only comprising the access entrance of the offline application.
8. The method of claim 1, the application data, comprising:
page data for rendering an access entry corresponding to the offline application at the demoted page; and running data for running the offline application.
9. A page access system is applied to a client, login data and application data are stored in cache data of the client, and the system comprises:
the determining unit is used for responding to an access operation which is triggered by a user and aims at a task processing page provided by the client side to the user, and determining whether the network condition of the terminal equipment where the client side is located meets the degradation condition aiming at the task processing page; the task processing page comprises a plurality of user applications; the user applications comprise offline applications;
the reading unit is used for reading application data corresponding to the offline application from the cache data of the client if the network condition of the terminal equipment where the client is located meets the degradation condition aiming at the task processing page;
the rendering unit is used for performing visual rendering based on the read application data corresponding to the offline application, generating a degraded page corresponding to the task processing page, and outputting and displaying the degraded page to the user; wherein the demoted page does not include a non-offline application or the non-offline application included in the demoted page is in an inoperable state.
10. An electronic device comprises a communication interface, a processor, a memory and a bus, wherein the communication interface, the processor and the memory are connected with each other through the bus;
the memory has stored therein machine-readable instructions, which the processor executes by calling to perform the method of any one of claims 1 to 8.
11. A machine-readable storage medium having stored thereon machine-readable instructions which, when invoked and executed by a processor, carry out the method of any of claims 1 to 8.
CN202210855330.3A 2022-07-19 2022-07-19 Page access method and system Pending CN115348352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210855330.3A CN115348352A (en) 2022-07-19 2022-07-19 Page access method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210855330.3A CN115348352A (en) 2022-07-19 2022-07-19 Page access method and system

Publications (1)

Publication Number Publication Date
CN115348352A true CN115348352A (en) 2022-11-15

Family

ID=83950330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210855330.3A Pending CN115348352A (en) 2022-07-19 2022-07-19 Page access method and system

Country Status (1)

Country Link
CN (1) CN115348352A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115966035A (en) * 2022-12-30 2023-04-14 武汉佰钧成技术有限责任公司 Card punching method and related equipment in weak network environment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115966035A (en) * 2022-12-30 2023-04-14 武汉佰钧成技术有限责任公司 Card punching method and related equipment in weak network environment

Similar Documents

Publication Publication Date Title
CN112748972B (en) Multi-task interface management method and electronic equipment
CN111324397A (en) Applet switching method, device, framework, equipment and readable medium
CN105376719A (en) Information pushing method and device
CN112346965A (en) Test case distribution method, device and storage medium
CN115348352A (en) Page access method and system
CN113157439B (en) Resource statistics method, device and terminal
WO2024109786A1 (en) Instant messaging session information processing method and apparatus, and electronic device
CN112256372B (en) Information processing method and device and electronic equipment
CN103810296A (en) Information management method, information management device and electronic equipment
CN113986063A (en) Display control method, display control device, electronic equipment and storage medium
CN112698793A (en) Data storage method and device, machine readable medium and equipment
CN111817944A (en) Picture sharing method and device and electronic equipment
CN111817945A (en) Method and equipment for replying communication information in instant communication application
US20210026913A1 (en) Web browser control feature
CN107168648B (en) File storage method and device and terminal
CN113992784B (en) Audio and video call method, device, computer equipment and storage medium
CN107301089B (en) APP deployment and calling method and terminal
CN113268179B (en) Session message processing method, device, equipment and storage medium
CN111698337B (en) Method, device and equipment for establishing communication connection
CN112416482B (en) Interface switching method and device
CN107256151A (en) Processing method, device and the terminal of page rendering
CN113747423A (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN113110846A (en) Method and device for acquiring environment variable
EP3977248B1 (en) Mobile terminal for managing one or more recently used applications, and a method for same
CN106599079B (en) Data processing method and corresponding mobile terminal

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