CN116304400A - Method, apparatus, device and storage medium for delivering channel code - Google Patents

Method, apparatus, device and storage medium for delivering channel code Download PDF

Info

Publication number
CN116304400A
CN116304400A CN202310093882.XA CN202310093882A CN116304400A CN 116304400 A CN116304400 A CN 116304400A CN 202310093882 A CN202310093882 A CN 202310093882A CN 116304400 A CN116304400 A CN 116304400A
Authority
CN
China
Prior art keywords
channel code
current page
url
code
tag
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
CN202310093882.XA
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.)
Shanghai Feishu Shennuo Digital Technology Group Co ltd
Original Assignee
Shanghai Feishu Shennuo Digital Technology Group 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 Shanghai Feishu Shennuo Digital Technology Group Co ltd filed Critical Shanghai Feishu Shennuo Digital Technology Group Co ltd
Priority to CN202310093882.XA priority Critical patent/CN116304400A/en
Publication of CN116304400A publication Critical patent/CN116304400A/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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • 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]
    • G06F16/9558Details of hyperlinks; Management of linked annotations

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 invention provides a method, a device, equipment and a storage medium for transmitting channel codes, wherein the method comprises the following steps: acquiring an access request of a user for accessing a current page, wherein the access request comprises a URL of the current page; extracting a first channel code in the URL of the current page and taking the first channel code as a target channel code under the condition that the first channel code exists in the URL of the current page; before rendering the current page, updating hyperlinks in all a tags in the current page to hyperlinks with the target canalisation code, and then rendering the current page. The method, the device, the equipment and the storage medium for transmitting the channel code can realize the transmission of the channel code and accurately determine which popularization person or channel code the user recommends.

Description

