CN113449223A - Recommender information transfer method, device, equipment and storage medium - Google Patents

Recommender information transfer method, device, equipment and storage medium Download PDF

Info

Publication number
CN113449223A
CN113449223A CN202110703497.3A CN202110703497A CN113449223A CN 113449223 A CN113449223 A CN 113449223A CN 202110703497 A CN202110703497 A CN 202110703497A CN 113449223 A CN113449223 A CN 113449223A
Authority
CN
China
Prior art keywords
recommender
page
request
information
cookie object
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
CN202110703497.3A
Other languages
Chinese (zh)
Inventor
叶磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weikun Shanghai Technology Service Co Ltd
Original Assignee
Weikun Shanghai Technology Service 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 Weikun Shanghai Technology Service Co Ltd filed Critical Weikun Shanghai Technology Service Co Ltd
Priority to CN202110703497.3A priority Critical patent/CN113449223A/en
Publication of CN113449223A publication Critical patent/CN113449223A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of network information, and discloses a recommender information transfer method, a recommender information transfer device, recommender information transfer equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of inviting a registration page, generating a Get request according to a recommender mark in address information, accessing a server according to the Get request, obtaining a target response value generated by the server according to the Get request, storing a Cookie object of the target response value in a browser, obtaining a page click request, responding to the page click request, generating a page access request according to the page information to be accessed, the recommender mark and the recommender information of the Cookie object in the browser, and accessing the server according to the page access request. The method and the device realize recommender identification and recommender information transmission in a complex registration process with a plurality of pages, and avoid the technical problem that recommender identification is easy to lose due to the fact that recommender identification is transmitted through URL.

Description

