A page access method and system

By storing offline application data of task processing pages in the client cache data, and reading and rendering data from the cache when the network is in poor condition, the problem of users being unable to access offline applications is solved, and the effect of using offline applications can still be used normally under poor network conditions.

CN115348352BActive Publication Date: 2025-05-06DINGTALK (CHINA) INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210855330.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-19
Publication Date
2025-05-06
Estimated Expiration
2042-07-19

AI Technical Summary

Technical Problem

When the network condition of the client terminal device is not good, the user cannot access the offline application in the task processing page normally, resulting in the application being unable to use normally.

Method used

The offline application data contained in the task processing page is stored in the client cache data. When the terminal device's network condition is poor, offline application data is read from the cached data, and visually rendered to generate a downgrade page to ensure that users can access and use offline applications.

Benefits of technology

In the event of poor network conditions, users can still access and use offline applications in the task processing page normally, improving user experience and application availability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115348352B_ABST
    Figure CN115348352B_ABST
Patent Text Reader

Abstract

One or more embodiments of the present specification provide a page access method, which is applied to a client, wherein the cache data of the client at least stores application data corresponding to offline applications in several user applications included in a task processing page provided by the client to the user, including: responding to an access operation on the task processing page triggered by the user, determining whether the network status of a terminal device where the client is located meets the demotion condition for the task processing page; the task processing page includes several user applications; the several user applications include 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 the degraded page for display to the user; wherein the degraded page does not include non-offline applications or the non-offline applications included in the degraded page are in an inoperable state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of application technology, and in particular, to a page access method and system. Background Art

[0002] With the development of electronic technology, clients provide users with more and more various applications. In order to facilitate users to use application functions, some applications will be placed on a page and an access portal to the page will be provided on the client. Users can access the page through the portal and then use these applications quickly on the page, which greatly improves the user experience. Summary of the invention

[0003] The present application provides a page access method, which is applied to a client, wherein cache data of the client at least stores 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, and the method comprises:

[0004] In response to a user-triggered access operation to the task processing page, determining whether a network status of a terminal device where the client is located satisfies a degradation condition for the task processing page; the task processing page includes a plurality of user applications; the plurality of user applications include offline applications;

[0005] If the network status of the terminal device where the client is located meets the degradation condition for the task processing page, reading the application data corresponding to the offline application from the cache data of the client;

[0006] Based on the read application data corresponding to the offline application, visual rendering is performed to generate a degraded page corresponding to the task processing page, and the degraded page is output and displayed to the user; wherein the degraded page does not include a non-offline application or the non-offline application included in the degraded page is in an inoperable state.

[0007] Optionally, a data synchronization channel is maintained between the client and the server;

[0008] In response to the access operation triggered by the user to the task processing page, before determining whether the network status of the terminal device where the client is located meets the degradation condition for the task processing page, the method further includes:

[0009] In response to the user successfully logging into the client, the application data corresponding to the several user applications are synchronized from the server based on the data synchronization channel; wherein the application data corresponding to the several user applications at least includes application data corresponding to offline applications among the several user applications.

[0010] Optionally, the client includes: an enterprise instant messaging client; the task processing page includes a work page corresponding to a mobile office platform provided by the enterprise instant messaging client to the user.

[0011] Optionally, determining whether a network status of a terminal device where the client is located satisfies a degradation condition for the task processing page includes:

[0012] 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 period;

[0013] If response data corresponding to the page acquisition request returned by the server is not received within a preset time period, it is determined that the network status of the terminal device where the client is located meets the degradation condition for the task processing page.

[0014] Optionally, determining whether a network status of a terminal device where the client is located satisfies a degradation condition for the task processing page includes:

[0015] Determine whether the terminal device where the client is located is connected to the Internet,

[0016] If the terminal device where the client is located is not connected to the Internet, it is determined that the network status of the terminal device where the client is located meets the degradation condition for the task processing page.

[0017] Optionally, the client is equipped with a preset offline applet for obtaining client cache data;