Method, apparatus, device and storage medium for delivering channel code
Technical Field
The present invention relates to the field of user popularization technologies, and in particular, to a method, an apparatus, a device, and a storage medium for delivering a channel code.
Background
The service provider typically promotes its own system or platform through a promoting person or a channel provider, and the promoting person or channel provider promotes the service provider's system or platform to the user, thereby improving the user quantity.
The user can directly register the account number based on the registration page recommended by the popularization person or the channel manufacturer, and the popularization person or the channel manufacturer of the user can be easily determined at the moment; however, in practical situations, after browsing the system or platform promoted by the promoter or the channel, many users open the registration page to register by themselves after multiple operations (multiple page jumps), and it is difficult to determine which promoter or channel the user is recommended.
Disclosure of Invention
In order to solve the existing technical problems, the embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for transmitting a channel code.
In a first aspect, an embodiment of the present invention provides a method for delivering a channel code, including:
acquiring an access request of a user for accessing a current page, wherein the access request comprises a URL of the current page;
extracting a first channel code in the URL of the current page and taking the first channel code as a target channel code under the condition that the first channel code exists in the URL of the current page;
Performing an update operation;
wherein the updating operation includes: before rendering the current page, updating hyperlinks in all a tags in the current page to hyperlinks with the target canalisation code, and then rendering the current page.
In one possible implementation, the method further includes:
judging whether the access request originates from a search engine or not under the condition that the URL of the current page does not have a first channel code;
in the case that the access request originates from a search engine, a second channel code corresponding to the search engine is determined, and the second channel code is taken as a target channel code, and then the updating operation is performed.
In one possible implementation, the updating operation further includes:
in response to an event-triggered jump, updating the URL to be jumped to the URL with the target channel code based on a pre-packaged page jump function, and executing the jump.
In one possible implementation, the updating the hyperlinks in all the a tags in the current page to hyperlinks with the target canalisation code includes:
adding the target canalisation code to the hyperlinks in the a-tag in case that the canalisation code does not exist in the hyperlinks in the a-tag;
In the case that the hyperlink in the a-tag has a channel code, the channel code of the hyperlink in the a-tag is replaced with the target channel code.
In one possible implementation, the updating operation further includes:
and under the condition that the a tag is generated according to the URL of the current page, removing redundant channel codes in the a tag, and only reserving one channel code, wherein the reserved channel code is the target channel code.
In one possible implementation, in the case that the current page is a registration page, one a tag in the registration page is a registration tag; the method further comprises the steps of:
responding to a registration request submitted by the user based on the registration tag, wherein the registration request comprises a user account of the user;
and associating the user account with the channel code in the registration tag.
In a second aspect, an embodiment of the present invention further provides an apparatus for delivering a channel code, including:
the access module is used for acquiring an access request of a user for accessing a current page, wherein the access request comprises the URL of the current page;
the extraction module is used for extracting a first channel code in the URL of the current page and taking the first channel code as a target channel code under the condition that the first channel code exists in the URL of the current page;
The updating module is used for executing updating operation; wherein the updating operation includes: before rendering the current page, updating hyperlinks in all a tags in the current page to hyperlinks with the target canalisation code, and then rendering the current page.
In one possible implementation, the apparatus further includes:
the judging module is used for judging whether the access request originates from a search engine or not under the condition that the URL of the current page does not have the first channel code;
and the determining module is used for determining a second channel code corresponding to the search engine and taking the second channel code as a target channel code in the case that the access request originates from the search engine, and then the updating module executes the updating operation.
In a third aspect, an embodiment of the present invention provides an apparatus for delivering a channel code, including a processor and a memory, the memory storing a computer program, wherein the processor executes the computer program stored in the memory, and the computer program when executed by the processor implements the method for delivering a channel code according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of delivering a channel code according to the first aspect described above.
In a fifth aspect, the present application further provides a computer program product comprising a computer program which, when executed, implements the method of delivering a channel code according to the first aspect or any one of the possible designs of the first aspect.
After obtaining the URL of the current page submitted by the user, extracting the channel code if the URL of the current page contains the channel code, and taking the channel code as a target channel code; before the current page is rendered, the hyperlinks of all the a labels in the current page are updated to have the target channel codes, and then the current page is rendered. When the user resubmisses the access request based on the a label of the current page, the URL in the resubmitted access request still contains the target channel code, so that the channel code is transferred, and the user can be accurately determined by which popularization person or channel merchant recommends.
And, the channel code to be transferred (i.e., the target channel code) exists in the hyperlink of the a-tag, the channel code is not cleared, and the validity of the channel code can be ensured. The target channel code in the hyperlink of the a label is extracted from the URL of the current page, whether the a label and the current page belong to the same domain name or not can ensure that the channel codes of the a label and the current page are consistent, and the channel codes can be correctly transferred when different domain names (a part of service providers have a plurality of systems or a certain system has a plurality of domain names) are jumped, and the uniform domain name is not relied on. In addition, when the page corresponding to the hyperlink of the label a is jumped to with the newly opened window, the transmission of the channel code is not interrupted, namely the channel code can be transmitted to the newly opened window of the user.
Drawings
In order to more clearly describe the embodiments of the present invention or the technical solutions in the background art, the following description will describe the drawings that are required to be used in the embodiments of the present invention or the background art.
FIG. 1 is a flow chart of a method for delivering a channel code provided by an embodiment of the present invention;
FIG. 2 is a flow chart of another method for delivering a channel code provided by an embodiment of the present invention;
fig. 3 is a schematic structural view showing an apparatus for delivering a channel code according to an embodiment of the present invention;
fig. 4 is a schematic diagram showing the structure of an apparatus for delivering a channel code according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
Fig. 1 shows a flowchart of a method of delivering a channel code according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step 101: an access request of a user to access a current page is obtained, wherein the access request comprises a URL of the current page.
In the embodiment of the invention, the current page is a page provided by a system or a platform of a service provider, and the page can be a registration page or other pages, such as a page introducing product functions. When a user accesses a current page, the user may access the current page based on the URL (Uniform Resource Locator ) of the current page.
Wherein the URL of the current page may be provided to the user by a promoter or a channel. The popularization personnel or the channel providers have unique channel codes, and the channel codes are a string of character strings; the URL of the current page provided by the popularization person or the channel provider to the user comprises the channel code of the popularization person or the channel provider; for convenience of description, this channel code will be referred to as a "first channel code" in the embodiments of the present invention. The first channel code exists in the form of a parameter in the URL of the current page. For example, the field of the channel code is denoted as a recode, and if "recode=1a2b3c" exists in the URL of the current page, the first channel code in the URL is "1a2b3c".
Step 102: in the case where the URL of the current page has the first channel code, the first channel code in the URL of the current page is extracted, and the first channel code is taken as the target channel code.
In the embodiment of the invention, after the URL of the current page submitted by the user is obtained, whether the URL of the current page has the channel code or not can be judged first, namely whether the URL of the current page has the first channel code or not is judged. If the URL of the current page is manually entered by the user, it typically does not have a passcode; if the URL of the current page is provided to the user by a promoter or a channel, then a channel code is typically present in the URL of the current page, i.e., a first channel code is present.
If the URL of the current page has the first channel code, the channel code in the URL of the current page can be extracted, namely the first channel code is extracted, and the corresponding processing is carried out on the current page based on the first channel code. In the embodiment of the invention, for convenience of unification of the subsequent description, the channel code required when the current page is processed is called as a target channel code; in the case where the URL of the current page has a first channel code, the first channel code may be used as the target channel code.
Step 103: an update operation is performed. Wherein the updating operation in step 103 includes: before rendering the current page, the hyperlinks in all the a tags in the current page are updated to hyperlinks with the target canalisation code, and then the current page is rendered.
In the embodiment of the invention, one or more a labels exist in the current page; the a-tag is an HTML language tag having href properties in which hyperlinks are defined. The a tag is a mature technology in the prior art, and the details of the a tag are not described in the embodiment of the present invention. In the embodiment of the invention, before the current page is rendered, all the hyperlinks of the a labels of the current page are processed, all the hyperlinks of the a labels are processed to have the target channel code, and then the current page is rendered, so that all the hyperlinks of the a labels in the current page have the target channel code.
The rendered current page is a page presented to a user, and the user can realize page skip based on the current page; that is, the user may continue to submit access requests based on the current page, the access requests also containing the corresponding URLs; because the hyperlink of the a-tag of the current page contains the target channel code, the user submits the access request based on the a-tag of the current page, the URL in the access request is the hyperlink of the a-tag, and the URL contains the target channel code. In other words, the URL of the current page in the step 101 may be provided by a popularization person or a channel provider, or may be a hyperlink in an a tag of another page; in addition, the URL of the current page may be manually input by the user or may be generated by a search engine.
In the embodiment of the invention, the hyperlinks of all the a labels in the page are updated by using the target channel code, so that the channel code can be transferred. For example, a promoter or a channel provider provides a user with a URL of page a, which contains the channel code 1; the user can access this page a by submitting the URL of this page a. The method provided by the embodiment of the invention can be executed by a system of a server, and after the system receives an access request of a user for accessing the page A, all the a labels in the page A are updated to have the channel code 1, and the page A is rendered. Then, the user can continue to submit the access request by clicking the a tag in the page a, and the accessed page is the page corresponding to the hyperlink of the a tag, which is called as the page B in the embodiment; since the hyperlink of the a-tag contains the canalisation code 1, the URL of the page B in the access request submitted by the user also contains the canalisation code 1. Similar to the user accessing page a, the system updates hyperlinks to all the a tags in page B to have the canalisation code 1, and loops around so that the URL of the page accessed by the user contains the canalisation code 1, thereby implementing the delivery of the canalisation code 1.
After the URL of the current page submitted by the user is obtained, if the URL of the current page contains the channel code, the channel code is extracted, and the channel code is used as a target channel code; before the current page is rendered, the hyperlinks of all the a labels in the current page are updated to have the target channel codes, and then the current page is rendered. When the user resubmisses the access request based on the a label of the current page, the URL in the resubmitted access request still contains the target channel code, so that the channel code is transferred, and the user can be accurately determined by which popularization person or channel merchant recommends.
And, the channel code to be transferred (i.e., the target channel code) exists in the hyperlink of the a-tag, the channel code is not cleared, and the validity of the channel code can be ensured. The target channel code in the hyperlink of the a label is extracted from the URL of the current page, whether the a label and the current page belong to the same domain name or not can ensure that the channel codes of the a label and the current page are consistent, and the channel codes can be correctly transferred when different domain names (a part of service providers have a plurality of systems or a certain system has a plurality of domain names) are jumped, and the uniform domain name is not relied on. In addition, when the page corresponding to the hyperlink of the label a is jumped to with the newly opened window, the transmission of the channel code is not interrupted, namely the channel code can be transmitted to the newly opened window of the user. This is not possible based on cookies or session storage canalisation.
Optionally, the method further comprises the following steps A1 to A2.
Step A1: in the case where the URL of the current page does not have the first canalisation code, it is determined whether the access request originates from a search engine.
Step A2: in the case where the access request originates from the search engine, a second channel code corresponding to the search engine is determined, and the second channel code is taken as a target channel code, and then an updating operation is performed.
In the embodiment of the invention, as the system of the service provider can be crawled by the search engine, the user can search the system through the search engine and further submit the access request for accessing the system. In the access request submitted by the user by using the search engine, the URL of the page accessed by the user (i.e. the current page) does not contain the channel code, i.e. the first channel code is not present. In the embodiment of the invention, the corresponding channel code is preset for each search engine, and for convenience of description, the channel code corresponding to the search engine is called as a second channel code. If the access request submitted by the user originates from the search engine, the second channel code corresponding to the search engine is used as the target channel code, and then the updating operation provided in the step 103 is executed, that is, before the current page is rendered, the hyperlinks in all the a labels in the current page are updated to hyperlinks with the target channel code, and then the current page is rendered. At this time, the hyperlink in the a-tag of the current page has the channel code that is the second channel code.
Specifically, whether the access request originates from a search engine can be determined according to a reference field in an access request header submitted by the user, and which search engine the access request originates from can be determined, so that a corresponding second channel code can be determined. In the embodiment of the invention, when the access request comes from a search engine, hyperlinks of the a label of the current page to be accessed are updated to have the second channel codes corresponding to the search engine, and the search engine from which the user originates can be accurately determined based on the second channel codes.
In the embodiment of the invention, the process of updating the hyperlinks in all the a labels in the current page to hyperlinks with target canalisation in the updating operation specifically comprises the following steps:
step B1: in the case where the hyperlink in the a-tag does not have a channel code, a target channel code is added to the hyperlink in the a-tag.
Step B2: in the case where the hyperlink in the a-tag has a channel code, the channel code possessed by the hyperlink in the a-tag is replaced with the target channel code.
In the embodiment of the invention, part a labels of some pages have channel codes. For example, pages of different products in the system have respective channel codes; if the user is a URL (not including the channel code) manually input, if the user clicks the a tag of the product, the channel code of the product is added to the a tag of other pages later, and the user can know which product is most interested by the user when registering.
In the case where a target canalisation (e.g. a first canalisation or a second canalisation) is currently determined, if the hyperlinks in the a-tag do not have a canalisation, the target canalisation may be added directly to the hyperlinks of the a-tag; alternatively, if the hyperlink in the a-tag has a channel code, the original channel code in the hyperlink in the a-tag is replaced by the target channel code, so that the channel code of the updated hyperlink is the target channel code.
Further optionally, the updating operation further includes: in the case that the a-tag is generated according to the URL of the current page, redundant channel codes in the a-tag are removed, only one channel code is reserved, and the reserved channel code is the target channel code.
In the embodiment of the invention, the a label in part of the page can be generated according to the current link; for example, with a list of filtering items, the selected filtering items are displayed in the URL, and the filtering items selected by the user later are spliced according to the filtering items selected by the current URL; this situation is likely to cause the channel code to splice multiple times. In this case, in the embodiment of the present invention, the redundant channel codes in the a-tag are removed, only one channel code is reserved, and the reserved channel code is the target channel code, so that only one channel code which is the most-attributed channel code, namely the target channel code, is reserved in the spliced hyperlinks.
Optionally, the updating operation in step 103 further includes: in response to the event-triggered jump, the URL to be jumped is updated to a URL with the target canalisation based on a pre-packaged page jump function, and the jump is performed.
In the embodiment of the invention, in the process of using the system of the service provider, the user can utilize the a label to realize page skip, and can also realize page skip through triggering events (such as clicking events, interface request completing skip events, river events and the like); for example, after a trigger event, some logic processing is required, after which the page can jump. In order to ensure that the channel code transfer can be realized when the event triggers the page jump, the page jump function is pre-uniformly packaged in the embodiment of the invention, and the page jump function is used for adding the target channel code to the jumped URL. Specifically, when a jump to a certain URL is required by a trigger event, updating the URL to be jumped to a URL with a target channel code based on the page jump function, so as to jump to a page corresponding to the URL with the target channel code.
Similar to the steps B1 and B2, if no channel code exists in the URL to be skipped, the target channel code may be added to the URL in a spliced manner; if there is a channel code in the URL to be skipped, the channel code in the URL needs to be replaced by the target channel code to ensure that the target channel code is correctly transferred.
In the embodiment of the invention, the current page accessed by the user can be any page in the system, including a registration page. If the current page is a registration page, one a label in the registration page is a registration label for finishing registration, and after the user finishes information filling, the user can finish registration by clicking the registration label. In this case, the method further includes the following steps C1 to C2.
Step C1: in response to a registration request submitted by a user based on a registration tag, the registration request includes a user account of the user.
Step C2: the user account is associated with a channel code in the registration tag.
In the embodiment of the invention, if the current page is a registration page and the user also fills in the corresponding information such as the registration account number, the password and the like, the user can submit the corresponding registration request by clicking the registration tag, and the registration request comprises the user account number and the like filled in by the user on the registration page. The registered tag is an a tag in the current page, and the hyperlink also contains a channel code, namely a target channel code; after the user succeeds, the system can record the user account of the user and record the corresponding channel code, namely the channel code in the registration tag, and the source of the registered user account can be accurately determined by associating the user account with the channel code in the registration tag; for example, it may be possible to accurately determine from which promoter or search engine the user account came.
The flow of the method of delivering the channel code is described in detail below by way of one embodiment.
Referring to fig. 2, the method includes steps 201-209.
Step 201: an access request of a user to access a current page is obtained, wherein the access request comprises a URL of the current page.
Step 202: judging whether the URL of the current page has the first channel code, if so, continuing to step 203, otherwise, continuing to step 204.
In the embodiment of the invention, if the URL in the access request is a URL provided by a popularization person or is based on hyperlinks in other a tags with the channel codes, the first channel code exists in the URL. If the access request is entered manually by the user or generated based on a search engine, the URL therein does not contain the first canalisation code.
Step 203: the first canalisation code in the URL of the current page is extracted and taken as the target canalisation code, after which step 206 is continued.
Step 204: whether the access request originates from the search engine is determined, if so, step 205 is continued, otherwise, the current page is rendered normally, i.e. the a-tag of the current page remains unchanged.
Step 205: a second canalisation code corresponding to the search engine is determined and the second canalisation code is taken as the target canalisation code, after which step 206 is continued.
Step 206: before rendering the current page, the hyperlinks in all the a tags in the current page are updated to hyperlinks with the target canalisation code, and then the current page is rendered.
Step 207: responding to the operation of clicking the a label in the current page by a user, and generating an access request of accessing the hyperlink of the a label; alternatively, in response to an event-triggered jump, the URL to be jumped to the URL with the target channel code is updated based on a pre-packaged page jump function, and an access request to access the URL is generated.
After the user successfully accesses the current page, if the user needs to jump to another page based on the current page, step 207 may be executed. After the access request is generated, the above steps 202-206 may be re-performed to effect the delivery of the channel code.
Step 208: in the case where the current page is a registration page, the registration request includes a user account of the user in response to a registration request submitted by the user based on the registration tag.
Step 209: the user account is associated with a channel code in the registration tag.
The method for transmitting the channel code provided by the embodiment of the present invention is described in detail above, and the method may also be implemented by a corresponding apparatus, and the apparatus for transmitting the channel code provided by the embodiment of the present invention is described in detail below.
Fig. 3 is a schematic structural view showing an apparatus for delivering a channel code according to an embodiment of the present invention. As shown in fig. 3, the apparatus for transmitting a channel code includes:
an obtaining module 31, configured to obtain an access request for a user to access a current page, where the access request includes a URL of the current page;
an extracting module 32, configured to extract a first channel code in the URL of the current page and take the first channel code as a target channel code when the first channel code exists in the URL of the current page;
an update module 33 for performing an update operation; wherein the updating operation includes: before rendering the current page, updating hyperlinks in all a tags in the current page to hyperlinks with the target canalisation code, and then rendering the current page.
In one possible implementation, the apparatus further includes:
the judging module is used for judging whether the access request originates from a search engine or not under the condition that the URL of the current page does not have the first channel code;
a determining module, configured to determine a second channel code corresponding to a search engine, and take the second channel code as a target channel code, where the access request originates from the search engine, and then the updating module 33 performs the updating operation.
In one possible implementation, the updating operation performed by the updating module 33 further includes:
in response to an event-triggered jump, updating the URL to be jumped to the URL with the target channel code based on a pre-packaged page jump function, and executing the jump.
In one possible implementation, the updating module 33 updates the hyperlinks in all the a tags in the current page to hyperlinks with the target canalisation code, including:
adding the target canalisation code to the hyperlinks in the a-tag in case that the canalisation code does not exist in the hyperlinks in the a-tag;
in the case that the hyperlink in the a-tag has a channel code, the channel code of the hyperlink in the a-tag is replaced with the target channel code.
In one possible implementation, the updating operation performed by the updating module 33 further includes:
and under the condition that the a tag is generated according to the URL of the current page, removing redundant channel codes in the a tag, and only reserving one channel code, wherein the reserved channel code is the target channel code.
In one possible implementation, in the case that the current page is a registration page, one a tag in the registration page is a registration tag; the apparatus further comprises:
The registration module is used for responding to a registration request submitted by the user based on the registration tag, wherein the registration request comprises a user account of the user; and associating the user account with the channel code in the registration tag.
It should be noted that, when the apparatus for delivering a channel code provided in the above embodiment implements the corresponding function, only the division of the above functional modules is used as an example, in practical application, the above functional allocation may be implemented by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus for transmitting the channel code provided in the above embodiment and the method embodiment for transmitting the channel code belong to the same concept, and the specific implementation process is detailed in the method embodiment, which is not repeated here.
According to one aspect of the present application, the present embodiment also provides a computer program product comprising a computer program comprising program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through a communication section. The method of delivering a channel code provided by the embodiments of the present application is performed when the computer program is executed by a processor.
In addition, the embodiment of the invention also provides a device for transmitting the channel code, which comprises a processor and a memory, wherein the memory stores a computer program, the processor can execute the computer program stored in the memory, and the method for transmitting the channel code provided by any embodiment can be realized when the computer program is executed by the processor.
For example, FIG. 4 illustrates an apparatus for delivering a channel code that includes a bus 1110, a processor 1120, a transceiver 1130, a bus interface 1140, a memory 1150, and a user interface 1160, according to an embodiment of the present invention.
In an embodiment of the present invention, the apparatus further includes: a computer program stored in the memory 1150 and executable on the processor 1120, which when executed by the processor 1120, performs the processes of the method embodiments of delivering the channel code described above.
A transceiver 1130 for receiving and transmitting data under the control of the processor 1120.
In an embodiment of the invention, represented by bus 1110, bus 1110 may include any number of interconnected buses and bridges, with bus 1110 connecting various circuits, including one or more processors, represented by processor 1120, and memory, represented by memory 1150.
Bus 1110 represents one or more of any of several types of bus structures, including a memory bus and a memory controller, a peripheral bus, an accelerated graphics port (Accelerate Graphical Port, AGP), a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such an architecture includes: industry standard architecture (Industry Standard Architecture, ISA) bus, micro channel architecture (Micro Channel Architecture, MCA) bus, enhanced ISA (EISA) bus, video electronics standards association (Video Electronics Standards Association, VESA) bus, peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.
Processor 1120 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments may be implemented by instructions in the form of integrated logic circuits in hardware or software in a processor. The processor includes: general purpose processors, central processing units (Central Processing Unit, CPU), network processors (Network Processor, NP), digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field Programmable Gate Array, FPGA), complex programmable logic devices (Complex Programmable Logic Device, CPLD), programmable logic arrays (Programmable Logic Array, PLA), micro control units (Microcontroller Unit, MCU) or other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components. The methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. For example, the processor may be a single-core processor or a multi-core processor, and the processor may be integrated on a single chip or located on multiple different chips.
The processor 1120 may be a microprocessor or any conventional processor. The steps of the method disclosed in connection with the embodiments of the present invention may be performed directly by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software modules may be located in a random access Memory (Random Access Memory, RAM), flash Memory (Flash Memory), read-Only Memory (ROM), programmable ROM (PROM), erasable Programmable ROM (EPROM), registers, and so forth, as are known in the art. The readable storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
Bus 1110 may also connect together various other circuits such as peripheral devices, voltage regulators, or power management circuits, bus interface 1140 providing an interface between bus 1110 and transceiver 1130, all of which are well known in the art. Accordingly, the embodiments of the present invention will not be further described.
The transceiver 1130 may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. For example: the transceiver 1130 receives external data from other devices, and the transceiver 1130 is configured to transmit the data processed by the processor 1120 to the other devices. Depending on the nature of the computer system, a user interface 1160 may also be provided, for example: touch screen, physical keyboard, display, mouse, speaker, microphone, trackball, joystick, stylus.
It should be appreciated that in embodiments of the present invention, the memory 1150 may further comprise memory located remotely from the processor 1120, such remotely located memory being connectable to a server through a network. One or more portions of the above-described networks may be an ad hoc network (ad hoc network), an intranet, an extranet (extranet), a Virtual Private Network (VPN), a Local Area Network (LAN), a Wireless Local Area Network (WLAN), a Wide Area Network (WAN), a Wireless Wide Area Network (WWAN), a Metropolitan Area Network (MAN), the Internet (Internet), a Public Switched Telephone Network (PSTN), a plain old telephone service network (POTS), a cellular telephone network, a wireless fidelity (Wi-Fi) network, and a combination of two or more of the above-described networks. For example, the cellular telephone network and wireless network may be a global system for mobile communications (GSM) system, a Code Division Multiple Access (CDMA) system, a Worldwide Interoperability for Microwave Access (WiMAX) system, a General Packet Radio Service (GPRS) system, a Wideband Code Division Multiple Access (WCDMA) system, a Long Term Evolution (LTE) system, an LTE Frequency Division Duplex (FDD) system, an LTE Time Division Duplex (TDD) system, a long term evolution-advanced (LTE-a) system, a Universal Mobile Telecommunications (UMTS) system, an enhanced mobile broadband (Enhance Mobile Broadband, embbb) system, a mass machine type communication (massive Machine Type of Communication, mctc) system, an ultra reliable low latency communication (Ultra Reliable Low Latency Communications, uirllc) system, and the like.
It should be appreciated that the memory 1150 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Wherein the nonvolatile memory includes: read-Only Memory (ROM), programmable ROM (PROM), erasable Programmable EPROM (EPROM), electrically Erasable EPROM (EEPROM), or Flash Memory (Flash Memory).
The volatile memory includes: random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as: static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRAM). Memory 1150 described in embodiments of the present invention includes, but is not limited to, the above and any other suitable types of memory.
In an embodiment of the invention, memory 1150 stores the following elements of operating system 1151 and application programs 1152: an executable module, a data structure, or a subset thereof, or an extended set thereof.
Specifically, the operating system 1151 includes various system programs, such as: a framework layer, a core library layer, a driving layer and the like, which are used for realizing various basic services and processing tasks based on hardware. The applications 1152 include various applications such as: a Media Player (Media Player), a Browser (Browser) for implementing various application services. A program for implementing the method of the embodiment of the present invention may be included in the application 1152. The application 1152 includes: applets, objects, components, logic, data structures, and other computer system executable instructions that perform particular tasks or implement particular abstract data types.
In addition, the embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements each process of the foregoing method embodiment of delivering a channel code, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The computer-readable storage medium includes: persistent and non-persistent, removable and non-removable media are tangible devices that may retain and store instructions for use by an instruction execution device. The computer-readable storage medium includes: electronic storage, magnetic storage, optical storage, electromagnetic storage, semiconductor storage, and any suitable combination of the foregoing. The computer-readable storage medium includes: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), non-volatile random access memory (NVRAM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassette storage, magnetic tape disk storage or other magnetic storage devices, memory sticks, mechanical coding (e.g., punch cards or bump structures in grooves with instructions recorded thereon), or any other non-transmission medium that may be used to store information that may be accessed by a computing device. In accordance with the definition in the present embodiments, the computer-readable storage medium does not include a transitory signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a pulse of light passing through a fiber optic cable), or an electrical signal transmitted through a wire.
In the several embodiments provided herein, it should be understood that the disclosed apparatus, devices, and methods may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one position, or may be distributed over a plurality of network units. Some or all of the units can be selected according to actual needs to solve the problem to be solved by the scheme of the embodiment of the invention.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention is essentially or partly contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (including: a personal computer, a server, a data center or other network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the storage medium includes various media as exemplified above that can store program codes.
In the description of the embodiments of the present invention, those skilled in the art should appreciate that the embodiments of the present invention may be implemented as a method, an apparatus, a device, and a storage medium. Thus, embodiments of the present invention may be embodied in the following forms: complete hardware, complete software (including firmware, resident software, micro-code, etc.), a combination of hardware and software. Furthermore, in some embodiments, embodiments of the invention may also be implemented in the form of a computer program product in one or more computer-readable storage media having computer program code embodied therein.
Any combination of one or more computer-readable storage media may be employed by the computer-readable storage media described above. The computer-readable storage medium includes: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer readable storage medium include the following: portable computer diskette, hard disk, random Access Memory (RAM), read-only Memory (ROM), erasable programmable read-only Memory (EPROM), flash Memory (Flash Memory), optical fiber, compact disc read-only Memory (CD-ROM), optical storage device, magnetic storage device, or any combination thereof. In embodiments of the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, device.
The computer program code embodied in the computer readable storage medium may be transmitted using any appropriate medium, including: wireless, wire, fiber optic cable, radio Frequency (RF), or any suitable combination thereof.
Computer program code for carrying out operations of embodiments of the present invention may be written in assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or in one or more programming languages, including an object oriented programming language such as: java, smalltalk, C ++, also include conventional procedural programming languages, such as: c language or similar programming language. The computer program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computers may be connected via any sort of network, including: a Local Area Network (LAN) or a Wide Area Network (WAN), which may be connected to the user's computer or to an external computer.
The embodiments of the present invention describe the provided methods, apparatuses, devices through flowcharts and/or block diagrams.
It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions. These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer readable program instructions may also be stored in a computer readable storage medium that can cause a computer or other programmable data processing apparatus to function in a particular manner. Thus, instructions stored in a computer-readable storage medium produce an instruction means which implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The foregoing is merely a specific implementation of the embodiment of the present invention, but the protection scope of the embodiment of the present invention is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the embodiment of the present invention, and the changes or substitutions are covered by the protection scope of the embodiment of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of delivering a channel code, comprising:
acquiring an access request of a user for accessing a current page, wherein the access request comprises a URL of the current page;
extracting a first channel code in the URL of the current page and taking the first channel code as a target channel code under the condition that the first channel code exists in the URL of the current page;
performing an update operation;
wherein the updating operation includes: before rendering the current page, updating hyperlinks in all a tags in the current page to hyperlinks with the target canalisation code, and then rendering the current page.
2. The method as recited in claim 1, further comprising:
judging whether the access request originates from a search engine or not under the condition that the URL of the current page does not have a first channel code;
In the case that the access request originates from a search engine, a second channel code corresponding to the search engine is determined, and the second channel code is taken as a target channel code, and then the updating operation is performed.
3. The method of claim 1, wherein the updating operation further comprises:
in response to an event-triggered jump, updating the URL to be jumped to the URL with the target channel code based on a pre-packaged page jump function, and executing the jump.
4. The method of claim 1, wherein the updating hyperlinks in all a-tags in the current page to hyperlinks with the target canalisation code comprises:
adding the target canalisation code to the hyperlinks in the a-tag in case that the canalisation code does not exist in the hyperlinks in the a-tag;
in the case that the hyperlink in the a-tag has a channel code, the channel code of the hyperlink in the a-tag is replaced with the target channel code.
5. The method of claim 1, wherein the updating operation further comprises:
and under the condition that the a tag is generated according to the URL of the current page, removing redundant channel codes in the a tag, and only reserving one channel code, wherein the reserved channel code is the target channel code.
6. The method according to any one of claims 1-5, wherein in case the current page is a registration page, one a-tag in the registration page is a registration tag; the method further comprises the steps of:
responding to a registration request submitted by the user based on the registration tag, wherein the registration request comprises a user account of the user;
and associating the user account with the channel code in the registration tag.
7. An apparatus for delivering a channel code, comprising:
the access module is used for acquiring an access request of a user for accessing a current page, wherein the access request comprises the URL of the current page;
the extraction module is used for extracting a first channel code in the URL of the current page and taking the first channel code as a target channel code under the condition that the first channel code exists in the URL of the current page;
the updating module is used for executing updating operation; wherein the updating operation includes: before rendering the current page, updating hyperlinks in all a tags in the current page to hyperlinks with the target canalisation code, and then rendering the current page.
8. The apparatus as recited in claim 7, further comprising:
The judging module is used for judging whether the access request originates from a search engine or not under the condition that the URL of the current page does not have the first channel code;
and the determining module is used for determining a second channel code corresponding to the search engine and taking the second channel code as a target channel code in the case that the access request originates from the search engine, and then the updating module executes the updating operation.
9. An apparatus for delivering a channel code, comprising a processor and a memory, the memory storing a computer program, characterized in that the processor executes the computer program stored in the memory to implement the method of delivering a channel code as claimed in any one of claims 1 to 6.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements a method of delivering a channel code according to any one of claims 1 to 6.
CN202310093882.XA 2023-02-03 2023-02-03 Method, apparatus, device and storage medium for delivering channel code Pending CN116304400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310093882.XA CN116304400A (en) 2023-02-03 2023-02-03 Method, apparatus, device and storage medium for delivering channel code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310093882.XA CN116304400A (en) 2023-02-03 2023-02-03 Method, apparatus, device and storage medium for delivering channel code

Publications (1)

Publication Number Publication Date
CN116304400A true CN116304400A (en) 2023-06-23

Family

ID=86777070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310093882.XA Pending CN116304400A (en) 2023-02-03 2023-02-03 Method, apparatus, device and storage medium for delivering channel code

Country Status (1)

Country Link
CN (1) CN116304400A (en)

Similar Documents

Publication Publication Date Title
US20200106850A1 (en) System and method for mobile application deep linking
US9485240B2 (en) Multi-account login method and apparatus
US10430487B2 (en) System and method to share content utilizing universal link format
US8612418B2 (en) Mobile web browser for pre-loading web pages
US9235451B2 (en) Browser kernel switching method
US9823917B2 (en) Update application user interfaces on client devices
US9811327B2 (en) Dependency-aware transformation of multi-function applications for on-demand execution
US11349845B2 (en) Website verification platform
CN110266661B (en) Authorization method, device and equipment
US9952848B2 (en) Dependency-aware transformation of multi-function applications for on-demand execution
CN105940654A (en) Privileged static hosted WEB applications
CN106294372A (en) Application program page quick access method and apply its mobile terminal
CN106815524B (en) Malicious script file detection method and device
US11714866B2 (en) Method and device for page processing, electronic device, and computer-readable storage medium
CN108494762A (en) Web access method, device and computer readable storage medium, terminal
CN113590974B (en) Recommendation page configuration method and device, electronic equipment and computer readable medium
CN104731869A (en) Page display method and device
US11971932B2 (en) Mechanism for web crawling e-commerce resource pages
US9116713B1 (en) System and method for expression evaluation in a distributed networking environment
US9811324B2 (en) Code caching system
US9398041B2 (en) Identifying stored vulnerabilities in a web service
CN116304400A (en) Method, apparatus, device and storage medium for delivering channel code
CN113590985B (en) Page jump configuration method and device, electronic equipment and computer readable medium
CN116051176A (en) Method, device, equipment and storage medium for promoting channel matching
CN106484741B (en) A kind of method and device of single page application access data collection and transmission

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