CN116233051A - Page sharing method, device and equipment for applet and storage medium - Google Patents

Page sharing method, device and equipment for applet and storage medium Download PDF

Info

Publication number
CN116233051A
CN116233051A CN202310195811.0A CN202310195811A CN116233051A CN 116233051 A CN116233051 A CN 116233051A CN 202310195811 A CN202310195811 A CN 202310195811A CN 116233051 A CN116233051 A CN 116233051A
Authority
CN
China
Prior art keywords
page
configuration information
information
sharing
applet
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
CN202310195811.0A
Other languages
Chinese (zh)
Inventor
王珂欣
邵思宇
章志成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202310195811.0A priority Critical patent/CN116233051A/en
Publication of CN116233051A publication Critical patent/CN116233051A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides a page sharing method, device, equipment and storage medium for an applet, relates to the technical field of computers, in particular to the field of applet technology, and particularly relates to the page sharing method, device, equipment and storage medium for the applet. The specific implementation scheme is as follows: responding to the sharing operation aiming at the target applet, and requesting target configuration information from a designated server; updating default page information of the sharing page by utilizing the target configuration information to obtain page information to be shared; the default page information is default information for describing the sharing page; and forwarding the page information to be shared to a second client, so that the second client outputs the shared page based on the page information to be shared. Therefore, through the scheme, the sharing efficiency of the applet can be improved.

Description