[0018] The reading the application data corresponding to the offline application from the cache data of the client includes:

[0019] The offline applet is started, and the offline applet reads application data corresponding to the offline application from cache data of the client.

[0020] Optionally, performing visual rendering based on the read application data corresponding to the offline application to generate a degraded page corresponding to the task processing page includes:

[0021] Based on the read application data corresponding to the offline application, visual rendering is performed to generate the task processing page including the access entries of the several user applications, and the access entries of the user applications other than the offline application included in the several user applications included in the task processing page are set to be inoperable; or

[0022] Based on the read application data corresponding to the offline application, visual rendering is performed to generate the task processing page that only includes the access entry of the offline application.

[0023] Optionally, the application data includes:

[0024] The method further comprises: providing page data for rendering an access entry corresponding to the offline application on the degraded page; and providing running data for running the offline application.

[0025] The present application also provides a page access system, which is applied to a client, wherein the cache data of the client stores login data and application data, and the system comprises:

[0026] a determination unit, configured to respond to a user-triggered access operation to a task processing page provided by the client to the user, and determine whether a network status of a terminal device where the client is located satisfies a degradation condition for the task processing page; the task processing page includes a plurality of user applications; the plurality of user applications include offline applications;

[0027] A reading unit, configured to read application data corresponding to the offline application from cache data of the client if the network status of the terminal device where the client is located meets the degradation condition for the task processing page;

[0028] A rendering unit is used to perform visual rendering based on the read application data corresponding to the offline application, generate a degraded page corresponding to the task processing page, and output the degraded page to the user for display; wherein the degraded page does not include a non-offline application or the non-offline application included in the degraded page is in an inoperable state.

[0029] Optionally, the determining unit is further configured to:

[0030] In response to the user successfully logging into the client, the application data corresponding to the several user applications are synchronized from the server based on the data synchronization channel; wherein the application data corresponding to the several user applications at least includes application data corresponding to offline applications among the several user applications.

[0031] Optionally, the client includes an enterprise instant messaging client; the task processing page includes a work page corresponding to a mobile office platform provided by the enterprise instant messaging client to the user.

[0032] Optionally, the determining unit is specifically configured to:

[0033] 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 period;

[0034] If response data corresponding to the page acquisition request returned by the server is not received within a preset time period, it is determined that the network status of the terminal device where the client is located meets the degradation condition for the task processing page.

[0035] Optionally, the determining unit is specifically configured to:

[0036] Determine whether the terminal device where the client is located is connected to the Internet,

[0037] If the terminal device where the client is located is not connected to the Internet, it is determined that the network status of the terminal device where the client is located meets the degradation condition for the task processing page.

[0038] Optionally, the client is equipped with a preset offline applet for obtaining client cache data;

[0039] The reading unit is specifically used for:

[0040] The offline applet is started, and the offline applet reads application data corresponding to the offline application from cache data of the client.

[0041] Optionally, the rendering unit is specifically used to:

[0042] Based on the read application data corresponding to the offline application, visual rendering is performed to generate the task processing page including the access entries of the several user applications, and the access entries of the user applications other than the offline application included in the several user applications included in the task processing page are set to be inoperable; or

[0043] Based on the read application data corresponding to the offline application, visual rendering is performed to generate the task processing page that only includes the access entry of the offline application.

[0044] Optionally, the application data includes page data used to render an access entry corresponding to the offline application on the degraded page; and running data used to run the offline application.

[0045] Through the above embodiments, 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 contained in the task processing page is read from the cache data of the client, and visual rendering is performed based on the application data corresponding to the read offline application to generate a degraded task processing page containing the offline application, so that the user can still access the task processing page normally and use the offline application contained in the page normally when the network condition is poor. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0047] Figure 1 This is a schematic diagram of the architecture of a page access system in an embodiment of this specification;

[0048] Figure 2 is a flow chart of a page access method in one embodiment of this specification;

[0049] Figure 3 is a schematic diagram of a scene of page access in an embodiment of this specification;

