A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://patents.google.com/patent/CN110795672B/en below:

CN110795672B - Method, device, equipment and medium for showing content of applet

Disclosure of Invention

The application provides a method, a device, equipment and a medium for showing the content of an applet, so that the conversion from site content to the applet is realized, the investment cost of a site owner for developing the applet is reduced, and the content resource of an applet platform is enriched.

In a first aspect, an embodiment of the present application provides a method for displaying content of an applet, which is applied to a site server, and includes:

receiving a content acquisition request sent by a mobile terminal based on content to be displayed on a current page of an applet when the applet is operated;

and reading the content to be displayed on the current page corresponding to the content acquisition request from the database of the site corresponding to the applet by calling a pre-configured interface according to the pre-established corresponding relationship between the applet and the site, and returning the read content to the mobile terminal for displaying.

According to the method and the device, when the mobile terminal runs the applet, the website server receives a content acquisition request sent by the content to be displayed on the current page of the applet; and reading the content to be displayed on the current page corresponding to the content acquisition request from the database of the website corresponding to the applet by calling a preset interface according to the corresponding relation between the applet and the website established in advance, and returning the read content to the mobile terminal for displaying. According to the technical scheme, the corresponding relation between the small programs and the sites is established in advance, the content is obtained from the database of the sites corresponding to the small programs on the basis of the corresponding relation, the site content is directly migrated to the small programs for display, and the conversion from the site content to the small programs is realized; for site owners, site contents are directly checked and alive on the mobile terminal, so that the investment cost for developing small programs by the site owners is reduced; for the small program platform, the content resources displayed by the small program platform are enriched, and the flow of the small program platform is further improved.

Optionally, before the mobile terminal runs the applet, the method further includes:

receiving an input identification of the applet based on an interactive interface of a website building program plug-in which is installed on a website of the website server in advance;

and establishing a corresponding relation between the identification of the small program and the site.

In an optional implementation manner in the above application, the identity of the applet is set through the interactive interface of the website building program plug-in between the mobile terminal running applets, and the corresponding relationship between the identity of the applet and the website is established, so that the establishment mechanism of the corresponding relationship between the applet and the website is perfected, the control of the applet by the user is realized through the interactive interface, and meanwhile, the guarantee is provided for the subsequent content acquisition in the database of the website.

Optionally, after receiving the input identification of the applet, the method further includes:

receiving and storing at least one of the following configuration information input through an interactive interface of the website building program plug-in:

a content category that is exposed in the applet, and/or a content category that is not exposed in the applet;

correspondingly, the step of returning the read content to the mobile terminal for displaying comprises the following steps:

and acquiring the configuration information, screening the read content according to the configuration information, and returning the screened content to the mobile terminal for displaying.

In an optional implementation manner of the above application, by setting configuration information of content types displayed and/or not displayed in the applet, the type control of the content displayed by the applet is realized, and the configuration information is input through an interactive interface of the website building program plug-in, so that convenience of a user in controlling the display of the applet is improved.

Optionally, the configuration information further includes: resource filling information, wherein the resource filling information comprises preset content in the website;

correspondingly, the method further comprises the following steps:

and sending the resource filling information to an applet platform server so that the applet platform server sends the resource filling information to the mobile terminal to display the associated information of the preset content on a webpage of the mobile terminal, and jumping to the applet page to display the preset content when detecting that the user clicks the displayed associated information of the preset content.

In an optional implementation manner of the application, through setting of the resource injection information, the associated information of the preset content in the site can be displayed on the applet platform, and the associated information of the preset content of the site is used as a drainage interface of the site content, so that a user clicks the associated information of the preset content in the applet platform, the preset content in the site can be displayed, and a display manner of the site content is enriched.

Optionally, after receiving and storing the input configuration information through the interactive interface of the website building program plug-in, the method further includes:

and receiving an input applet issuing instruction through an interactive interface provided by the applet platform server, and issuing the applet according to the instruction so as to allow the mobile terminal to download the issued applet.

In an optional implementation manner in the above application, the applet is released and controlled through the interactive interface provided by the applet platform server, so that a release mechanism of the applet corresponding to the website is perfected, a foundation is laid for the follow-up mobile terminal to download the applet, meanwhile, an applet release instruction is input through the interactive interface provided by the applet platform server, and the initiative of a user in the applet release process is improved.

Optionally, before issuing the applet, the method further includes:

receiving input applet style configuration information through an interactive interface provided by the applet platform server, and performing style configuration on an applet to be issued according to the applet style configuration information; and/or the presence of a gas in the atmosphere,