Recommender information transfer method, device, equipment and storage medium
Technical Field
The present application relates to the field of network information technologies, and in particular, to a method, an apparatus, a device, and a storage medium for information delivery of a recommender.
Background
The existing internet customer obtaining mode transmits the recommender identification through the URL, the mode for transmitting the recommender identification is simple, the requirement for scenes is low, an invitation registration page is adopted, and a user fills a mobile phone number in the invitation registration page and finishes the registration process after verification of an authentication code is completed.
When a complex registration process is encountered, for example, a user firstly enters an invitation registration page, a button 'test' is arranged on the invitation registration page, the user can register as a new user only after the test is completed, the user clicks the 'test' button to jump to the test page, the user can click the 'register immediately' button to jump to the user registration page when all the test problems of the test page are completed, the user needs to operate on three pages in the whole registration process, and at the moment, if the recommender identification corresponding to the user is transmitted through a URL (uniform resource locator), layer-by-layer transmission is required among the pages, so that the recommender identification is easy to lose.
Disclosure of Invention
The application mainly aims to provide a recommender information transmission method, a recommender information transmission device and a storage medium, and aims to solve the technical problem that in the prior art, a recommender identifier is transmitted through a URL in an internet customer obtaining mode, and the recommender identifier is easily lost when a complex registration process is encountered.
In order to achieve the above object, the present application provides a recommender information delivery method, including:
acquiring an operation request aiming at an invitation registration link through a browser, wherein the address information of the invitation registration link comprises a recommender identifier;
responding to the operation request through the browser, and opening a page according to the address information to obtain an invitation registration page;
generating a Get request according to the recommender identification in the address information through the invitation registration page, and accessing a server according to the Get request;
and acquiring a target response value generated by the server according to the Get request through the invitation registration page, wherein a Cookie object of the target response value comprises: the recommender identification and recommender information corresponding to the recommender identification;
storing the Cookie object of the target response value in the browser through the invitation registration page;
acquiring a page click request through the invitation registration page, wherein the page click request carries page information to be accessed;
responding to the page click request through the invitation registration page, generating a page access request according to the page information to be accessed, the recommender identification of the Cookie object in the browser and the recommender information, and accessing the server according to the page access request.
Further, the step of generating a Get request according to the recommender identifier in the address information through the invitation registration page, and accessing the server according to the Get request includes:
analyzing the recommender identification of the address information through the invitation registration page to obtain a recommender identification to be transmitted;
generating the Get request according to the recommender identification to be transmitted through the invitation registration page;
and sending the Get request to the server through the invitation registration page.
Further, the step of generating the Get request according to the identifier of the recommender to be delivered through the invitation registration page includes:
and generating the Get request through the invitation registration page, and taking the identifier of the recommender to be transmitted as a parameter of the Get request when the Get request is generated.
Further, the step of generating, by the server, a target response value according to the Get request includes:
through the server, carrying out recommender identification analysis on the parameters of the Get request to obtain a recommender identification to be matched;
acquiring a recommender information list through the server;
searching the recommender identification to be matched in the recommender information list through the server to obtain the recommender information corresponding to the recommender identification to be matched;
generating a Cookie object according to the recommender identification to be matched and the recommender information corresponding to the recommender identification to be matched through the server to obtain the Cookie object to be packaged;
and encapsulating the Cookie object to be encapsulated into a response value corresponding to the Get request through the server to obtain the target response value.
Further, the step of generating, by the server, a Cookie object according to the identifier of the recommender to be matched and the recommender information corresponding to the identifier of the recommender to be matched to obtain the Cookie object to be encapsulated includes:
acquiring a preset effective duration through the server;
and generating the Cookie object according to the identifier of the recommender to be matched and the recommender information corresponding to the identifier of the recommender to be matched by the server side by adopting a CookieGenerator and the preset effective duration, so as to obtain the Cookie object to be packaged, wherein the CookieGenerator packages the identifier of the recommender to be matched and the recommender information corresponding to the identifier of the recommender to be matched into Cookie value of the Cookie object, and the CookieGenerator packages the preset effective duration into MaxAge of the Cookie object.
Further, the step of storing the Cookie object of the target response value in the browser through the invitation registration page includes:
analyzing the Cookie object to the target response value through the invitation registration page to obtain the Cookie object to be stored;
judging whether the browser has the Cookie object which is the same as the generation party of the Cookie object to be stored or not through the invitation registration page;
when the Cookie object which is the same as the generation party of the Cookie object to be stored exists in the browser, covering the Cookie object which is the same as the Cookie object to be stored in the browser from the source through the invitation registration page according to the Cookie object to be stored;
and when the Cookie object which is the same as the generation party of the Cookie object to be stored does not exist in the browser, adding the Cookie object to be stored into the browser through the invitation registration page.
Further, the step of registering a page by the invitation, responding to the page click request, generating a page access request according to the page information to be accessed, the recommender identification of the Cookie object in the browser and the recommender information, and accessing the server according to the page access request includes:
responding to the page click request through the invitation registration page, and acquiring the Cookie object from the browser to obtain the Cookie object to be analyzed;
analyzing the recommender identification and the recommender information of the Cookie object to be analyzed through the invitation registration page to obtain a recommender identification to be packaged and recommender information to be packaged;
generating a page access request according to the page information to be accessed, the recommender identification to be packaged and the recommender information to be packaged through the invitation registration page;
and accessing the server according to the page access request through the invitation registration page.
The application also provides a recommender information transfer device, the device includes:
the operation request acquisition module is used for acquiring an operation request aiming at an invitation registration link through a browser, wherein the address information of the invitation registration link comprises a recommender identifier;
the invitation registration page acquisition module is used for responding to the operation request through the browser and opening a page according to the address information to obtain an invitation registration page;
a Get request sending module, configured to generate a Get request according to the recommender identifier in the address information through the invitation registration page, and access a server according to the Get request;
a target response value obtaining module, configured to obtain, through the invitation registration page, a target response value generated by the server according to the Get request, where a Cookie object of the target response value includes: the recommender identification and recommender information corresponding to the recommender identification;
a Cookie object storage module, configured to store the Cookie object of the target response value in the browser through the invitation registration page;
the page click request acquisition module is used for acquiring a page click request through the invitation registration page, wherein the page click request carries page information to be accessed;
and the page click request response module is used for responding to the page click request by registering the page through the invitation, generating a page access request according to the page information to be accessed, the recommender identification of the Cookie object in the browser and the recommender information, and accessing the server according to the page access request.
The present application further proposes a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also proposes a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any of the above.
According to the method, the device, the equipment and the storage medium for transmitting the recommender information, a Get request is generated according to the recommender identification in the address information by inviting a registration page, a server is accessed according to the Get request, and a target response value generated by the server according to the Get request is obtained, wherein a Cookie object of the target response value comprises: the method comprises the steps of recommending a person identifier and recommending person information corresponding to the person identifier, storing a Cookie object with a target response value in a browser, obtaining a page click request, wherein the page click request carries page information to be accessed, responding to the page click request, generating a page access request according to the page information to be accessed and the recommending person identifier and recommending person information of the Cookie object in the browser, and accessing a server according to the page access request, so that the recommending person identifier and recommending person information are transmitted in a complex registration process with a plurality of pages, and the technical problem that the recommending person identifier is easy to lose due to the fact that the recommending person identifier is transmitted through a Uniform Resource Locator (URL) is solved; and the server side only needs to determine the recommender information corresponding to the recommender identification once, so that the response efficiency of the server side is improved.
Drawings
Fig. 1 is a schematic flowchart of a recommender information delivery method according to an embodiment of the present application;
FIG. 2 is a block diagram schematically illustrating a structure of a recommender information delivery apparatus according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In order to solve the technical problem that in the prior art, the identity of a recommender is transmitted through a URL in an internet customer obtaining mode, and the identity of the recommender is transmitted through the URL when a complex registration process is encountered, so that the identity of the recommender is easily lost, the application provides a recommender information transmission method, and the method is applied to the technical field of network information.
Referring to fig. 1, an embodiment of the present application provides a recommender information delivery method, where the method includes:
s1: acquiring an operation request aiming at an invitation registration link through a browser, wherein the address information of the invitation registration link comprises a recommender identifier;
s2: responding to the operation request through the browser, and opening a page according to the address information to obtain an invitation registration page;
s3: generating a Get request according to the recommender identification in the address information through the invitation registration page, and accessing a server according to the Get request;
s4: and acquiring a target response value generated by the server according to the Get request through the invitation registration page, wherein a Cookie object of the target response value comprises: the recommender identification and recommender information corresponding to the recommender identification;
s5: storing the Cookie object of the target response value in the browser through the invitation registration page;
s6: acquiring a page click request through the invitation registration page, wherein the page click request carries page information to be accessed;
s7: responding to the page click request through the invitation registration page, generating a page access request according to the page information to be accessed, the recommender identification of the Cookie object in the browser and the recommender information, and accessing the server according to the page access request.
In this embodiment, a Get request is generated according to a recommender identifier in address information by inviting a registration page, a server is accessed according to the Get request, and a target response value generated by the server according to the Get request is obtained, where a Cookie object of the target response value includes: the method comprises the steps of recommending a person identifier and recommending person information corresponding to the person identifier, storing a Cookie object with a target response value in a browser, obtaining a page click request, wherein the page click request carries page information to be accessed, responding to the page click request, generating a page access request according to the page information to be accessed and the recommending person identifier and recommending person information of the Cookie object in the browser, and accessing a server according to the page access request, so that the recommending person identifier and recommending person information are transmitted in a complex registration process with a plurality of pages, and the technical problem that the recommending person identifier is easy to lose due to the fact that the recommending person identifier is transmitted through a Uniform Resource Locator (URL) is solved; and the server side only needs to determine the recommender information corresponding to the recommender identification once, so that the response efficiency of the server side is improved.
For S1, the invitation registration link includes, but is not limited to: address link information and two-dimensional code information.
When the invitation registration link is address link information, the recommended person clicks the invitation registration link to generate an operation request, and a browser is called through the operation request; when the invitation registration link is the two-dimensional code information, the recommended person scans the invitation registration link to generate an operation request, and calls the browser through the operation request.
The recommender identifier may be an identifier that uniquely identifies a recommender, such as a recommender ID.
For example, the address information of the invite registration link is http:// www.luagent.com/register? The invitest name is 'tjr123456789', and the value in the invitest name is the recommender id, so the recommender id is tjr123456789, which is not specifically limited by the example.
And S2, responding to the operation request through the browser, opening a Web page according to the address information, and taking the opened Web page as the invitation registration page.
The Web, i.e., the global wide area network.
For S3, after the invitation registration page is opened, the address information is actively analyzed for the recommender identification, a Get request is generated according to the recommender identification obtained by analysis, and the Get request is sent to a server. Therefore, the recommender identification of the address information of the invitation registration link is transmitted to the server. That is to say, a Get request is generated according to the recommender identifier in the address information, and the invitation registration page is actively triggered to execute when the server is accessed according to the Get request.
The Get request, i.e. the HTTP Get request, is a request for obtaining data from the server.
For S4, a target response value generated by the server according to the Get request is obtained through the invitation registration page, and the recommender identifier and the recommender information corresponding to the recommender identifier are both encapsulated in a Cookie object having the target response value, so that obtaining of the recommender information corresponding to the recommender identifier from the server is achieved.
Recommender information includes, but is not limited to: recommending names and affiliated mechanisms of people.
For S5, the Cookie object of the target response value is stored in the browser entirely through the invitation registration page, which provides support for subsequently transferring the recommender identifier and recommender information corresponding to the recommender identifier through the Cookie object in the browser.
The Cookie is a text file which is stored on a hard disk of a client by a Web server through a browser, and the text file contains all text information.
For S6, a page click request generated by the user clicking a button in the invitation registration page is obtained through the invitation registration page.
A page click request is a request to access a Web page, wherein the Web page includes but is not limited to: a test page and a user registration page.
The page information to be accessed is the page information of the Web page which the page click request wants to access. The page information to be accessed includes, but is not limited to: and (5) page identification. The page identifier may be a page ID or the like that uniquely identifies a Web page.
For S7, registering a page by invitation, responding to the page click request, acquiring the recommender identification and the recommender information from the Cookie object in the browser, generating a page access request according to the page information to be accessed, the acquired recommender identification and the recommender information, and then sending the page access request to the server to access the Web page corresponding to the page information to be accessed, so as to realize the transmission of the recommender identification and the recommender information through the Cookie object in the browser, avoid the technical problem that the recommender identification is easily lost due to the transmission of the recommender identification through URL, because the recommender identification and the recommender information are acquired from the Cookie object in the browser in each response of the page click request, the server only needs to determine the recommender information corresponding to the recommender identification once, the response efficiency of the server is improved.
URL, uniform resource locator system.
In an embodiment, the step of generating a Get request according to the recommender identifier in the address information through the invitation registration page and accessing the service end according to the Get request includes:
s31: analyzing the recommender identification of the address information through the invitation registration page to obtain a recommender identification to be transmitted;
s32: generating the Get request according to the recommender identification to be transmitted through the invitation registration page;
s33: and sending the Get request to the server through the invitation registration page.
In this embodiment, a Get request is generated according to the recommender identifier in the address information, so that the recommender identifier in the address information is transmitted to the server.
And S31, analyzing the recommender identification of the address information through the invitation registration page, and taking the obtained recommender identification as the recommender identification to be transmitted. That is, the recommender identification to be communicated is the same as the recommender identification in the address information.
And S32, generating the Get request according to the identifier of the recommender to be transmitted according to a preset Get request generation rule through the invitation registration page.
The preset Get request generation rule includes but is not limited to: and starting to generate the Get request when receiving an opening completion signal of the invitation registration page.
For S33, the Get request is sent to the server through the invitation registration page, so as to transfer the recommender identifier in the address information to the server.
In an embodiment, the step of generating the Get request according to the identifier of the recommender to be delivered through the invitation registration page includes:
s321: and generating the Get request through the invitation registration page, and taking the identifier of the recommender to be transmitted as a parameter of the Get request when the Get request is generated.
According to the embodiment, the identifier of the recommender to be transmitted is used as the parameter of the Get request, and support is provided for transmitting the identifier of the recommender to be transmitted to the server side through the Get request subsequently.
For S321, generating the Get request according to a preset Get request generation rule through the invitation registration page, and taking the identifier of the recommender to be transmitted as a parameter of the Get request when the Get request is generated. Therefore, the server can obtain the recommender identification to be transmitted only by analyzing the parameters of the Get request.
In an embodiment, the step of generating, by the server, the target response value according to the Get request includes:
s41: through the server, carrying out recommender identification analysis on the parameters of the Get request to obtain a recommender identification to be matched;
s42: acquiring a recommender information list through the server;
s43: searching the recommender identification to be matched in the recommender information list through the server to obtain the recommender information corresponding to the recommender identification to be matched;
s44: generating a Cookie object according to the recommender identification to be matched and the recommender information corresponding to the recommender identification to be matched through the server to obtain the Cookie object to be packaged;
s45: and encapsulating the Cookie object to be encapsulated into a response value corresponding to the Get request through the server to obtain the target response value.
According to the embodiment, through the server, the recommender identifier is analyzed from the parameters of the Get request, then the recommender information of the recommender identifier obtained through analysis is matched, finally, the Cookie object is generated according to the recommender information and the recommender identifier obtained through analysis, the generated Cookie object is packaged into the response value corresponding to the Get request, so that the recommender information is supplemented, the recommender information and the recommender identifier obtained through analysis are simultaneously packaged into the Cookie object, the recommendation registration page is facilitated to store the recommender information and the recommender identifier obtained through analysis into the browser, and support is provided for transmitting the recommender information and the recommender identifier to other pages through the invitation registration page.
And S41, performing recommender identification analysis on the parameters of the Get request through the server, and taking the obtained recommender identification as the recommender identification to be matched. That is, the recommender identification to be matched is the same as the recommender identification in the address information.
For S42, the server obtains the recommender information list from the database, or obtains the recommender information list from a third-party application system.
The recommender information list includes: the recommendation system comprises a recommender identification and recommender information, wherein the recommender identification corresponds to the recommender information one to one.
For step S43, the server searches for the identifier of the recommender to be matched in the recommender information list, and takes the recommender information corresponding to the identifier of the recommender found in the recommender information list as the recommender information corresponding to the identifier of the recommender to be matched.
For S44, generating a Cookie object according to the recommender identifier to be matched and the recommender information corresponding to the recommender identifier to be matched through the server, and taking the generated Cookie object as the Cookie object to be packaged, thereby realizing packaging of the recommender identifier to be matched and the recommender information corresponding to the recommender identifier to be matched into the Cookie object at the same time.
For S45, the Cookie object to be encapsulated is encapsulated into the response value corresponding to the Get request by the server, and the response value is used as the target response value corresponding to the Get request, thereby implementing that the recommender identifier to be matched and the recommender information corresponding to the recommender identifier to be matched are encapsulated into the response value at the same time.
A Cookie object, that is, an object of a Response value (Response value).
In an embodiment, the step of generating, by the server, a Cookie object according to the identifier of the recommender to be matched and the recommender information corresponding to the identifier of the recommender to be matched to obtain the Cookie object to be encapsulated includes:
s441: acquiring a preset effective duration through the server;
s442: and generating the Cookie object according to the identifier of the recommender to be matched and the recommender information corresponding to the identifier of the recommender to be matched by the server side by adopting a CookieGenerator and the preset effective duration, so as to obtain the Cookie object to be packaged, wherein the CookieGenerator packages the identifier of the recommender to be matched and the recommender information corresponding to the identifier of the recommender to be matched into Cookie value of the Cookie object, and the CookieGenerator packages the preset effective duration into MaxAge of the Cookie object.
According to the method and the device, the Cookie object is generated according to the identifier of the recommender to be matched and the recommender information corresponding to the identifier of the recommender to be matched by adopting the Cookie Generator and the preset effective duration, the identifier of the recommender to be matched and the recommender information corresponding to the identifier of the recommender to be matched are packaged to the Cookie object, the preset effective duration is used as the life duration of the Cookie object, and the accuracy of information transmission of the recommender corresponding to the identifier of the recommender to be matched and the recommender corresponding to the identifier of the recommender to be matched is improved.
For step S441, the server may obtain the preset effective duration from the server, or obtain the preset effective duration from the third-party application system.
The preset effective time period is a specific numerical value.
For step S442, generating, by the server, the Cookie object by using a Cookie generator (Cookie generator), and in the process of generating the Cookie object, encapsulating, by the Cookie generator, the recommender identifier to be matched and the recommender information corresponding to the recommender identifier to be matched into a Cookie value of the Cookie object, and encapsulating, by the Cookie generator, the preset effective duration into MaxAge of the Cookie object. The value corresponding to MaxAge is the lifetime of the Cookie object.
In an embodiment, the step of storing the Cookie object of the target response value in the browser through the invitation registration page includes:
s51: analyzing the Cookie object to the target response value through the invitation registration page to obtain the Cookie object to be stored;
s52: judging whether the browser has the Cookie object which is the same as the generation party of the Cookie object to be stored or not through the invitation registration page;
s53: when the Cookie object which is the same as the generation party of the Cookie object to be stored exists in the browser, covering the Cookie object which is the same as the Cookie object to be stored in the browser from the source through the invitation registration page according to the Cookie object to be stored;
s54: and when the Cookie object which is the same as the generation party of the Cookie object to be stored does not exist in the browser, adding the Cookie object to be stored into the browser through the invitation registration page.
In this embodiment, when the same Cookie object as a generating party of a Cookie object to be stored exists in the browser, the Cookie object to be stored is stored in the browser in an overlaying manner, and when the same Cookie object as the generating party of the Cookie object to be stored does not exist in the browser, the Cookie object to be stored is stored in the browser in an adding manner, so that a maximum number of Cookie objects from the same server are stored in the browser, and the accuracy of information transfer between the recommender identifier to be matched and the recommender identifier corresponding to the recommender identifier to be matched is further improved.
And S51, analyzing the Cookie object of the target response value through the invitation registration page, and taking the Cookie object obtained through analysis as the Cookie object to be stored.
And S52, judging whether the browser has the Cookie object which is the same as the server corresponding to the Cookie object to be stored or not through the invitation registration page.
For S53, when the same Cookie object as the generation party of the Cookie object to be stored exists in the browser, it means that the same Cookie object as the generation party of the Cookie object to be stored has been backed up in the browser, and in order to avoid transmission errors of subsequent recommender identifications and recommender information, the Cookie object having the same source as the Cookie object to be stored in the browser is overwritten through the invitation registration page according to the Cookie object to be stored, so that the most of the latest Cookie object from the server is stored in the browser.
For S54, when the same Cookie object as the generation party of the Cookie object to be stored does not exist in the browser, it means that the same Cookie object as the Cookie object to be stored is not backed up in the browser, and at this time, the Cookie object to be stored may be directly added to the browser.
In an embodiment, the step of registering a page by the invitation, responding to the page click request, generating a page access request according to the page information to be accessed, the recommender identifier of the Cookie object in the browser, and the recommender information, and accessing the server according to the page access request includes:
s71: responding to the page click request through the invitation registration page, and acquiring the Cookie object from the browser to obtain the Cookie object to be analyzed;
s72: analyzing the recommender identification and the recommender information of the Cookie object to be analyzed through the invitation registration page to obtain a recommender identification to be packaged and recommender information to be packaged;
s73: generating a page access request according to the page information to be accessed, the recommender identification to be packaged and the recommender information to be packaged through the invitation registration page;
s74: and accessing the server according to the page access request through the invitation registration page.
According to the embodiment, the recommender identification and the recommender information are transmitted to the page through the Cookie object in the browser, so that the technical problem that the recommender identification is easily lost due to the fact that the recommender identification is transmitted through the URL is solved; and the server is accessed according to the page access request every time, the recommender identification and the recommender information are carried, so that the server only needs to determine the recommender information corresponding to the recommender identification once, and the response efficiency of the server is improved.
And S71, responding to the page click request through the invitation registration page, acquiring the Cookie object from the browser, and taking the acquired Cookie object as the Cookie object to be analyzed.
For S72, analyzing the recommender identification and the recommender information for the Cookie object to be analyzed through the invitation registration page, taking the recommender identification obtained through analysis as the recommender identification to be packaged, and taking the recommender information obtained through analysis as the recommender information to be packaged.
For S73, a page access request is generated by inviting the registration page, and in the process of generating the page access request, the page information to be accessed, the recommender identification to be packaged and the recommender information to be packaged are used as parameters of the page access request, so that the recommender identification and the recommender information are transmitted to the server, the server does not need to match the recommender information when responding to the page access request, the server only needs to determine the recommender information corresponding to the recommender identification once, and the response efficiency of the server is improved.
For step S74, the server is accessed according to the page access request through the invitation registration page, a resource is obtained from the server, and the browser performs display according to the obtained resource to obtain a Web page corresponding to the page click request.
Referring to fig. 2, the present application also proposes a recommender information delivery apparatus, the apparatus comprising:
an operation request obtaining module 100, configured to obtain, through a browser, an operation request for an invitation registration link, where address information of the invitation registration link includes a recommender identifier;
an invitation registration page obtaining module 200, configured to respond to the operation request through the browser, and open a page according to the address information to obtain an invitation registration page;
a Get request sending module 300, configured to generate a Get request according to the recommender identifier in the address information through the invitation registration page, and access a server according to the Get request;
a target response value obtaining module 400, configured to obtain, through the invitation registration page, a target response value generated by the server according to the Get request, where a Cookie object of the target response value includes: the recommender identification and recommender information corresponding to the recommender identification;
a Cookie object storage module 500, configured to store the Cookie object of the target response value in the browser through the invitation registration page;
a page click request obtaining module 600, configured to obtain a page click request through the invitation registration page, where the page click request carries page information to be accessed;
and the page click request response module 700 is configured to respond to the page click request by registering a page through the invitation, generate a page access request according to the page information to be accessed, the recommender identifier of the Cookie object in the browser, and the recommender information, and access the server according to the page access request.
In this embodiment, a Get request is generated according to a recommender identifier in address information by inviting a registration page, a server is accessed according to the Get request, and a target response value generated by the server according to the Get request is obtained, where a Cookie object of the target response value includes: the method comprises the steps of recommending a person identifier and recommending person information corresponding to the person identifier, storing a Cookie object with a target response value in a browser, obtaining a page click request, wherein the page click request carries page information to be accessed, responding to the page click request, generating a page access request according to the page information to be accessed and the recommending person identifier and recommending person information of the Cookie object in the browser, and accessing a server according to the page access request, so that the recommending person identifier and recommending person information are transmitted in a complex registration process with a plurality of pages, and the technical problem that the recommending person identifier is easy to lose due to the fact that the recommending person identifier is transmitted through a Uniform Resource Locator (URL) is solved; and the server side only needs to determine the recommender information corresponding to the recommender identification once, so that the response efficiency of the server side is improved.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing data such as information transmission methods of recommenders. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a recommender information delivery method. The recommender information delivery method comprises the following steps: acquiring an operation request aiming at an invitation registration link through a browser, wherein the address information of the invitation registration link comprises a recommender identifier; responding to the operation request through the browser, and opening a page according to the address information to obtain an invitation registration page; generating a Get request according to the recommender identification in the address information through the invitation registration page, and accessing a server according to the Get request; and acquiring a target response value generated by the server according to the Get request through the invitation registration page, wherein a Cookie object of the target response value comprises: the recommender identification and recommender information corresponding to the recommender identification; storing the Cookie object of the target response value in the browser through the invitation registration page; acquiring a page click request through the invitation registration page, wherein the page click request carries page information to be accessed; responding to the page click request through the invitation registration page, generating a page access request according to the page information to be accessed, the recommender identification of the Cookie object in the browser and the recommender information, and accessing the server according to the page access request.
In this embodiment, a Get request is generated according to a recommender identifier in address information by inviting a registration page, a server is accessed according to the Get request, and a target response value generated by the server according to the Get request is obtained, where a Cookie object of the target response value includes: the method comprises the steps of recommending a person identifier and recommending person information corresponding to the person identifier, storing a Cookie object with a target response value in a browser, obtaining a page click request, wherein the page click request carries page information to be accessed, responding to the page click request, generating a page access request according to the page information to be accessed and the recommending person identifier and recommending person information of the Cookie object in the browser, and accessing a server according to the page access request, so that the recommending person identifier and recommending person information are transmitted in a complex registration process with a plurality of pages, and the technical problem that the recommending person identifier is easy to lose due to the fact that the recommending person identifier is transmitted through a Uniform Resource Locator (URL) is solved; and the server side only needs to determine the recommender information corresponding to the recommender identification once, so that the response efficiency of the server side is improved.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing a recommender information delivery method, including the steps of: acquiring an operation request aiming at an invitation registration link through a browser, wherein the address information of the invitation registration link comprises a recommender identifier; responding to the operation request through the browser, and opening a page according to the address information to obtain an invitation registration page; generating a Get request according to the recommender identification in the address information through the invitation registration page, and accessing a server according to the Get request; and acquiring a target response value generated by the server according to the Get request through the invitation registration page, wherein a Cookie object of the target response value comprises: the recommender identification and recommender information corresponding to the recommender identification; storing the Cookie object of the target response value in the browser through the invitation registration page; acquiring a page click request through the invitation registration page, wherein the page click request carries page information to be accessed; responding to the page click request through the invitation registration page, generating a page access request according to the page information to be accessed, the recommender identification of the Cookie object in the browser and the recommender information, and accessing the server according to the page access request.
According to the executed recommender information transmission method, a Get request is generated according to a recommender identifier in address information by inviting a registration page, a server is accessed according to the Get request, and a target response value generated by the server according to the Get request is obtained, wherein a Cookie object of the target response value comprises: the method comprises the steps of recommending a person identifier and recommending person information corresponding to the person identifier, storing a Cookie object with a target response value in a browser, obtaining a page click request, wherein the page click request carries page information to be accessed, responding to the page click request, generating a page access request according to the page information to be accessed and the recommending person identifier and recommending person information of the Cookie object in the browser, and accessing a server according to the page access request, so that the recommending person identifier and recommending person information are transmitted in a complex registration process with a plurality of pages, and the technical problem that the recommending person identifier is easy to lose due to the fact that the recommending person identifier is transmitted through a Uniform Resource Locator (URL) is solved; and the server side only needs to determine the recommender information corresponding to the recommender identification once, so that the response efficiency of the server side is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A recommender information delivery method, the method comprising:
acquiring an operation request aiming at an invitation registration link through a browser, wherein the address information of the invitation registration link comprises a recommender identifier;
responding to the operation request through the browser, and opening a page according to the address information to obtain an invitation registration page;
generating a Get request according to the recommender identification in the address information through the invitation registration page, and accessing a server according to the Get request;
and acquiring a target response value generated by the server according to the Get request through the invitation registration page, wherein a Cookie object of the target response value comprises: the recommender identification and recommender information corresponding to the recommender identification;
storing the Cookie object of the target response value in the browser through the invitation registration page;
acquiring a page click request through the invitation registration page, wherein the page click request carries page information to be accessed;
responding to the page click request through the invitation registration page, generating a page access request according to the page information to be accessed, the recommender identification of the Cookie object in the browser and the recommender information, and accessing the server according to the page access request.
2. The method for delivering recommender information according to claim 1, wherein the step of generating a Get request according to the recommender identifier in the address information via the invitation registration page, and accessing the service end according to the Get request comprises:
analyzing the recommender identification of the address information through the invitation registration page to obtain a recommender identification to be transmitted;
generating the Get request according to the recommender identification to be transmitted through the invitation registration page;
and sending the Get request to the server through the invitation registration page.
3. The recommender information delivery method according to claim 2, wherein the step of generating the Get request according to the recommender identifier to be delivered via the invitation registration page comprises:
and generating the Get request through the invitation registration page, and taking the identifier of the recommender to be transmitted as a parameter of the Get request when the Get request is generated.
4. The recommender information delivery method according to claim 1, wherein the step of generating the target response value according to the Get request by the server comprises:
through the server, carrying out recommender identification analysis on the parameters of the Get request to obtain a recommender identification to be matched;
acquiring a recommender information list through the server;
searching the recommender identification to be matched in the recommender information list through the server to obtain the recommender information corresponding to the recommender identification to be matched;
generating a Cookie object according to the recommender identification to be matched and the recommender information corresponding to the recommender identification to be matched through the server to obtain the Cookie object to be packaged;
and encapsulating the Cookie object to be encapsulated into a response value corresponding to the Get request through the server to obtain the target response value.
5. The recommender information transmission method according to claim 4, wherein the step of generating, by the server, a Cookie object according to the recommender identifier to be matched and the recommender information corresponding to the recommender identifier to be matched to obtain the Cookie object to be encapsulated comprises:
acquiring a preset effective duration through the server;
and generating the Cookie object according to the identifier of the recommender to be matched and the recommender information corresponding to the identifier of the recommender to be matched by the server side by adopting a CookieGenerator and the preset effective duration, so as to obtain the Cookie object to be packaged, wherein the CookieGenerator packages the identifier of the recommender to be matched and the recommender information corresponding to the identifier of the recommender to be matched into Cookie value of the Cookie object, and the CookieGenerator packages the preset effective duration into MaxAge of the Cookie object.
6. The recommender information delivery method according to claim 1, wherein the step of storing the Cookie object of the target response value in the browser via the invitation registration page comprises:
analyzing the Cookie object to the target response value through the invitation registration page to obtain the Cookie object to be stored;
judging whether the browser has the Cookie object which is the same as the generation party of the Cookie object to be stored or not through the invitation registration page;
when the Cookie object which is the same as the generation party of the Cookie object to be stored exists in the browser, covering the Cookie object which is the same as the Cookie object to be stored in the browser from the source through the invitation registration page according to the Cookie object to be stored;
and when the Cookie object which is the same as the generation party of the Cookie object to be stored does not exist in the browser, adding the Cookie object to be stored into the browser through the invitation registration page.
7. The recommender information transmission method according to claim 1, wherein the step of registering a page by the invitation, responding to the page click request, generating a page access request according to the page information to be accessed, the recommender identifier of the Cookie object in the browser, and the recommender information, and accessing the server according to the page access request comprises:
responding to the page click request through the invitation registration page, and acquiring the Cookie object from the browser to obtain the Cookie object to be analyzed;
analyzing the recommender identification and the recommender information of the Cookie object to be analyzed through the invitation registration page to obtain a recommender identification to be packaged and recommender information to be packaged;
generating a page access request according to the page information to be accessed, the recommender identification to be packaged and the recommender information to be packaged through the invitation registration page;
and accessing the server according to the page access request through the invitation registration page.
8. A recommender information delivery apparatus, the apparatus comprising:
the operation request acquisition module is used for acquiring an operation request aiming at an invitation registration link through a browser, wherein the address information of the invitation registration link comprises a recommender identifier;
the invitation registration page acquisition module is used for responding to the operation request through the browser and opening a page according to the address information to obtain an invitation registration page;
a Get request sending module, configured to generate a Get request according to the recommender identifier in the address information through the invitation registration page, and access a server according to the Get request;
a target response value obtaining module, configured to obtain, through the invitation registration page, a target response value generated by the server according to the Get request, where a Cookie object of the target response value includes: the recommender identification and recommender information corresponding to the recommender identification;
a Cookie object storage module, configured to store the Cookie object of the target response value in the browser through the invitation registration page;
the page click request acquisition module is used for acquiring a page click request through the invitation registration page, wherein the page click request carries page information to be accessed;
and the page click request response module is used for responding to the page click request by registering the page through the invitation, generating a page access request according to the page information to be accessed, the recommender identification of the Cookie object in the browser and the recommender information, and accessing the server according to the page access request.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110703497.3A 2021-06-24 2021-06-24 Recommender information transfer method, device, equipment and storage medium Pending CN113449223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110703497.3A CN113449223A (en) 2021-06-24 2021-06-24 Recommender information transfer method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110703497.3A CN113449223A (en) 2021-06-24 2021-06-24 Recommender information transfer method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113449223A true CN113449223A (en) 2021-09-28