[0050] Figure 4 is a schematic diagram of a scene of page access in an embodiment of this specification;

[0051] Figure 5 is a schematic diagram of a scene of page access in an embodiment of this specification;

[0052] Figure 6 is a schematic diagram of a scene of page access in an embodiment of this specification;

[0053] Figure 7 It is a schematic diagram of the structure of an electronic device where a page access device is located in an embodiment of this specification;

[0054] Figure 8 It is a block diagram of a page access device in one embodiment of this specification. DETAILED DESCRIPTION

[0055] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same 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 this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

[0056] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0057] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of this specification, the following briefly describes the relevant technologies for page access involved in the embodiments of this specification.

[0058] In order to facilitate users to use application functions, the client will place some of the users' more commonly used applications in a task processing page, and provide users with an access portal to the task processing page, so that users can access the task processing page through the access portal and then use these applications in the task processing page.

[0059] Among them, applications in the task processing page can generally include two types:

[0060] One type is online applications that need to obtain application data from the server in real time to run normally; for example: applications such as video conferencing and telephone conferencing.

[0061] The other type is offline applications that can be used offline without obtaining application data from the server in real time; for example: functions such as attendance opening and logging.

[0062] In actual applications, when users access the above task processing page provided by the client to users, they usually need to rely on the network to which the terminal device of the client is connected to synchronize data online from the server. Once the network condition of the terminal device of the client is poor, the page will load slowly or even fail to load when the user accesses it. Since the applications in the above task processing page also include some offline applications that can run normally without obtaining application data from the server, in this case, these offline applications that can still be used normally under poor network conditions will become abnormal.

[0063] For example, offline applications such as attendance clocking in on the above-mentioned task management page generally do not rely on the network to obtain server data in real time, so they can clock in normally even when the network conditions are poor. However, since the client page loading in the prior art relies on online synchronization of data with the network, it loads slowly or even fails to load when the network conditions are poor, causing the offline application to be unable to be used normally.

[0064] In view of this, the present specification aims to propose a technical solution for enabling normal access to offline applications included in a task processing page when the network condition of a terminal device where a client is located is poor.

[0065] During implementation, the cache data of the client at least stores application data corresponding to offline applications in a plurality of user applications included in the task processing page provided by the client to the user.

[0066] When the user accesses the task processing page, the client may respond to the access operation triggered by the user on the task processing page, and determine whether the network status of the terminal device where the client is located meets the degradation condition for the task processing page; the task processing page may include several user applications; the several user applications may include offline applications;

[0067] Furthermore, if the network condition of the terminal device where the client is located meets the downgrade condition for the task processing page, the application data corresponding to the offline application can be read from the cache data of the client, and based on the read application data corresponding to the offline application, visual rendering is performed to generate a downgraded page corresponding to the task processing page, and the downgraded page is output and displayed to the user; wherein, the downgraded page does not include non-offline applications or the non-offline applications included in the downgraded page are in an inoperable state.

[0068] In the above technical solution, 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 contained in the task processing page is read from the cache data of the client, and visual rendering is performed based on the application data corresponding to the read offline application to generate a degraded task processing page containing the offline application, so that the user can still access the task processing page normally and use the offline application contained in the page normally when the network condition is poor.

[0069] Figure 1 It is a schematic diagram of the architecture of a page access system provided by an exemplary embodiment.

[0070] like Figure 1As shown, the system may include a network 10, a server 11, and several electronic devices, such as a mobile phone 12, a mobile phone 13, and a mobile phone 14.

[0071] The server 11 may be a physical server including an independent host, or the server 11 may be a virtual server, a cloud server, etc. carried by a host cluster. The mobile phones 12-14 are just one type of electronic device that the user can use. In fact, the user may also use electronic devices such as tablet devices, laptops, PDAs (Personal Digital Assistants), wearable devices (such as smart glasses, smart watches, etc.), etc., and one or more embodiments of this specification do not limit this. Among them, a client program may be installed on the mobile phones 12-14, and the client program may provide a task processing page for the user, and the task processing page may include a number of user applications for the user to access. The network 10 may include various types of wired or wireless networks.