Page sharing method, device and equipment for applet and storage medium
Technical Field
The disclosure relates to the technical field of computers, in particular to the technical field of applets, and specifically relates to a page sharing method, device and equipment for an applet and a storage medium.
Background
Currently, sharing of applets only supports a developer to set configuration information for a shared page through two modes of an API (ApplicationProgramming Interface ) and onShareAppMessage (a function for setting sharing information).
The configuration information is set by modifying the code package of the applet by a developer, submitting the code package for verification and then validating.
Disclosure of Invention
The disclosure provides a page sharing method, device and equipment for an applet and a storage medium.
According to an aspect of the present disclosure, there is provided a page sharing method for an applet, applied to a first client, the method including:
responding to the sharing operation aiming at the target applet, and requesting target configuration information from a designated server; the target configuration information is configuration information of the sharing page indicated by the sharing operation, and the designated server is: the server is used for storing configuration information to be utilized configured for the applet page;
updating default page information of the sharing page by utilizing the target configuration information to obtain page information to be shared; the default page information is default information for describing the sharing page;
And forwarding the page information to be shared to a second client, so that the second client outputs the shared page based on the page information to be shared.
According to another aspect of the disclosure, a page sharing system for an applet is provided, including a first client, a second client, and a designated server;
the first client is used for responding to the sharing operation aiming at the target applet and requesting target configuration information from the appointed server; updating default page information of the sharing page by utilizing the target configuration information to obtain page information to be shared; forwarding the page information to be shared to a second client; the target configuration information is configuration information of a sharing page indicated by the sharing operation, and the default page information is default information for describing the sharing page;
the second client is used for receiving page information to be shared sent by the first client and outputting the shared page based on the page information to be shared;
the appointed server is used for storing configuration information to be utilized configured for the applet page.
According to another aspect of the present disclosure, there is provided a page sharing device for an applet, applied to a first client, the device including:
the request module is used for responding to the sharing operation aiming at the target applet and requesting the target configuration information from the appointed server; the target configuration information is configuration information of the sharing page indicated by the sharing operation, and the designated server is: the server is used for storing configuration information to be utilized configured for the applet page;
the updating module is used for updating default page information of the sharing page by utilizing the target configuration information to obtain page information to be shared; the default page information is default information for describing the sharing page;
and the sharing module is used for forwarding the page information to be shared to a second client so that the second client outputs the shared page based on the page information to be shared.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the page sharing method for an applet of any one of the above.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the page sharing method for an applet according to any one of the above.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a page sharing method for an applet according to any one of the above.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow chart of a page sharing method for an applet in accordance with the present disclosure;
FIG. 2 is another flow chart of a page sharing method for an applet in accordance with the present disclosure;
FIG. 3 is yet another flow chart of a page sharing method for an applet in accordance with the present disclosure;
FIG. 4A is an interactive schematic diagram according to the present disclosure;
FIG. 4B is another interactive schematic diagram according to the present disclosure;
FIG. 5 is a schematic diagram of an interface configured to share information according to the present disclosure;
FIG. 6 is a schematic diagram of a page sharing system for applets according to the disclosure;
FIG. 7 is a schematic diagram of a page sharing apparatus for applets according to the disclosure;
fig. 8 is a block diagram of an electronic device used to implement an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
At present, the sharing of the applet only supports a developer to set configuration information aiming at a shared page through an API and an onshareAppMessage, and popularization and use of the internal operation activities of the applet require the developer to modify a code package of the applet, submit the code package for verification and then take effect, and the effective period is long, so that the sharing efficiency of the applet is low.
Based on the foregoing, in order to improve the sharing efficiency of the applet, the embodiments of the present disclosure provide a method, an apparatus, a device, and a storage medium for sharing pages of the applet.
The following first describes a page sharing method for an applet provided in an embodiment of the present disclosure.
The page sharing method for the applet, provided by the embodiment of the disclosure, is applied to a first client. In a specific application, the first client may be a client performing an applet sharing operation in a terminal device. In practical applications, the first client may be host software of an applet to be shared, for example, instant messaging software; the terminal device may be: smart phones, tablet computers, desktop computers, etc.
Specifically, the execution subject of the page sharing method for the applet may be a page sharing device for the applet. For example, when the method for sharing pages of the applet is applied to the terminal device, the device for sharing pages of the applet may be a plug-in running in the first client, for example: plug-in for page sharing of applets.
The page sharing method for the applet provided by the embodiment of the present disclosure may include the following steps:
Responding to the sharing operation aiming at the target applet, and requesting target configuration information from a designated server; the target configuration information is configuration information of the sharing page indicated by the sharing operation, and the designated server is: the server is used for storing configuration information to be utilized configured for the applet page;
updating default page information of the sharing page by utilizing the target configuration information to obtain page information to be shared; the default page information is default information for describing the sharing page;
and forwarding the page information to be shared to a second client, so that the second client outputs the shared page based on the page information to be shared.
In the scheme provided by the disclosure, since the configuration information to be utilized configured for the applet page is stored in the designated server, in response to the sharing operation for the target applet, the configuration information of the sharing page indicated by the sharing operation, namely the target configuration information, can be requested from the designated server. Therefore, default page information of the sharing page indicated by the sharing operation can be updated by utilizing the target configuration information to obtain page information to be shared, so that after the page information to be shared is forwarded to the second client, the second client can generate a new sharing page based on the page information to be shared, and page sharing of the applet is completed. Therefore, the scheme does not need a developer to modify the code package of the applet, and can realize flexible configuration and modification of the sharing page, thereby improving the sharing efficiency of the applet.
The page sharing method for the applet provided by the embodiment of the present disclosure is described below with reference to the accompanying drawings.
As shown in fig. 1, the page sharing method for the applet, provided in the embodiment of the present disclosure, applied to the first client, may include steps S101 to S103:
s101, responding to a sharing operation aiming at a target applet, and requesting target configuration information from a designated server; the target configuration information is configuration information of a sharing page indicated by the sharing operation, and the designated server is: the server is used for storing configuration information to be utilized configured for the applet page;
in this embodiment, the first client may be host software of the target applet, and request the target configuration information from the designated server in response to a sharing operation for the target applet initiated by the user in the first client. By way of example, the first client may be any client capable of running an applet, the sharing operation may be performed by an e-commerce applet, or a game applet, or the like. In addition, the configuration information may also be referred to as shared information. By way of example, the configuration information may include an activity name, a share title, shared content, and so forth.
It can be understood that the designated server is a server corresponding to the first client, and configuration information to be utilized configured for the applet page is stored in the designated server. When a user performs sharing on a target applet in a first client, the sharing can be initiated on different pages in the target applet, at this time, the first client responds to the sharing operation on the target applet, and requests configuration information of the sharing page indicated by the sharing operation, namely, requests target configuration information, from a designated server, so that default page information of the sharing page indicated by the sharing operation can be updated by using the target configuration information.
In addition, it should be noted that the configuration information to be utilized stored in the designated server may be the latest configuration information, that is, the configuration information stored in the designated server may be changed.
Optionally, in an implementation manner, the manner that the specified server obtains the configuration information to be utilized configured for the applet page may include:
the appointed service end obtains the latest configuration information aiming at the applet page based on the mode of carrying out data synchronization on the appointed configuration platform;
Wherein, the appointed configuration platform is: a platform for configuration information settings for applet pages.
In this implementation, the relevant staff of the applet may set configuration information for the applet page in the designated configuration platform. By way of example, the designated configuration platform may be an O-terminal, i.e., an internal operating platform for use by the operator of the applet. It can be understood that the designated server may perform data synchronization with the designated configuration platform, so that after a worker submits configuration information configured for the applet page in the designated configuration platform, the configuration information may be synchronized to the designated server, so that configuration information for the applet page may be stored in the designated server, and if the configuration information is updated, the latest configuration information may be synchronized in time in the designated server. For example, the data synchronization mode may be bp (a real-time data synchronization mechanism) synchronization, which may monitor data changes in a designated configuration platform, and push data to a designated server.
It should be noted that, the above manner of obtaining the configuration information for the applet page by the specified server through data synchronization is merely an example, and in practical application, the manner of obtaining the configuration information for the applet page from the specified configuration platform by the specified server through a manner of sending a request at regular time is not limited by the manner of obtaining the configuration information to be utilized configured for the applet page for the specified server in the embodiment of the present disclosure.
S102, updating default page information of the sharing page by utilizing the target configuration information to obtain page information to be shared; the default page information is default information for describing the sharing page;
in this embodiment, the default page information of the shared page may include a default title of the shared page, default shared content, and so on. It can be understood that, when the first client responds to the sharing operation for the target applet, after the request is made from the designated server for the target configuration information, the default page information of the sharing page can be updated by using the target configuration information because the target configuration information is the configuration information of the sharing page indicated by the sharing operation, so as to obtain the page information to be shared, so that a new sharing page can be generated based on the page information to be shared, without modifying a code package of the applet by a developer, thereby improving the sharing efficiency of the applet.
Optionally, in an implementation manner, updating the default page information of the shared page by using the target configuration information to obtain the page information to be shared may include:
And replacing the field value in the target configuration information with the field value belonging to the same field as the field value in the default page information of the sharing page to obtain the page information to be shared.
It can be understood that the target configuration information and the default page information may be stored in the form of field values, and updating the default page information of the shared page may be implemented by replacing the field value in the target configuration information with the field value in the default page information of the shared page, where the field value belongs to the same field as the field value. For example, if the field value of the a field in the target configuration information is "take-out preference activity", and the field value of the a field in the default page information is "take-out activity", the "take-out preference activity" is replaced with "take-out activity" in the default page information, so as to obtain the page information to be shared. It should be noted that, if a certain field in the default page information is null in the field value corresponding to the target configuration information, the field value of the field is still the default value of the field in the default page information.
And S103, forwarding the page information to be shared to a second client, so that the second client outputs the shared page based on the page information to be shared.
In this embodiment, the page sharing of the target applet can be completed by forwarding the page information to be shared to the second client, and the second client can render the page information to be shared after receiving the page information to be shared, so as to display the shared page, i.e. output the shared page. By way of example, the second client may be an instant messaging client, an entertainment client, or the like.
In the scheme provided by the disclosure, since the configuration information to be utilized configured for the applet page is stored in the designated server, in response to the sharing operation for the target applet, the configuration information of the sharing page indicated by the sharing operation, namely the target configuration information, can be requested from the designated server. Therefore, default page information of the sharing page indicated by the sharing operation can be updated by utilizing the target configuration information to obtain page information to be shared, so that after the page information to be shared is forwarded to the second client, the second client can generate a new sharing page based on the page information to be shared, and page sharing of the applet is completed. Therefore, the scheme does not need a developer to modify the code package of the applet, and can realize flexible configuration and modification of the sharing page, thereby improving the sharing efficiency of the applet.
Optionally, in another embodiment of the present disclosure, any configuration information is provided with an effective period of time;
accordingly, in this embodiment, as shown in fig. 2, the method may include steps S201 to S203:
s201, responding to a sharing operation aiming at a target applet, and requesting target configuration information of which the set effective time period is matched with the designated time from a designated server;
the designated time is the time of the sharing operation; the target configuration information is the configuration information of the sharing page indicated by the sharing operation, and the designated server side is: the server is used for storing configuration information to be utilized configured for the applet page;
s202, updating default page information of the sharing page by utilizing the target configuration information to obtain page information to be shared; the default page information is default information for describing the sharing page;
and S203, forwarding the page information to be shared to a second client, so that the second client outputs the shared page based on the page information to be shared.
It is understood that the contents of steps S202-S203 are the same as those of steps S102-S103 described above, and will not be described again here.
In this embodiment, the designated server may store a plurality of configuration information to be utilized configured for any applet page, and any configuration information may be set with an effective period. It may be appreciated that, since there may be a plurality of configuration information stored in the specified server regarding the sharing page indicated by the sharing operation, the plurality of configuration information may be set with different effective time periods, so in response to the sharing operation for the target applet, the target configuration information in which the set effective time period matches the specified time may be requested from the specified server. Therefore, different sharing pages can be generated by using different configuration information configured for the same page in different time periods without manually modifying codes, and the sharing efficiency is improved.
For example, the manner of determining whether the effective period matches the specified time may be to determine whether the effective period includes the specified period, if so, the effective period matches the specified time, otherwise, the effective period does not match.
Optionally, in one implementation, any configuration information includes: applet identification and page path;
Accordingly, in this implementation manner, in response to the sharing operation for the target applet, from the specified server, the request for the target configuration information in which the set effective period matches the specified time may include steps A1-A3:
a1, constructing an information acquisition request carrying a designated time and a page identifier for representing the shared page;
in this implementation manner, when a user initiates a sharing operation with respect to a target applet in a first client, the time at which the sharing operation occurs and the page position of the sharing operation in the target applet, that is, the page identifier of the sharing page, may be determined, so as to construct an information acquisition request carrying a specified time and the page identifier for characterizing the sharing page.
By way of example, the page identification may be a page id, or a page name, or the like. It can be understood that if sharing is performed on a certain page in the target applet, an information acquisition request carrying a specified time and a page identifier for representing the page can be constructed, so that target configuration information, of configuration information corresponding to the page, with a valid time period matched with the specified time, can be acquired subsequently according to the specified time and the page identifier carried in the request.
A2, sending the information acquisition request to a designated server side, so that when the designated server side receives the information acquisition request, determining candidate configuration information of which the corresponding page is matched with the page indicated by the page identifier from the synchronized configuration information, selecting configuration information of which the set effective time period contains the designated time from the candidate configuration information, and feeding back the selected configuration information to the first client side; the page corresponding to any configuration information is determined based on the applet identification and the page path contained in the configuration information;
after the information acquisition request carrying the specified time and the page identifier is constructed in the step A1, the information acquisition request can be sent to the specified server, so that the specified server can select the configuration information matched with the page identifier and the specified time from the synchronized configuration information after receiving the information acquisition request.
By way of example, the applet identification may be an applet id, or applet name, etc., and the page path may characterize the location of the shared page corresponding to the configuration information in the applet, e.g., applet head page, end page, etc. It can be understood that, because the configuration information includes the applet identifier and the page path, and the page path can represent the position of the shared page corresponding to the configuration information in the applet, the page in the applet corresponding to the configuration information can be determined according to the applet identifier and the page path, so that the page identifier of the determined page is compared with the page identifier carried in the information acquisition request, and if the page identifier is the same, the page corresponding to the configuration information is matched with the page indicated by the page identifier carried in the request. The specified server may select, from the synchronized configuration information, configuration information of the corresponding page that is the same as the page indicated by the page identifier, as candidate configuration information, and after determining the candidate configuration information, select, from the candidate configuration information, that the set effective period includes the configuration information of the specified time, where the selected configuration information is the target configuration information.
A3, receiving the configuration information sent by the appointed server to obtain target configuration information of which the set effective time period is matched with the appointed time.
It can be understood that the first client receives the configuration information fed back by the designated server, and then obtains the target configuration information that the set effective time period matches the designated time.
Therefore, by the scheme, different sharing pages can be generated in different time periods by using different configuration information configured for the same page through setting the effective time period for the configuration information, and the code does not need to be manually modified, so that the sharing efficiency is improved.
Optionally, in another embodiment of the disclosure, on the basis of the embodiment shown in fig. 1, as shown in fig. 3, the method may further include step S104:
and S104, transmitting default page information of the sharing page to a second client in response to the fact that the target configuration information is not acquired, so that the second client outputs the sharing page based on the default page information.
In this embodiment, if the first client does not acquire the target configuration information, the default page information of the shared page is sent to the second client, and after receiving the default page information, the second client may render the default page information, so as to output the shared page. In an embodiment, the default page information of the sharing page may be stored locally in advance in the first client, so that when the first client does not obtain the target configuration information, the locally stored default page information of the sharing page may be sent to the second client, so as to complete page sharing of the applet.
Therefore, by the scheme, the page sharing of the applet can be completed under the condition that the target configuration information is not acquired.
For a better understanding of the present solution, the method provided by the embodiments of the present disclosure will be described below with reference to a specific example.
Fig. 4A shows a schematic interaction of a client (corresponding to the first client above) with an O-terminal (corresponding to the specified server above). As shown in fig. 4A, the relevant staff of the applet may set configuration information for the applet page at the O-terminal, where the configuration information may include applet id, path (corresponding to the page path above), share title, share content, etc. The O-terminal synchronizes the configuration information to the C-Server (the service terminal corresponding to the first client) through a DTS (DataTransmission Service) synchronization mode, and the C-Server analyzes the data and provides the data to the C-FE (the first client) through an interface synchronization mode.
FIG. 4B shows a schematic diagram of the interaction of the applet side with the O-terminal. As shown in fig. 4B, the relevant staff of the applet can create the shared information (corresponding to the configuration information above) at the O-terminal and edit the shared information. The sharing information may include parameters of the shared content, title, period of effectiveness, path, and so forth. When a user triggers the sharing operation on the applet side, the user sends an interface request to the O-terminal to acquire the sharing information, the O-terminal feeds back the sharing information through the sharing information synchronous interface, the data feedback is fed back to the applet side, and the applet side receives the sharing information and then invokes the interface to issue sharing. In practical application, a user clicks applet sharing in a host App, so that configuration information of a sharing page indicated by the sharing operation can be obtained; if the sharing page indicated by the sharing operation has no configuration information, default page information of the sharing page is used.
Fig. 5 illustrates an interface diagram of a shared information configuration. As shown in fig. 5, sharing information may include creation time, activity name, applet id, and the like. Checking effective time periods when the shared information is stored, wherein a plurality of effective time periods of the shared information cannot be overlapped, and if the two time periods are overlapped, the two time periods are 13:00-15:0014:00-16:00; the configuration of a plurality of discrete time periods on weekdays and weekends can be supported, and only one shared information can be configured on the same path.
Therefore, through the scheme, the user-defined configuration of the shared content of the applet activity page is supported to be completed with low cost and high efficiency, and the user sharing experience and the industry-end external fission effect can be improved; aiming at the activity pages of the internal operation popularization of each service industry, the time cost of configuration information setting can be shortened, and the configuration time period is reduced from a month level to an hour/minute level.
Correspondingly, in the embodiment of the method, the embodiment of the disclosure further provides a page sharing system for the applet, as shown in fig. 6, including a first client 610, a second client 620, and a designated server 630;
the first client 610 is configured to request, from a specified server, target configuration information in response to a sharing operation for a target applet; updating default page information of the sharing page by utilizing the target configuration information to obtain page information to be shared; forwarding the page information to be shared to a second client; the target configuration information is configuration information of a sharing page indicated by the sharing operation, and the default page information is default information for describing the sharing page;
The second client 620 is configured to receive page information to be shared sent by the first client, and output the shared page based on the page information to be shared;
the designated server 630 is configured to store configuration information to be utilized configured for an applet page.
Optionally, the system further comprises a designated configuration platform, the designated configuration platform being: a platform for configuration information setting for applet pages;
the specified server is specifically configured to: based on the mode of carrying out data synchronization on the appointed configuration platform, the latest configuration information aiming at the applet page is obtained.
Optionally, any configuration information is provided with an effective time period;
the response to the sharing operation for the target applet requests target configuration information from the designated server, including:
responding to the sharing operation aiming at the target applet, and requesting target configuration information of which the set effective time period is matched with the designated time from the designated server;
the designated time is the time of the sharing operation.
Optionally, any configuration information includes: applet identification and page path;
The response to the sharing operation for the target applet requests target configuration information of which the set effective time period is matched with the designated time from the designated server, and the target configuration information comprises the following steps:
constructing an information acquisition request carrying a designated time and a page identifier for representing the sharing page;
the information acquisition request is sent to a designated server side, so that when the designated server side receives the information acquisition request, candidate configuration information of which the corresponding page is matched with the page indicated by the page identifier is determined from the synchronized configuration information, the configuration information of which the set effective time period contains the designated time is selected from the candidate configuration information, and the selected configuration information is fed back to the first client side; the page corresponding to any configuration information is determined based on the applet identification and the page path contained in the configuration information;
and receiving the configuration information sent by the appointed server to obtain target configuration information of which the set effective time period is matched with the appointed time.
Optionally, updating the default page information of the sharing page by using the target configuration information to obtain page information to be shared includes:
And replacing the field value in the target configuration information with the field value belonging to the same field as the field value in the default page information to obtain the page information to be shared.
Optionally, the first client is further configured to:
and transmitting default page information of the sharing page to a second client in response to the target configuration information not being acquired, so that the second client outputs the sharing page based on the default page information.
Correspondingly, in the embodiment of the method, the embodiment of the disclosure further provides a page sharing device for the applet, which is applied to the first client, as shown in fig. 7, and the device includes:
a request module 710, configured to request target configuration information from a specified server in response to a sharing operation for a target applet; the target configuration information is configuration information of the sharing page indicated by the sharing operation, and the designated server is: the server is used for storing configuration information to be utilized configured for the applet page;
the updating module 720 is configured to update default page information of the sharing page by using the target configuration information, so as to obtain page information to be shared; the default page information is default information for describing the sharing page;
And the sharing module 730 is configured to forward the page information to be shared to a second client, so that the second client outputs the shared page based on the page information to be shared.
Optionally, the manner in which the specified server obtains the configuration information to be utilized configured for the applet page includes:
the appointed service end obtains the latest configuration information aiming at the applet page based on the mode of carrying out data synchronization on the appointed configuration platform;
wherein, the appointed configuration platform is: a platform for configuration information settings for applet pages.
Optionally, any configuration information is provided with an effective time period;
the request module is specifically configured to:
responding to the sharing operation aiming at the target applet, and requesting target configuration information of which the set effective time period is matched with the designated time from the designated server;
the designated time is the time of the sharing operation.
Optionally, any configuration information includes: applet identification and page path;
the response to the sharing operation for the target applet requests target configuration information of which the set effective time period is matched with the designated time from the designated server, and the target configuration information comprises the following steps:
Constructing an information acquisition request carrying a designated time and a page identifier for representing the sharing page;
the information acquisition request is sent to a designated server side, so that when the designated server side receives the information acquisition request, candidate configuration information of which the corresponding page is matched with the page indicated by the page identifier is determined from the synchronized configuration information, the configuration information of which the set effective time period contains the designated time is selected from the candidate configuration information, and the selected configuration information is fed back to the first client side; the page corresponding to any configuration information is determined based on the applet identification and the page path contained in the configuration information;
and receiving the configuration information sent by the appointed server to obtain target configuration information of which the set effective time period is matched with the appointed time.
Optionally, the updating module is specifically configured to:
and replacing the field value in the target configuration information with the field value belonging to the same field as the field value in the default page information to obtain the page information to be shared.
Optionally, the apparatus further comprises:
And the default module is used for sending default page information of the sharing page to a second client in response to the fact that the target configuration information is not acquired, so that the second client outputs the sharing page based on the default page information.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
An electronic device provided by the present disclosure may include:
at least one processor; and
a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the above page sharing methods for applets.
The disclosure provides a computer readable storage medium, in which a computer program is stored, where the computer program is executed by a processor to implement any of the steps of the method for page sharing for an applet.
A computer program product comprising instructions which, when executed on a computer, cause the computer to perform the steps of any of the above embodiments for the page sharing method of the applet is provided.
Fig. 8 illustrates a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
Various components in device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as a page sharing method for an applet. For example, in some embodiments, the page sharing method for an applet may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 800 via ROM 802 and/or communication unit 809. When a computer program is loaded into RAM 803 and executed by computing unit 801, one or more steps of the page sharing method for the applet described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the page sharing method for the applet by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (17)