and receiving the modified small program code packet uploaded after the user downloads the small program code packet and modifies the small program code packet through an interactive interface provided by the small program platform server, and taking the modified small program code packet as the small program code packet to be issued.

In an optional implementation manner of the application, the input of the applet style configuration information is performed on the interactive interface provided by the applet platform server, so that the style configuration of the issued applet is realized, the input of the style configuration information is performed by using the interactive interface provided by the applet platform server, and the convenience of performing applet style control by a user is improved.

In another optional implementation manner in the above application, the possibility of editing the applet code package is provided by downloading, modifying and re-uploading the applet code package, and the downloading and uploading of the applet code package is performed by using an interactive interface provided by the applet platform server, so that convenience is provided for the user to perform offline editing or secondary development of the applet code package.

Optionally, the method further includes:

receiving preset registration information of a user on an applet platform, which is sent by the mobile terminal after the touch operation of the user on a preset control of the applet interface is detected;

and determining whether the user registration information of the database of the site contains the preset registration information or not by the site establishing program plug-in, if so, confirming that the user successfully logs in, and otherwise, indicating the user to log in after the registration.

According to an optional implementation manner in the application, the registration of the applet corresponding to the website is realized through the preset registration information of the applet platform, and the convenience of registering the applet is improved.

Optionally, the method further includes:

receiving a content storage request generated by the mobile terminal based on page operation of a user on an applet;

and writing the content to be stored in the content storage request into a database of the site corresponding to the applet according to the pre-established corresponding relationship between the applet and the site.

In an optional implementation manner of the application, content generated by a user through page operation of the applet is collected and correspondingly stored in a database of a site corresponding to the applet, so that integration of site data and the applet data is achieved, and data sources of the database of the site are enriched.

Optionally, according to a correspondence between a pre-established applet and a website, reading, by calling a pre-configured interface, a content that needs to be displayed on a current page corresponding to the content acquisition request from a database of the website corresponding to the applet, and returning the read content to the mobile terminal for displaying, where the reading includes:

and reading the content to be displayed on the current page corresponding to the content acquisition request from the database of the website corresponding to the applet by calling a pre-configured API according to the corresponding relation between the applet and the website, which is pre-installed on the website server, and returning the read content to the mobile terminal for displaying.

In an optional implementation manner of the application, the website building program plug-in pre-installed on the website server is used for acquiring the content to be displayed on the current webpage, so that an acquisition mechanism of the webpage display content is perfected, a content acquisition function is integrated in the form of the website building program plug-in, upgrading and subsequent maintenance of corresponding functions are facilitated, and coupling association with other code logics on the website server is avoided through independent design of the website building program plug-in.

Optionally, before returning the read content to the mobile terminal for displaying, the method further includes:

and preprocessing the read content to enable the preprocessed content to be matched with the browsing format of the mobile terminal.

In an optional implementation manner of the foregoing application, the read content is additionally preprocessed before the read content is returned to the mobile terminal for display, so that the preprocessed content is adapted to the browsing format of the mobile terminal, and the read content is subjected to format conversion, so that the converted content can be normally displayed in the mobile terminal, and a guarantee is provided for displaying different formats of content in a website in the mobile terminal.

Optionally, the site includes a forum type site.

In an optional implementation manner of the application, the site is refined into a forum-type site, so that the presentation of the forum content by the applet is realized, the content resources presented by the applet platform are enriched, and a new export is provided for the presentation and popularization of the forum content.

In a second aspect, an embodiment of the present application further provides a content presentation apparatus for an applet, configured on a site server, including:

the content acquisition request receiving module is used for receiving a content acquisition request sent by the content to be displayed based on the current page of the applet when the applet is operated by the mobile terminal;

and the display content acquisition module is used for reading the content to be displayed on the current page corresponding to the content acquisition request from the database of the site corresponding to the applet by calling a pre-configured interface according to the pre-established corresponding relationship between the applet and the site, and returning the read content to the mobile terminal for display.

In a third aspect, an embodiment of the present application further provides 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, and the instructions are executed by the at least one processor to enable the at least one processor to perform a method for content presentation of an applet as provided in an embodiment of the first aspect.

In a fourth aspect, embodiments of the present application further provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute a content presentation method of a small program as provided in the first aspect.

Other effects of the above alternatives will be described below with reference to specific embodiments.

Detailed Description

The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

Example one

Fig. 1 is a flowchart of a content presentation method of an applet in an embodiment of the present application, which is applicable to a case where data of a website is presented in a mobile terminal through the applet. The method is performed by a content presentation device of the applet, which is implemented by software and/or hardware and is specifically configured in the site server.