[0072] In one embodiment, the server 11 can cooperate with the client installed on the mobile phones 12-14; wherein, the mobile phones 12-14 can obtain the application data related to the offline applications in each user application contained in the above-mentioned task processing page from the server 11 through the network 10, and store it in the cache data. Then, when the user accesses the above-mentioned task processing page, the client installed on the mobile phones 12-14 can, based on the page access method of this specification, read the application data corresponding to the offline application from the cache data when it is determined that the network status of the mobile phone 12-14 meets the downgrade conditions for the task processing page, and perform visual rendering based on the read application data corresponding to the offline application, generate a downgraded page corresponding to the task processing page, and output the downgraded page to the user for display.

[0073] The technical solutions in this specification are described below through specific embodiments and in combination with specific application scenarios.

[0074] Figure 2 FIG. 1 is a flow chart of a page access method provided by an exemplary embodiment. Figure 2 As shown, the method is applied to a client, which can be, for example, Figure 1 The client program is installed on the mobile phones 12-14 shown. The method may include the following steps:

[0075] S202: In response to an access operation triggered by a user to a task processing page, determining whether a network condition of a terminal device where the client is located satisfies a degradation condition for the task processing page; the task processing page includes a plurality of user applications; the plurality of user applications include offline applications;

[0076] The client can provide a task processing page for the user, which includes several user applications. The task processing page can be a functional page of any form for centralized management and access to the several user applications.

[0077] In one embodiment shown, 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 to the user.

[0078] For example, Figure 3 As shown, Figure 3 This is a schematic diagram of a work page corresponding to the mobile office platform provided by the instant messaging client to users. Users access the work page by clicking the function button in the middle at the bottom of the page.

[0079] Of course, in actual applications, the above-mentioned function page may specifically be a page in other forms other than the above-mentioned working page, which will not be listed one by one in this specification.

[0080] The task processing page contains several user applications, including online applications and offline applications. The online applications can be user applications that need to obtain data from the server in real time to run, such as video conferencing, telephone conferencing, live broadcasting, etc. The offline applications can be user applications that do not need to obtain server data in real time and can also run by reading local cache data, such as attendance punching, approval, log, etc.

[0081] When the user accesses the task processing page, it is determined whether the network status meets the downgrade condition for the task processing page. The above determination of whether the network status meets the downgrade condition can be determined by sending a page acquisition request corresponding to the task processing page to the page server, and determining whether the response data corresponding to the page acquisition request returned by the server is received within a preset time period, to determine whether the network status is a weak network, and can also be determined by determining whether the terminal device where the client is located is connected to the Internet to determine whether the network status is no network.

[0082] In one embodiment shown, when a user accesses the task processing page, the client can send a page acquisition request corresponding to the task processing page to the page server, and determine whether response data corresponding to the page acquisition request returned by the server is received within a preset time period to determine the network status. If not, the network status is determined to be a weak network, and the network status meets the above-mentioned degradation conditions. The above-mentioned preset time period can be any time period set according to actual needs. The above-mentioned preset time period can also be a preset number of times. For example: the client continuously sends the above-mentioned page acquisition request to the page server, and determines whether response data corresponding to the page acquisition request returned by the server is received within a preset number of times. If yes, the network status is determined to be a weak network.

[0083] In one embodiment shown, when a user accesses the task processing page, it can detect whether the terminal device where the client is located is connected to the Internet to determine the network status. If not, the network status is determined to be no network, and the no network status meets the above-mentioned degradation condition.

[0084] For example: determine whether the terminal device where the client is located has turned on the switch for connecting to the network, or determine whether the terminal device is in an environment where the network signal is shielded.

[0085] In practical applications, the above method of determining whether the network status meets the degradation condition may also be other methods other than the above determination method, which will not be listed one by one in this specification.