Family

ID=77812481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110703497.3A Pending CN113449223A (en) 2021-06-24 2021-06-24 Recommender information transfer method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113449223A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6029141A (en) * 1997-06-27 2000-02-22 Amazon.Com, Inc. Internet-based customer referral system
CN103812914A (en) * 2012-11-14 2014-05-21 阿里巴巴集团控股有限公司 Method and device for tracking spreader
CN104270404A (en) * 2014-08-29 2015-01-07 小米科技有限责任公司 Login method and device based on terminal identification
US20150081795A1 (en) * 2012-05-31 2015-03-19 Konami Digital Entertainment Co., Ltd. Management apparatus, control method therefor, computer-readable recording medium, application system, and identification-information associating method
CN106056408A (en) * 2016-06-01 2016-10-26 网易无尾熊(杭州)科技有限公司 Method and device for tracking promoter
CN110071926A (en) * 2019-04-26 2019-07-30 秒针信息技术有限公司 A kind of data processing method and device
CN110990825A (en) * 2019-11-26 2020-04-10 湖北享七网络科技有限公司 Method and device for binding recommender and recommended person, storage medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6029141A (en) * 1997-06-27 2000-02-22 Amazon.Com, Inc. Internet-based customer referral system
US20150081795A1 (en) * 2012-05-31 2015-03-19 Konami Digital Entertainment Co., Ltd. Management apparatus, control method therefor, computer-readable recording medium, application system, and identification-information associating method
CN103812914A (en) * 2012-11-14 2014-05-21 阿里巴巴集团控股有限公司 Method and device for tracking spreader
CN104270404A (en) * 2014-08-29 2015-01-07 小米科技有限责任公司 Login method and device based on terminal identification
CN106056408A (en) * 2016-06-01 2016-10-26 网易无尾熊(杭州)科技有限公司 Method and device for tracking promoter
CN110071926A (en) * 2019-04-26 2019-07-30 秒针信息技术有限公司 A kind of data processing method and device
CN110990825A (en) * 2019-11-26 2020-04-10 湖北享七网络科技有限公司 Method and device for binding recommender and recommended person, storage medium and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ARTŪRS LAVRENOVS等: "《HTTP Security Headers Analysis of Top One Million Websites》", 《2018 10TH INTERNATIONAL CONFERENCE ON CYBER CONFLICT (CYCON)》 *
冯志林: "《面向新工科普通高等教育系列教材 Java EE程序设计与开发实践教程》", 31 May 2021 *
季凤: "微型Web服务器的设计与实现", 《科技信息》 *