A content presentation method of an applet shown in fig. 1 is applied to a site server, and includes:

s101, receiving a content acquisition request sent by a mobile terminal based on content to be displayed on a current page of an applet when the applet is operated.

A user can click the small program in the small program platform of the mobile terminal to run the small program, and when the small program is run, the content to be displayed is determined based on the current page of the small program; or when page switching is carried out in the small program operated by the mobile terminal, acquiring the content to be displayed of the switched target page; and generating a content acquisition request based on the content to be displayed, and sending the content acquisition request to the site server. Correspondingly, the site server receives the content acquisition request and acquires the content required to be displayed on the current page of the applet by analyzing the content acquisition request.

The content that the current page needs to be displayed comprises the following contents: at least one of content that the user needs to browse, content that needs to be downloaded, advertisements, user information, and site reminder messages.

And S102, reading the content to be displayed on the current page corresponding to the content acquisition request from the database of the site corresponding to the applet by calling a pre-configured interface according to the pre-established corresponding relationship between the applet and the site, and returning the read content to the mobile terminal for displaying.

Wherein the sites include forum type sites and/or blog type sites, etc.

The corresponding relation between the small program and the site is pre-established in the site server, the site corresponding to the small program can be determined according to the corresponding relation, the reading of the content to be displayed on the current page corresponding to the content acquisition request is carried out from the database of the determined site by calling a pre-configured interface, and the read content is fed back to the mobile terminal for displaying.

For example, the correspondence relationship between the applet and the site may be stored locally in the site server in advance, and the site corresponding to the applet is queried locally in the site server based on the identification of the applet, so as to determine the database corresponding to the site. It can be understood that, in order to reduce the space occupation of the data stored in the site server, the corresponding relationship between the applet and the site may be migrated to another storage device or a cloud end in communication connection with the site server, and the query of the corresponding relationship is performed in an interface call manner.

In an optional embodiment of the present Application, according to a preset correspondence between an applet and a website, a preset Interface is called to read a content that needs to be displayed on a current page corresponding to a content acquisition request from a database of the website corresponding to the applet, and a website building program plugin installed on a website server in advance may read the content that needs to be displayed on the current page corresponding to the content acquisition request from the database of the website corresponding to the applet in the database by calling a preset API (Application Programming Interface) according to the preset correspondence between the applet and the website.

It can be understood that the website building program plug-in pre-installed on the website server integrates the corresponding relation query and display content acquisition functions, perfects the acquisition mechanism of the page display content, integrates the content acquisition function in the form of the website building program plug-in, facilitates the upgrade and subsequent maintenance of the corresponding function, and avoids the coupling association with other code logics on the website server through the independent design of the website building program plug-in.

For example, the correspondence between the applet and the site may be set by the site owner or the site operator at the initial stage of establishment of the applet. Optionally, before the mobile terminal runs the applet, receiving an input identifier of the applet based on an interactive interface of a website building program plugin installed on a website of the website server in advance; and establishing a corresponding relation between the identification of the small program and the site.

It should be noted that, in order to ensure the uniqueness of the correspondence between the applet identifier and the site, after the applet identifier is input through the interactive interface of the site builder plug-in, the input applet identifier needs to be sent to the applet platform server for confirmation, so as to ensure the validity and uniqueness of the applet identifier. Illustratively, the identification of the applet may be the name of the applet.

It should be noted that, in order to implement the conversion from the site content to the applet, in the prior art, an applet interface and interaction need to be developed, and a large number of data interfaces need to be performed to provide the data of the site for the applet to use, which increases the conversion cost of the site content and improves the technical threshold of the operator in the conversion process.

In an optional implementation manner in the above application, the user can conveniently control the applet through the interactive interface of the website building program plug-in, so that the establishment of the corresponding relationship between the applet and the website can be realized without modifying the bottom code in the establishment process of the applet, and a guarantee is provided for subsequent content acquisition in the database of the website. In addition, the conversion of the site contents to the small programs can be realized through the installation of the site building program plug-in, and the technical requirements on operators in the conversion process are reduced.

In order to facilitate the control of the content category displayed in the applet, configuration information can be input in an interactive interface of the website building program plug-in after the identification of the applet is input in the interactive interface, the corresponding website server receives and stores the input configuration information through the interactive interface of the website building program plug-in, and when the read content is returned to the mobile terminal for display, the configuration information is obtained, the read content is screened according to the input configuration information, and the screened content is returned to the mobile terminal for display. Wherein the configuration information comprises at least one of: a content category that is exposed in the applet, and/or a content category that is not exposed in the applet.