[0086] S204: if the network status of the terminal device where the client is located meets the degradation condition for the task processing page, reading the application data corresponding to the offline application from the cache data of the client;

[0087] In actual applications, when a user accesses a task processing page, application data of the user application in the task processing page is usually synchronized online from the server to the local computer by the client based on a network connection with the server.

[0088] In order to avoid the above-mentioned page being unable to load normally due to poor client network conditions, the data synchronization process when accessing the task processing page can be improved in this manual. When the user accesses the page, the client can no longer synchronize data online from the server based on the network connection between the client and the server, but can perform offline synchronization while the user logs in to the client.

[0089] In one embodiment shown, a data synchronization channel can usually be maintained between the client and the server; wherein the data synchronization channel is used to synchronize data between the client and the server. During the process of the user logging into the client, the client can use the data synchronization channel to perform some login interactions with the server to complete the login process. In this specification, after the user successfully logs into the client, the application data corresponding to the above-mentioned several user applications can be synchronized to the client cache data based on the data synchronization channel. Among them, the above-mentioned data synchronization channel can be a data synchronization channel created based on the synchronization protocol supported by the client. It should be noted that the data synchronization channel can also be a multi-terminal data synchronization channel; for example: taking the above-mentioned client as DingTalk as an example, the above-mentioned data synchronization channel can specifically be a data synchronization channel supported by the mobile terminal DingTalk, the PC terminal DingTalk, and the server.

[0090] In actual applications, when the client synchronizes data from the server based on the data synchronization channel, it can usually use a combination of push and pull to synchronize data. The so-called push-pull combination means that the client can use a combination of pull mode and push mode to synchronize data from the server. The so-called pull mode refers to a data synchronization mode in which the client actively obtains the application data corresponding to the above-mentioned several 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 the application data corresponding to the above-mentioned several user applications to the client after the user successfully logs in to the client.

[0091] In this way, after the user logs in to the client, the client can reuse the data synchronization channel maintained between the client and the server, and adopt a push-pull combination of methods to efficiently synchronize the application data corresponding to the user application required when accessing the page to the local computer, and pre-store it in the client cache data.

[0092] For example, in actual applications, when the client reuses the above data synchronization channel and synchronizes the application data corresponding to the above several user applications from the server in a push-pull combination, the application data corresponding to a part of the user applications is synchronized to the local in a push mode, and the user data corresponding to another part of the user applications can also be synchronized to the local in a pull mode. Since the push mode and the pull mode can be used in parallel to synchronize data, it obviously has a higher data synchronization efficiency than the client only using a single synchronization mode to synchronize data from the server.

[0093] When a user visits the above page, the application data corresponding to the offline application can be read from the cache without the need for real-time synchronization from the server.

[0094] In one embodiment shown, the client may be equipped with a preset offline applet for obtaining client cache data. In this case, when the client reads application data corresponding to the offline application from the client cache data, the client may specifically start the offline applet, and when the network condition is poor, the offline applet reads the application data from the client cache data.

[0095] In this way, the application data corresponding to the offline application can be read when the network condition is poor.

[0096] S206: Based on the read application data corresponding to the offline application, visual rendering is performed to generate a degraded page corresponding to the task processing page, and the degraded page is output and displayed to the user; wherein the degraded page does not include a non-offline application or the non-offline application included in the degraded page is in an inoperable state

[0097] After reading the application data corresponding to the offline application, the offline applet can perform visual rendering based on the application data and output the generated rendering results, or it can be rendered by a rendering program preset in the client cache data, which is not specifically limited in this specification.

[0098] The above-mentioned application data may specifically include: page data for rendering an access entry corresponding to the offline application on the degraded page; and running data for running the offline application.

[0099] When the client performs visual rendering on the task processing page, it may render a degraded page including access entries for all applications, such as icons, or it may only include access entries corresponding to offline applications, which is not specifically limited in this specification.