Similar Documents

Publication Publication Date Title
CN110162720B (en) Webpage loading method and device, computer equipment and storage medium
US5740252A (en) Apparatus and method for passing private demographic information between hyperlink destinations
CN108965416B (en) Medical data sharing method and device, computer equipment and storage medium
CN106873961B (en) Method and device for awakening APP through mobile browser
CN111324905A (en) Image data labeling method and device, computer equipment and storage medium
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN110659938A (en) Method and device for determining promotion channel, computer equipment and storage medium
CN112068818A (en) Service interaction method and device, computer equipment and storage medium
CN109118291B (en) User authentication method and device in advertisement task popularization and computer equipment
WO2019080421A1 (en) Vehicle insurance message push method and apparatus, computer storage medium and computer device
CN112015495B (en) Method, device, equipment and medium for mutual calling between Native and H5
CN110609792A (en) Interface testing method and device, computer equipment and storage medium
CN111294361B (en) Workflow data encryption method and system
CN113301161B (en) Seamless upgrading method, device, equipment and storage medium of application service
CN111026988A (en) Page loading method, device and system and computer equipment
CN112579459A (en) Method and device for testing application program and computer equipment
CN113449223A (en) Recommender information transfer method, device, equipment and storage medium
CN113627913A (en) Client-side cash registering method, device, equipment and storage medium
CN112769674B (en) Mailbox signature generation method and device, readable storage medium and computer equipment
CN110381059B (en) Method and device for adding friends based on biological recognition and computer equipment
CN116776912A (en) Store detection processing method, device, system and computing equipment
CN113326080B (en) H5 page loading method, device, equipment and storage medium
JP5429158B2 (en) Personal information distribution management system, personal information utilization apparatus and method
CN108920355A (en) Get event information acquisition method, device, computer equipment and storage medium ready
CN115190112A (en) Marketing data processing method, server 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210928

RJ01 Rejection of invention patent application after publication