In order to reduce the number of operations for a user to enter configuration information via the interactive interface of the website builder plug-in, the configuration information typically includes content categories that are not exposed in the applet. Illustratively, the interactive interface of the plug-in of the website building program can be adopted to limit the content displayed in the small program by means of content category selection.

It is understood that, in order to enrich the content presented in the applet, the presentation of the corresponding advertisement information within the site may also be performed in the applet. Illustratively, the configuration information corresponding to the input advertisement information can be received and stored through the interactive interface of the website building program plug-in. For example, the configuration information corresponding to the advertisement information may be an advertisement category shown in the applet and/or an advertisement category not shown in the applet, so as to define the advertisement information shown in the applet.

In order to reduce the operation times of the user, the advertisement category and the configuration information corresponding to the content category can be input together in the interactive interface of the website building program plug-in. Typically, the configuration information entered includes content categories not exposed in the applet and advertisement categories exposed in the applet.

In an optional embodiment of the present application, in order to enrich the display mode of the site content, thereby increasing the exposure of the site content, the resource injection information can be input as configuration information through the interactive interface of the site building program plug-in; the resource filling information comprises preset content in the site. Correspondingly, the site server receives and stores the input resource filling information through the interactive interface of the site building program plug-in; and sending the resource filling information to the small program platform server so that the small program platform server sends the resource filling information to the mobile terminal to display the associated information of the preset content on the webpage of the mobile terminal, and jumping to the webpage of the small program to display the preset content when detecting that the user clicks the displayed associated information of the preset content.

Optionally, the resource injection information is delivered to the middle-high end of the mobile terminal, and the resource injection information may be delivered in a feed stream (i.e., an information stream that is continuously updated and presented to the user content).

Illustratively, the content displayed by the mobile terminal applet is checked, and after the applet platform server receives the resource injection information, the applet platform server can screen the resource injection information; correspondingly, the resource irrigation information after screening is sent to the mobile terminal.

The associated information of the preset content comprises at least one of a title, an abstract and a header of the preset content.

Illustratively, the resource infusion information can be essence posts, and the essence posts are selected in batches through an interactive interface of the building station program plug-in and pushed in an applet platform to be grabbed by a search engine or realize distribution of information flow. The essence post is specified and determined by a site owner or a site maintainer, for example, at least one of a setting author, a setting topic, an interaction situation and the like is set. Wherein the interaction condition may be at least one of praise, comment and collection.

According to the method and the system, when the mobile terminal runs the applet, the website server receives a content acquisition request sent by the content to be displayed on the current page of the applet; and reading the content to be displayed on the current page corresponding to the content acquisition request from the database of the website corresponding to the applet by calling a preset interface according to the corresponding relation between the applet and the website established in advance, and returning the read content to the mobile terminal for displaying. According to the technical scheme, the corresponding relation between the small programs and the sites is established in advance, the content is obtained from the database of the sites corresponding to the small programs on the basis of the corresponding relation, the site content is directly migrated to the small programs for display, and the conversion from the site content to the small programs is realized; for site owners, site contents are directly checked and alive on the mobile terminal, so that the investment cost for developing small programs by the site owners is reduced; for the small program platform, the content resources displayed by the small program platform are enriched, and the flow of the small program platform is further improved.

On the basis of the technical solutions of the above embodiments, in order to ensure that the applet in the mobile terminal can normally display the contents with different formats in the website, the website server may be further added to preprocess the read contents before returning the read contents to the mobile terminal for display, so that the preprocessed contents are adapted to the browsing format of the mobile terminal.

Illustratively, the site server can perform format conversion on the acquired site contents, so that the format-converted contents can be identified by the mobile terminal. For example, the obtained attachment is formatted so that the fields in the converted attachment can be normally recognized by the mobile terminal.

It can be understood that, because the content display of the mobile terminal may have a certain difference in composition from the display of the website at the network end, after the read content is preprocessed by the website server, before the preprocessed content is displayed by the applet of the mobile terminal, the obtained content may be subjected to composition conversion by the mobile terminal.

Example two

Fig. 2 is a flowchart of a method for presenting content of an applet in a second embodiment of the present application, and the second embodiment of the present application is optimized and improved on the basis of the technical solutions of the foregoing embodiments.

A method for displaying content of an applet as shown in fig. 2 includes:

s201, receiving an input identification of the small program based on an interactive interface of a website building program plug-in which is installed on a website of the website server in advance.

S202, establishing a corresponding relation between the identification of the small program and the site.

S203, receiving and storing the input configuration information through the interactive interface of the website building program plug-in.

And S204, receiving an input applet issuing instruction through an interactive interface provided by the applet platform server, and issuing the applet according to the instruction so that the mobile terminal can download the issued applet.

The method comprises the steps that an applet issuing instruction is input through an interactive interface provided by an applet platform server to indicate issuing operation of the applet, so that the mobile terminal can download the issued applet and further install and operate in the mobile terminal.

It is understood that, in order to facilitate the user to know the relevant information of the applet, in the applet publishing process, the accessory information of the applet, such as the applet profile, etc., may be added in addition to the link address containing the applet installation package. In order to facilitate deep understanding of the published applets by users, an applet preview link can also be added when the applets are published, so that the interfaces of the published applets can be previewed through the applet preview link. Illustratively, the applet preview link may be presented by way of a web address or a two-dimensional code.

It can be understood that, in order to implement the personalized setting of the applet style, before the applet is published, the input applet style configuration information may be received through an interactive interface provided by the applet platform server, and the style configuration may be performed on the applet to be published according to the applet style configuration information. The applet style configuration information includes, but is not limited to, color scheme, font, title, etc.

It should be noted that, in order to ensure the validity of the applet release, an audit button may be further set in an interactive interface provided by the applet platform server, and a user triggers through the audit button to send the applet to be released to a relevant department for audit, and directly generates an applet release instruction when the audit is passed, and triggers the applet release operation; and when the audit fails, feeding back audit failure prompt information through an interactive interface provided by the applet platform server so as to instruct to edit and modify the applet to be issued.

For example, when the applet is released, the interactive interface provided by the applet platform server provides qualification information of the site corresponding to the applet, so that the relevant part can audit the qualification of the site.

In an optional implementation manner of the embodiment of the application, before the applet is released, the modified applet code package uploaded after the applet code package is downloaded and modified by a user is received through an interactive interface provided by the applet platform server, and the modified applet code package is used as the applet code package to be released.

S205, receiving a content acquisition request sent by the mobile terminal based on the content to be displayed on the current page of the applet when the downloaded applet is operated.

And S206, reading the content to be displayed on the current page corresponding to the content acquisition request from the database of the site corresponding to the applet by calling a pre-configured interface according to the pre-established corresponding relationship between the applet and the site.

S207, the configuration information is obtained, the read content is screened according to the configuration information, and the screened content is returned to the mobile terminal for displaying.

According to the method and the device, after the input configuration information is received and stored through the interactive interface of the website building program plug-in, the input applet issuing instruction is received through the interactive interface provided by the applet platform server, so that the applet platform server issues the applet according to the applet issuing instruction for the mobile terminal to download, an applet issuing mechanism is perfected, a foundation is laid for the follow-up mobile terminal to download the applet, meanwhile, the applet issuing instruction is input through the interactive interface provided by the applet platform server, and the initiative of a user in the applet issuing process is improved.

EXAMPLE III

Fig. 3 is a flowchart of a method for presenting content of an applet in a third embodiment of the present application, where the third embodiment of the present application performs optimization and improvement on the basis of the technical solutions of the foregoing embodiments.

Further, in the process of displaying the content of the applet, additionally receiving preset registration information of the user on the applet platform, which is sent by the mobile terminal after the touch operation of the user on a preset control of the applet interface is detected; and the website building program plug-in determines whether the user registration information of the database of the website contains the preset registration information, if so, the user is confirmed to successfully log in, and otherwise, the user is instructed to log in after registration, so that the applet can be directly logged in based on the preset registration information of the applet platform, and the convenience of logging in the applet is improved.

A content presentation method of an applet as shown in fig. 3 includes:

s301, receiving a content acquisition request sent by the mobile terminal based on the content to be displayed on the current page of the applet when the applet is running.

S302, according to the pre-established corresponding relation between the small program and the site, reading the content to be displayed on the current page corresponding to the content acquisition request from the database of the site corresponding to the small program by calling a pre-configured interface, and returning the read content to the mobile terminal for displaying.

And S303, receiving preset registration information of the user on the applet platform, which is sent by the mobile terminal after the touch operation of the user on a preset control of the applet interface is detected.

The preset registration information may be a mobile phone number, an email address, a user name, or the like of the user.

When a user performs touch operation on a preset control of an applet interface to trigger page jump or other associated information display, if the current user does not log in a user account in the applet, the login operation of the user in the user account of the applet is directly triggered.

The preset control can be a login button, or a control which can only display related content after logging in an account. Such as a history query button.

When the applet platform performs the login operation of the applet, in order to simplify the login operation of the user, after the touch operation is performed, the applet platform server sends the preset registration information of the user in the applet platform, that is, the preset registration information of the user currently logging in the applet platform, to the site server.