[0100] In an illustrated embodiment, the degraded page including access entries of all applications may be a page that sets access entries of non-offline user applications except the offline application among several user applications to an inoperable state.

[0101] For example, Figure 4 As shown, in the column of commonly used applications, the icons of telephone conference and video conference are set to inoperable gray icons.

[0102] In this way, when rendering a page, the original layout of the user application in the task processing page will not be changed, which can not only improve the efficiency of page rendering and reduce the system overhead when rendering the page, but also reduce the user's adaptation and learning cost when operating a new page when the layout changes without changing the user's usage habits. Moreover, since the non-offline applications in the page are set to an inoperable state, it can also prevent users from continuing to access the non-offline applications in the page when the network is weak or no network, thereby avoiding user misoperation.

[0103] In another illustrated embodiment, the degraded page that only includes the access entry corresponding to the offline application may be a minimalist page that rearranges the offline application access entry.

[0104] For example, Figure 5 As shown, in the Common Applications column, there is only an access entry for the offline application attendance punch-in and log.

[0105] In this way, the task processing page can be made more concise and intuitive.

[0106] In order to facilitate understanding of the process of implementing the above-mentioned page access method, this specification describes the present application in conjunction with a specific example, taking a user accessing a corporate instant messaging client page as an example.

[0107] Users can click the function button in the middle of the function menu at the bottom of the client main page to access the task processing page, such as Figure 6 As shown in ①, after clicking, the task processing page is loading. Figure 6 As shown in ②, at this time, the client sends a page acquisition request to the page server, and determines whether the response data corresponding to the above page acquisition request is received within a preset time length, for example: setting the preset time length to 1s, 2s, 3s, etc., to determine whether the current network condition is not good. The specific time length can be set according to actual needs and is not limited in this manual. Alternatively, the client can continuously send page acquisition requests to the page server, and determine whether the response data corresponding to the above page acquisition request is received within a preset number of times, for example, setting the preset number of times to 10 times, 20 times, 30 times, etc., to determine whether the current network condition is not good. The specific set number of times can also be set according to actual needs and is not limited in this manual.

[0108] At this time, the network status can also be determined by detecting whether the terminal device where the client is located is connected to the Internet. For example, check whether the network signal column in the upper left corner of the terminal page shows that there is no service status, or check whether the network connection entrance of the terminal is open. The specific detection method can also be other methods, which will not be given examples one by one in this manual.

[0109] After determining that the terminal device where the client is located meets the degradation conditions for the above task processing page, the client starts the offline applet, such as Figure 6 As shown in ③, the offline applet can read the application data corresponding to the offline application from the client cache data. The application data corresponding to the offline application includes page data for rendering the access entry corresponding to the offline application, and running data for running the offline application.

[0110] The above application data can be data synchronized to the client cache data based on a data synchronization channel for data synchronization with the server after the last time the network condition was good and the user successfully logged in. The data synchronization channel can be a data synchronization channel created by a synchronization protocol supported by the client, or a multi-terminal data synchronization channel, such as: mobile DingTalk, PC DingTalk, and server, a data synchronization channel supported by three parties.

[0111] The task processing page can display the following Figure 6 The general page shown in ③ in the figure contains access icons for all applications, among which inaccessible user applications are marked as inoperable gray icons. The inaccessible user applications are online applications that need to obtain data from the server in real time to run. The task processing page can also display the following Figure 6 The minimalist page shown in ④ in the figure only includes access icons corresponding to offline applications. The offline applications can be user applications that can run without obtaining server data in real time and can read local cache data.

[0112] Corresponding to the above-mentioned embodiment of the page access method, this specification also provides an embodiment of a page access device.

[0113] See also Figure 7 , Figure 7 It is a schematic diagram of the structure of the electronic device where the page access device 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 memory 710, and of course may also include hardware required for other services. One or more embodiments of this specification can be implemented based on software, such as the processor 702 reading the corresponding computer program from the non-volatile memory 710 into the memory 708 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0114] See also Figure 8 , Figure 8is a block diagram of a page access device in an embodiment of the present specification. The page access device can be applied to Figure 7 The electronic device shown in the figure is used to implement the technical solution of this specification. The page access system is applied to a client, and the cache data of the client stores login data and application data, which may include:

[0115] a determination unit, configured to respond to a user-triggered access operation to a task processing page provided by the client to the user, and determine whether a network status of a terminal device where the client is located satisfies a degradation condition for the task processing page; the task processing page includes a plurality of user applications; the plurality of user applications include offline applications;

[0116] A reading unit, configured to read application data corresponding to the offline application from cache data of the client if the network status of the terminal device where the client is located meets the degradation condition for the task processing page;

[0117] A rendering unit is used to perform visual rendering based on the read application data corresponding to the offline application, generate a degraded page corresponding to the task processing page, and output the degraded page to the user for display; wherein the degraded page does not include a non-offline application or the non-offline application included in the degraded page is in an inoperable state.

[0118] In this embodiment, the determining unit may be used to:

[0119] In response to the user successfully logging into the client, the application data corresponding to the several user applications are synchronized from the server based on the data synchronization channel; wherein the application data corresponding to the several user applications at least includes application data corresponding to offline applications among the several user applications.

[0120] The client includes an enterprise instant messaging client; the task processing page includes a work page corresponding to a mobile office platform provided by the enterprise instant messaging client to the user.

[0121] The determining unit may be specifically used for:

[0122] A page acquisition request corresponding to the task processing page is sent to the page server, and it is determined whether response data corresponding to the page acquisition request is received from the server within a preset time period; if response data corresponding to the page acquisition request is not received from the server within the preset time period, it is determined that the network status of the terminal device where the client is located meets the degradation condition for the task processing page.

[0123] The determining unit may be specifically used for:

[0124] Determine whether the terminal device where the client is located is connected to the Internet. If the terminal device where the client is located is not connected to the Internet, determine whether the network status of the terminal device where the client is located meets the degradation condition for the task processing page.

[0125] The client is equipped with a preset offline applet for obtaining client cache data;

[0126] The reading unit may be specifically used for:

[0127] The offline applet is started, and the offline applet reads application data corresponding to the offline application from cache data of the client.

[0128] The rendering unit may be specifically used for:

[0129] Based on the read application data corresponding to the offline application, visual rendering is performed to generate the task processing page including the access entries of the several user applications, and the access entries of the user applications other than the offline application included in the several user applications included in the task processing page are set to be inoperable; or

[0130] Based on the read application data corresponding to the offline application, visual rendering is performed to generate the task processing page that only includes the access entry of the offline application.

[0131] The application data includes page data for rendering an access entry corresponding to the offline application on the degraded page; and running data for running the offline application.

[0132] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0133] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.

[0134] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements to method flows). However, with the development of technology, many improvements to method flows today can be regarded as direct improvements to hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. Those skilled in the art should also be aware that it is only necessary to perform a little logic programming on the method flow using the above-mentioned hardware description languages ​​and program it into an integrated circuit to easily obtain a hardware circuit that implements the logical method flow.

[0135] The controller can be implemented in any appropriate manner. Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps to achieve the same function. Therefore, such a controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.

[0136] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a server system. Of course, the present application does not exclude that with the development of computer technology in the future, the computer that implements the functions of the above 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.

[0137] Although one or more embodiments of the present specification provide method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps, and does not represent the only execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, product or equipment. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or equipment including the elements. For example, if the words first, second, etc. are used to represent the name, they do not represent any specific order.

[0138] For the convenience of description, the above devices are described in various modules according to their functions. Of course, when implementing one or more of the present specification, the functions of each module can be implemented in the same or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units, etc. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0139] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0140] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0141] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0142] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0143] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0144] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage, graphene storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0145] It should be understood by those skilled in the art that one or more embodiments of the present specification may be provided as a method, system or computer program product. Therefore, one or more embodiments of the present specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, one or more embodiments of the present specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0146] One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of this specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0147] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. In the description of this specification, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction.