1. A page sharing method for an applet, applied to a first client, the method comprising:
responding to the sharing operation aiming at the target applet, and requesting target configuration information from a designated server; the target configuration information is configuration information of the sharing page indicated by the sharing operation, and the designated server is: the server is used for storing configuration information to be utilized configured for the applet page;
Updating default page information of the sharing page by utilizing the target configuration information to obtain page information to be shared; the default page information is default information for describing the sharing page;
and forwarding the page information to be shared to a second client, so that the second client outputs the shared page based on the page information to be shared.
2. The method of claim 1, wherein the manner in which the specified server obtains the configuration information to be utilized configured for the applet page comprises:
the appointed service end obtains the latest configuration information aiming at the applet page based on the mode of carrying out data synchronization on the appointed configuration platform;
wherein, the appointed configuration platform is: a platform for configuration information settings for applet pages.
3. The method of claim 1, wherein any configuration information is provided with an effective period of time;
the response to the sharing operation for the target applet requests target configuration information from the designated server, including:
responding to the sharing operation aiming at the target applet, and requesting target configuration information of which the set effective time period is matched with the designated time from the designated server;
The designated time is the time of the sharing operation.
4. A method according to claim 3, wherein any configuration information includes: applet identification and page path;
the response to the sharing operation for the target applet requests target configuration information of which the set effective time period is matched with the designated time from the designated server, and the target configuration information comprises the following steps:
constructing an information acquisition request carrying a designated time and a page identifier for representing the sharing page;
the information acquisition request is sent to a designated server side, so that when the designated server side receives the information acquisition request, candidate configuration information of which the corresponding page is matched with the page indicated by the page identifier is determined from the synchronized configuration information, the configuration information of which the set effective time period contains the designated time is selected from the candidate configuration information, and the selected configuration information is fed back to the first client side; the page corresponding to any configuration information is determined based on the applet identification and the page path contained in the configuration information;
and receiving the configuration information sent by the appointed server to obtain target configuration information of which the set effective time period is matched with the appointed time.
5. The method of claim 1, wherein updating default page information of the shared page with the target configuration information to obtain page information to be shared comprises:
and replacing the field value in the target configuration information with the field value belonging to the same field as the field value in the default page information of the sharing page to obtain the page information to be shared.
6. The method of claim 1, wherein the method further comprises:
and transmitting default page information of the sharing page to a second client in response to the target configuration information not being acquired, so that the second client outputs the sharing page based on the default page information.
7. A page sharing system for an applet comprises a first client, a second client and a designated server;
the first client is used for responding to the sharing operation aiming at the target applet and requesting target configuration information from the appointed server; updating default page information of the sharing page by utilizing the target configuration information to obtain page information to be shared; forwarding the page information to be shared to a second client; the target configuration information is configuration information of a sharing page indicated by the sharing operation, and the default page information is default information for describing the sharing page;
The second client is used for receiving page information to be shared sent by the first client and outputting the shared page based on the page information to be shared;
the appointed server is used for storing configuration information to be utilized configured for the applet page.
8. The system of claim 7, further comprising a designated configuration platform, the designated configuration platform being: a platform for configuration information setting for applet pages;
the specified server is specifically configured to: based on the mode of carrying out data synchronization on the appointed configuration platform, the latest configuration information aiming at the applet page is obtained.
9. A page sharing device for an applet, applied to a first client, the device comprising:
the request module is used for responding to the sharing operation aiming at the target applet and requesting the target configuration information from the appointed server; the target configuration information is configuration information of the sharing page indicated by the sharing operation, and the designated server is: the server is used for storing configuration information to be utilized configured for the applet page;
the updating module is used for updating default page information of the sharing page by utilizing the target configuration information to obtain page information to be shared; the default page information is default information for describing the sharing page;
And the sharing module is used for forwarding the page information to be shared to a second client so that the second client outputs the shared page based on the page information to be shared.
10. The apparatus of claim 9, wherein the means for obtaining, by the specified server, configuration information to be utilized configured for the applet page comprises:
the appointed service end obtains the latest configuration information aiming at the applet page based on the mode of carrying out data synchronization on the appointed configuration platform;
wherein, the appointed configuration platform is: a platform for configuration information settings for applet pages.
11. The apparatus of claim 9, wherein any configuration information is provided with an effective period of time;
the request module is specifically configured to:
responding to the sharing operation aiming at the target applet, and requesting target configuration information of which the set effective time period is matched with the designated time from the designated server;
the designated time is the time of the sharing operation.
12. The apparatus of claim 11, wherein any configuration information includes: applet identification and page path;
The response to the sharing operation for the target applet requests target configuration information of which the set effective time period is matched with the designated time from the designated server, and the target configuration information comprises the following steps:
constructing an information acquisition request carrying a designated time and a page identifier for representing the sharing page;
the information acquisition request is sent to a designated server side, so that when the designated server side receives the information acquisition request, candidate configuration information of which the corresponding page is matched with the page indicated by the page identifier is determined from the synchronized configuration information, the configuration information of which the set effective time period contains the designated time is selected from the candidate configuration information, and the selected configuration information is fed back to the first client side; the page corresponding to any configuration information is determined based on the applet identification and the page path contained in the configuration information;
and receiving the configuration information sent by the appointed server to obtain target configuration information of which the set effective time period is matched with the appointed time.
13. The apparatus of claim 9, wherein the updating module is specifically configured to:
And replacing the field value in the target configuration information with the field value belonging to the same field as the field value in the default page information to obtain the page information to be shared.
14. The apparatus of claim 9, wherein the apparatus further comprises:
and the default module is used for sending default page information of the sharing page to a second client in response to the fact that the target configuration information is not acquired, so that the second client outputs the sharing page based on the default page information.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
16. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-6.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-6.
CN202310195811.0A 2023-02-24 2023-02-24 Page sharing method, device and equipment for applet and storage medium Pending CN116233051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310195811.0A CN116233051A (en) 2023-02-24 2023-02-24 Page sharing method, device and equipment for applet and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310195811.0A CN116233051A (en) 2023-02-24 2023-02-24 Page sharing method, device and equipment for applet and storage medium