S304, determining whether the user registration information of the database of the site contains the preset registration information by the site building program plug-in; if yes, go to S305A; otherwise, S305B is executed.

S305A, confirming the successful login of the user.

S305B, instructs the user to log in after registration.

Determining whether user registration information in a database of a site corresponding to the applet contains preset registration information or not through a site building program plug-in installed by a site server; when the fact that the preset registration information is contained is confirmed, logging in the small program is directly carried out on the basis of the preset registration information, and relevant information for confirming that the user successfully logs in is returned to the mobile terminal; and when the preset registration information is determined not to be contained, indicating the user to log in after registration. The user registration can be completed in the applet or in the registration web page of the site. To facilitate user operation, user registration is typically done in the applet so that the user can log in for use in the applet or website webpage based on the login account registered in the applet.

The user registration information comprises user account information and user account auxiliary information. For example, the user account information is a mobile phone number, and the user account attachment information may be a mailbox address corresponding to the mobile phone number.

In an optional implementation manner of the embodiment of the present application, when it is determined that the preset registration information is included, or after the user completes registration of the applet, in order to facilitate login of a user account of the applet next time, an authorization prompt may be fed back to the user, after the user determines authorization, an association relationship between the preset registration information of the user on the applet platform and the user registration information of the applet is established, and after authorization, the login applet is directly associated when the user logs in the applet platform account.

It should be noted that the technical solution formed by S303 to S305A or S303 to S305B may be executed before S301 to S302, and the sequence of executing the two parts is not limited in this embodiment. Namely, the small program is logged in first, and then the content is displayed when the small program is operated; or the method can be executed after S301-S302, that is, the applet is operated to display the page, and then the applet login is performed after the touch operation of the user on the preset control is detected.

According to the method and the device, the preset registration information of the applet platform is additionally used, synchronous login of the applet corresponding to the website is achieved, and convenience in applet login is improved.

On the basis of the technical solutions of the above embodiments, in order to synchronize the content generated by the user through the page operation of the applet to the website webpage, a content storage request generated by the mobile terminal based on the page operation of the user on the applet may also be received during the content presentation process of the applet; and writing the content to be stored in the content storage request into a database of the site corresponding to the applet according to the pre-established corresponding relationship between the applet and the site.

Wherein the page operation comprises at least one of registration, approval, comment, collection and the like. Correspondingly, the content to be stored comprises at least one of user registration information, approval information, comment information, collection information and the like.

According to the method and the device, the content generated by the page operation of the user on the applet is collected and correspondingly stored in the database of the website corresponding to the applet, so that integration of the website data and the applet data is realized, and data sources of the database of the website are enriched.

Example four

Fig. 4 is a flowchart of a content presentation method of an applet in a fourth embodiment of the present application, and the embodiment of the present application provides a preferred implementation manner based on the technical solutions of the foregoing embodiments.

A content presentation method of an applet shown in fig. 4 includes:

s401, issuing a website building program plug-in through an interactive interface of the applet platform server.

S402, the station server downloads the station building program plug-in.

And S403, the site server installs the site building program plug-in.

S404, the site server sets the identification of the small program based on the interactive interface of the installed site building program plug-in.

S405, establishing a corresponding relation between the identification of the small program and the site.

S406, inputting display configuration information through an interactive interface of the station building program plug-in.

Wherein the resource filling information comprises essence posts recommended by the station leader and the like.

The display configuration information is used for limiting the category of the content displayed by the small program and comprises at least one of the following information: content categories and advertisement categories that are exposed in the applet, and content categories and advertisement categories that are not exposed in the applet.

And S407, performing style configuration on the applet to be issued through an interactive interface of the applet platform server.

And S408, issuing the applet through an interactive interface of the applet platform server.

And S409, downloading the released small program code packet through the interactive interface of the small program platform server, and uploading and releasing the small program code packet again after modification.

And S410, downloading the small program by the mobile terminal.

And S411, the mobile terminal installs the downloaded small programs.

And S412, when the mobile terminal runs the applet, generating a content acquisition request of the content to be displayed.

S413, the mobile terminal sends a content acquisition request to the site server.

And S414, calling an API (application programming interface) from the database of the site corresponding to the applet by the site establishing program plug-in according to the corresponding relation between the applet and the site, and reading the content to be displayed corresponding to the content obtaining request.

And S415, the site server screens the read content according to the display configuration information.

And S416, the site server feeds back the screened contents to the mobile terminal.

S417, the mobile terminal preprocesses the screened content to enable the preprocessed content to be matched with the browsing format of the mobile terminal.

And S418, the mobile terminal typesets and displays the preprocessed content through the small program.

And S419, inputting resource filling information through an interactive interface of the station building program plug-in.

It should be noted that, when inputting the resource filling information through the interactive interface of the website building program plug-in, the process may be performed simultaneously with the step S406 of inputting the display configuration through the website building program plug-in.

And S420, sending the resource filling information to the applet platform server.

S421, the small program platform server screens the resource injection information.

Illustratively, the screening of the resource injection information can be performed according to the display requirements of the applet platform, such as the display subject, the display quantity, or the user search keywords.

S422, the screened resource injection information is issued to the mobile terminal in a feed stream form.

And S423, a feed page of the mobile terminal shows an abstract and/or a header of an essence post contained in the resource filling information as a drainage inlet.

S424, when the user clicks the drainage inlet, the user jumps to the page of the small program to display the related content of the essence post.

It should be noted that S420-S424 and S412-S417 may be executed simultaneously or sequentially, and the specific sequence of executing the two parts is not limited in this embodiment.

And S425, acquiring a login account of the user on the applet platform when the login operation of the applet interface is detected.

And S426, the mobile terminal sends the login account of the user on the applet platform to the site server.

And S427, the site server determines whether the database of the site contains the login account number through the site building program plug-in.

And S428A, if yes, feeding back the login success of the mobile terminal user.

S428B, if no, indicates the user to log in after registration.

It should be noted that the technical solutions of S425-S428A or S425-S428B can be performed before S412-S417 when the applet logs in, that is, the applet logs in first, and then the applet runs to perform content display; alternatively, the method can also be performed after S412-S417, that is, the applet is run first, and then the applet is logged in when the login operation is detected.

EXAMPLE five

Fig. 5 is a configuration diagram of a content presentation apparatus of an applet in a fifth embodiment of the present application, and the embodiment of the present application is applied to a case where data of a network site is presented in a mobile terminal by the applet. The device is realized by software and/or hardware and is specifically configured in the site server.

A content presentation apparatus 500 of an applet shown in fig. 5 includes: a content acquisition request receiving module 501 and a display content acquisition module 502. Wherein,

a content obtaining request receiving module 501, configured to receive a content obtaining request sent by a mobile terminal based on a content that needs to be displayed on a current page of an applet when the applet runs;

the display content obtaining module 502 is configured to, according to a correspondence between a pre-established applet and a website, read, by calling a pre-configured interface, a content that needs to be displayed on a current page corresponding to the content obtaining request from a database of the website corresponding to the applet, and return the read content to the mobile terminal for display.

According to the content acquisition request receiving module, a content acquisition request sent by the content to be displayed on the current page of the applet is received when the applet is operated by the mobile terminal; and reading the content to be displayed on the current page corresponding to the content acquisition request from the database of the website corresponding to the applet by calling a preset interface according to the corresponding relation between the applet and the website established in advance through the displayed content acquisition module, and returning the read content to the mobile terminal for displaying. According to the technical scheme, the corresponding relation between the small programs and the sites is established in advance, the content is obtained from the database of the sites corresponding to the small programs on the basis of the corresponding relation, the site content is directly migrated to the small programs for display, and the conversion from the site content to the small programs is realized; for site owners, site contents are directly checked on the mobile terminal, so that the investment cost for developing small programs by the site owners is reduced; for the small program platform, the content resources displayed by the small program platform are enriched, and the flow of the small program platform is further improved.

Further, the apparatus further includes a correspondence relationship establishing module, specifically configured to:

before the mobile terminal runs the applet, receiving an input identifier of the applet based on an interactive interface of a website building program plug-in which is installed on a website of the website server in advance;

and establishing a corresponding relation between the identification of the small program and the site.

Further, the apparatus further includes a configuration information storage module, specifically configured to:

after receiving the input identification of the small program, receiving and saving at least one item of the following configuration information input through an interactive interface of the website building program plug-in:

a content category that is exposed in the applet, and/or a content category that is not exposed in the applet;

correspondingly, the display content obtaining module 502, when executing to return the read content to the mobile terminal for display, is specifically configured to:

and acquiring the configuration information, screening the read content according to the configuration information, and returning the screened content to the mobile terminal for displaying.

Further, the configuration information further includes: resource filling information, wherein the resource filling information comprises preset contents in the website;

correspondingly, the device further comprises a resource irrigation information screening module, which is specifically used for:

and sending the resource filling information to an applet platform so that the applet platform sends the resource filling information to the mobile terminal, displays the associated information of the preset content on a webpage of the mobile terminal, and jumps to the applet page to display the preset content when detecting that the user clicks the displayed associated information of the preset content.

Further, the apparatus further includes an applet publishing module configured to:

after the input configuration information is received and stored through the interactive interface of the website building program plug-in, an input applet issuing instruction is received through the interactive interface provided by the applet platform server, and the applet is issued according to the instruction so that the mobile terminal can download the issued applet.

Further, the apparatus further includes an applet publishing editing module, specifically configured to, before publishing the applet, perform the following operations:

receiving input applet style configuration information through an interactive interface provided by the applet platform server, and performing style configuration on an applet to be issued according to the applet style configuration information; and/or the presence of a gas in the gas,

and receiving the modified small program code packet uploaded after the user downloads the small program code packet and modifies the small program code packet through an interactive interface provided by the small program platform server, and taking the modified small program code packet as the small program code packet to be issued.

Further, the apparatus further includes an applet login module, specifically configured to:

receiving preset registration information of a user on an applet platform, which is sent by the mobile terminal after the touch operation of the user on a preset control of the applet interface is detected;

and the station building program plug-in determines whether the user registration information of the database of the station contains the preset registration information, if so, the user is confirmed to log in successfully, and otherwise, the user is indicated to log in after registration.

Further, the apparatus further includes an applet content storage module, specifically configured to:

receiving a content storage request generated by the mobile terminal based on page operation of a user on an applet;

and writing the content to be stored in the content storage request into a database of the site corresponding to the applet according to the pre-established corresponding relationship between the applet and the site.

Further, the content obtaining module 502 is specifically configured to:

and reading the content to be displayed on the current page corresponding to the content acquisition request from the database of the site corresponding to the applet by calling a pre-configured application program interface API according to the pre-established corresponding relationship between the applet and the site by the website building program plug-in pre-installed on the site server, and returning the read content to the mobile terminal for displaying.

Further, the apparatus further comprises a preprocessing module configured to:

and preprocessing the read content before returning the read content to the mobile terminal for displaying so as to enable the preprocessed content to be matched with the browsing format of the mobile terminal.

Further, the sites include forum-type sites.

The content presentation device of the applet can execute the content presentation method of the applet provided by any embodiment of the application, and has functional modules and beneficial effects corresponding to the content presentation method of the applet.

EXAMPLE six

According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.

Fig. 6 is a block diagram of an electronic device that implements the content presentation method of an applet according to the embodiment of the present application. 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 phones, smart phones, 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 applications described and/or claimed herein.

As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing some of the necessary operations (e.g., as an array of servers, a group of blade servers, or a multi-processor system). In fig. 6, one processor 601 is taken as an example.

The memory 602 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the content presentation method of the applet provided herein. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to execute a content presentation method of an applet provided by the present application.

The memory 602 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for content presentation of an applet in the embodiment of the present application (for example, the content presentation apparatus 500 of an applet shown in fig. 5 includes a content acquisition request receiving module 501 and a presentation content acquiring module 502). The processor 601 executes various functional applications of the server and data processing, i.e., implementing the content presentation method of the applet in the above-described method embodiment, by running the non-transitory software program, instructions and modules stored in the memory 602.

The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the electronic device implementing the content presentation method of the applet, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 optionally includes memory located remotely from the processor 601, and these remote memories may be connected over a network to an electronic device that executes the content presentation method of the applet. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The electronic device executing the content presentation method of the applet may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.

The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus that executes the content presentation method of the applet, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or other input devices. The output devices 604 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.

Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.

These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.

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 a pointing device (e.g., a mouse or a trackball) by which a user may 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 can 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, speech, or tactile input.

The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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 clients and servers. A client and server are generally 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.

According to the technical scheme of the embodiment of the application, the website server receives a content acquisition request sent by the content to be displayed based on the current page of the applet when the mobile terminal runs the applet; and reading the content to be displayed on the current page corresponding to the content acquisition request from the database of the website corresponding to the applet by calling a preset interface according to the corresponding relation between the applet and the website established in advance, and returning the read content to the mobile terminal for displaying. According to the technical scheme, the corresponding relation between the small programs and the sites is established in advance, the content is obtained from the database of the sites corresponding to the small programs on the basis of the corresponding relation, the site content is directly migrated to the small programs for display, and the conversion from the site content to the small programs is realized; for site owners, site contents are directly checked on the mobile terminal, so that the investment cost for developing small programs by the site owners is reduced; for the small program platform, the content resources displayed by the small program platform are enriched, and the flow of the small program platform is further improved.

It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.

The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4