[0148] The above description is only an example of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. For those skilled in the art, one or more embodiments of the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims.

Claims

1. A page access method, applied to a client, wherein cache data of the client at least stores 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, the method comprising: In response to a user-triggered access operation to the task processing page, determining whether a network status of a terminal device where the client is located satisfies a degradation condition for the task processing page; the task processing page includes a plurality of user applications; the plurality of user applications include offline applications; If yes, reading the application data corresponding to the offline application from the cache data of the client; Based on the read application data corresponding to the offline application, visual rendering is performed to generate the task processing page including access entries of the plurality of user applications, and the access entries of the plurality of user applications included in the task processing page except for the offline application are set to be inoperable; or, Based on the read application data corresponding to the offline application, visual rendering is performed to generate the task processing page that only includes the access entry of the offline application; The generated task processing page is output and displayed to the user.

2. According to the method of claim 1, a data synchronization channel is maintained between the client and the server; In response to the access operation triggered by the user to the task processing page, before determining whether the network status of the terminal device where the client is located meets the degradation condition for the task processing page, the method further includes: In response to the user successfully logging into the client, the application data corresponding to the several user applications are synchronized from the server based on the data synchronization channel; wherein the application data corresponding to the several user applications at least includes application data corresponding to offline applications among the several user applications.

3. The method according to claim 1, wherein the client comprises: Enterprise instant messaging client; The task processing page includes a work page corresponding to the mobile office platform provided by the enterprise instant messaging client to the user.

4. The method according to claim 1, determining whether the network status of the terminal device where the client is located meets the degradation condition for the task processing page, comprises: Sending a page acquisition request corresponding to the task processing page to the page server, and determining whether response data corresponding to the page acquisition request returned by the server is received within a preset time period; If not, it is determined that the network status of the terminal device where the client is located meets the degradation condition for the task processing page.

5. The method according to claim 1, determining whether the network status of the terminal device where the client is located meets the degradation condition for the task processing page, comprises: Determine whether the terminal device where the client is located is connected to the Internet, If not, it is determined that the network status of the terminal device where the client is located meets the degradation condition for the task processing page.

6. According to the method of claim 1, the client is equipped with a preset offline applet for obtaining client cache data; The reading the application data corresponding to the offline application from the cache data of the client includes: The offline applet is started, and the offline applet reads application data corresponding to the offline application from cache data of the client.

7. The method according to claim 1, wherein the application data comprises: Used to render page data of an access entry corresponding to the offline application on the degraded page; and, operating data for operating the offline application.

8. A page access system, applied to a client, wherein the cache data of the client stores login data and application data, and the system comprises: a determination unit, configured to respond to a user-triggered access operation to a task processing page provided by the client to the user, and determine whether a network status of a terminal device where the client is located satisfies a degradation condition for the task processing page; the task processing page includes a plurality of user applications; the plurality of user applications include offline applications; A reading unit, configured to read application data corresponding to the offline application from cache data of the client if the network status of the terminal device where the client is located meets the degradation condition for the task processing page; a rendering unit, configured to perform visual rendering based on the read application data corresponding to the offline application, generate the task processing page including the access entries of the plurality of user applications, and set the access entries of the plurality of user applications included in the task processing page, except for the offline application, to be inoperable; or, Based on the read application data corresponding to the offline application, visual rendering is performed to generate the task processing page that only includes the access entry of the offline application; A display unit is used to output and display the generated task processing page to the user.

9. An electronic device, comprising a communication interface, a processor, a memory and a bus, wherein the communication interface, the processor and the memory are interconnected via the bus; The memory stores machine-readable instructions, and the processor executes the method according to any one of claims 1 to 7 by calling the machine-readable instructions.

10. A machine-readable storage medium storing machine-readable instructions, wherein the machine-readable instructions, when called and executed by a processor, implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Offline attendance processing method and apparatus

    CN107306286A