Publications (1)

Publication Number Publication Date
CN116233051A true CN116233051A (en) 2023-06-06

Family

ID=86571060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310195811.0A Pending CN116233051A (en) 2023-02-24 2023-02-24 Page sharing method, device and equipment for applet and storage medium

Country Status (1)

Country Link
CN (1) CN116233051A (en)

Similar Documents

Publication Publication Date Title
CN112866391A (en) Message pushing method and device, electronic equipment and storage medium
CN112506584A (en) Resource file loading method, device, equipment, storage medium and product
CN114025037B (en) Cloud mobile phone overhaul method and device, electronic equipment and storage medium
CN112671892B (en) Data transmission method, device, electronic equipment and medium
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN113419865A (en) Cloud resource processing method, related device and computer program product
CN111555894B (en) Data processing method, device, equipment and storage medium
CN112925584A (en) Scene-based file configuration method, device, storage medium, and program product
CN113691937B (en) Method for determining position information, cloud mobile phone and terminal equipment
CN112925623B (en) Task processing method, device, electronic equipment and medium
CN113051510B (en) Interactive processing method, device, front-end equipment, back-end equipment and storage medium
CN115102948A (en) Automatic downloading method, device and equipment of map tiles and storage medium
CN116233051A (en) Page sharing method, device and equipment for applet and storage medium
CN114546343A (en) Generation method and device of activity page
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN114218166A (en) Data processing method and device, electronic equipment and readable storage medium
CN113032040B (en) Method, apparatus, device, medium, and article for processing tasks
CN115840604B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN114095758B (en) Cloud image intercepting method and related device
CN114222073B (en) Video output method, video output device, electronic equipment and storage medium
CN112560462B (en) Event extraction service generation method, device, server and medium
CN114138397B (en) Page display method and device, electronic equipment and storage medium
CN110262756B (en) Method and device for caching data
CN115988124A (en) Method and device for determining equipment ID
CN115455029A (en) Battery replacement data acquisition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination