Link access method and device, storage medium, equipment and program product
By using server-side traffic routing rules to customize webpage content based on user characteristics, the problem of traditional webpage services failing to meet the needs of different users is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2026-03-13
AI Technical Summary
Traditional web page services cannot meet the personalized needs of different types of users, resulting in a poor user experience.
By using server-side traffic mapping rules, different target webpage content is returned based on the user's target object tag, thus achieving traffic-based access.
It enables customized webpage content display based on user characteristics, thereby improving the user experience.
Smart Images

Figure CN121658732A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a link access method, apparatus, storage medium, device, and program product. Background Technology
[0002] The internet provides users with a rich array of online services. Users access different websites through clients or browsers, load the required static and dynamic resources, and through certain computational processing, obtain various internet services. For internet companies, there are multiple ways to provide services, among which web page services are one of the simplest, most direct, and most efficient.
[0003] In traditional web services, when users access the same web address, the content of the page that appears is the same; that is, one URL corresponds to one fixed service content. This approach makes service provision relatively simple and uniform.
[0004] However, with the development and popularization of the internet, internet companies have a massive user base. If traditional web page services continue to be used, all users visiting the same website will receive the same content. But due to the diversity of the user base, a single service often fails to meet the needs of different types of users. It's impossible to please everyone; a standardized service is unlikely to satisfy every user.
[0005] Therefore, how to meet the needs of different types of users has become an urgent problem to be solved. Summary of the Invention
[0006] This application provides a link access method, apparatus, storage medium, device, and program product. The server can return different target web page content to the terminal according to the target object tags of different users. Moreover, it can set the traffic mapping rules on the server side and perform traffic splitting processing, realizing the function of traffic splitting access according to the target object tags when the user accesses the target link.
[0007] On one hand, embodiments of this application provide a link access method, the method comprising:
[0008] The terminal sends a target access request generated in response to the current object's access operation on the target link. The target access request carries the link short code parameter of the target link and the object information of the current object.
[0009] The target object tag of the current object is determined according to the target access request, and the target web page address corresponding to the target object tag is found from the preset traffic mapping rules. The traffic mapping rules include the mapping relationship between different object tags and different web page addresses in multiple traffic types.
[0010] The target webpage content corresponding to the target webpage address is sent to the terminal so as to display the target webpage content on the terminal.
[0011] On the other hand, embodiments of this application provide a link access method, the method comprising:
[0012] In response to the current object's access operation on the target link, a target access request is generated, the target access request carrying the link short code parameter of the target link and the object information of the current object;
[0013] The target access request is sent to the server so that the server determines the target object tag of the current object based on the target access request and finds the target web page address corresponding to the target object tag from the preset traffic mapping rules. The traffic mapping rules include the mapping relationship between different object tags and different web page addresses in multiple traffic types.
[0014] Receive the target webpage content corresponding to the target webpage address returned by the server;
[0015] Display the content of the target webpage on the terminal.
[0016] On the other hand, embodiments of this application provide a link access device, the device comprising:
[0017] The first acquisition unit is used to acquire a target access request sent by the terminal in response to the access operation of the current object on the target link, wherein the target access request carries the link short code parameter of the target link and the object information of the current object;
[0018] The processing unit is configured to determine the target object tag of the current object based on the target access request, and to find the target web page address corresponding to the target object tag from a preset traffic mapping rule. The traffic mapping rule includes the mapping relationship between different object tags and different web page addresses in multiple traffic types.
[0019] The first sending unit is used to send the target webpage content corresponding to the target webpage address to the terminal so as to display the target webpage content on the terminal.
[0020] In some embodiments, the processing unit may be used for:
[0021] Based on the short code parameter of the target link in the target access request, determine the target traffic type and target traffic mapping rule corresponding to the target link from the preset traffic mapping rules;
[0022] Obtain the traffic type determination method corresponding to the target traffic type, wherein the traffic type determination method is used to indicate the determination method of object tags in the target traffic type;
[0023] Based on the traffic splitting type determination method and the object information of the current object, the target object tag of the current object is determined;
[0024] Find the target webpage address corresponding to the target object tag from the target traffic mapping rules.
[0025] In some embodiments, when the processing unit determines the target object tag of the current object based on the traffic splitting type determination method and the object information of the current object, it can be used for:
[0026] Determine whether the object tag is a real-time tag based on the aforementioned traffic type determination method;
[0027] If the object is determined to be marked as a real-time marker, an external interface is invoked in real-time based on the object information, and the target object marker for the current object is determined according to the level field returned by the external interface; or
[0028] If the object is determined to be pre-marked, then the target object mark of the current object is obtained from the object information carried in the target access request.
[0029] In some embodiments, the first transmitting unit may be used for:
[0030] Check if the target webpage content corresponding to the target webpage address exists in the server's cache;
[0031] If the server's cache contains the target webpage content corresponding to the target webpage address, then the cached target webpage content is sent to the terminal; or
[0032] If the target webpage content corresponding to the target webpage address does not exist in the server's cache, the target webpage content is loaded from the target webpage address and sent to the terminal.
[0033] In some embodiments, before acquiring the target access request generated by the terminal in response to the current object's access operation for the target link, the first acquisition unit may further be used to:
[0034] In response to the traffic splitting configuration information for each traffic splitting type entered on the traffic splitting configuration interface, the traffic splitting mapping rules are generated. The traffic splitting configuration information includes the task name, task conditions, and task execution rules.
[0035] In some embodiments, the first acquisition unit may further be used for:
[0036] Obtain the current timestamp that generated the traffic splitting mapping rule, use the current timestamp as a random seed to generate an N-character string consisting of numbers and letters, and determine the string as the link short code parameter, where N is a natural number greater than 1.
[0037] In some embodiments, the processing unit may also be used for:
[0038] Associate the traffic splitting mapping rule with the link short code parameter;
[0039] Generate a target link carrying the aforementioned link short code parameter;
[0040] The target link carrying the short code parameter is distributed to each terminal that has established a communication connection with the server.
[0041] In some embodiments, the traffic diversion type includes any one of terminal type, account type, and consumption level.
[0042] On the other hand, embodiments of this application provide a link access device, the device comprising:
[0043] The second acquisition unit is used to generate a target access request in response to the current object's access operation on the target link. The target access request carries the link short code parameter of the target link and the object information of the current object.
[0044] The second sending unit is used to send the target access request to the server, so that the server determines the target object tag of the current object according to the target access request, and finds the target web page address corresponding to the target object tag from the preset traffic mapping rules. The traffic mapping rules include the mapping relationship between different object tags and different web page addresses in multiple traffic types.
[0045] A receiving unit is configured to receive the target webpage content corresponding to the target webpage address returned by the server;
[0046] The display unit is used to display the content of the target webpage on the terminal.
[0047] In some embodiments, the second acquisition unit may be used for:
[0048] In response to an access operation for the target link, a target access request carrying the link short code parameter of the target link is generated, and the object information of the current object is obtained;
[0049] The object information of the current object is added to the request header of the target access request to obtain a target access request carrying the link short code parameter of the target link and the object information of the current object.
[0050] In some embodiments, before generating a target access request in response to the current object's access operation for the target link, the second acquisition unit may further be used to:
[0051] Obtain the target link distributed from the server, carrying the link short code parameter;
[0052] The link short code parameter uses the current timestamp that generated the traffic splitting mapping rule as a random seed to generate an N-character string consisting of numbers and letters, where N is a natural number greater than 1.
[0053] In some embodiments, the traffic diversion type includes any one of terminal type, account type, and consumption level.
[0054] On the other hand, an embodiment of this application provides a computer-readable storage medium storing a computer program adapted for loading by a processor to execute the link access method as described in any of the above embodiments.
[0055] On the other hand, an embodiment of this application provides a computer device, which includes a processor and a memory. The memory stores a computer program, and the processor executes the link access method as described in any of the above embodiments by calling the computer program stored in the memory.
[0056] On the other hand, an embodiment of this application provides a computer program product, including computer instructions that, when executed by a processor, implement the link access method as described in any of the above embodiments.
[0057] In this embodiment, the server obtains a target access request sent by the terminal in response to the current object's access operation on the target link. The target access request carries the link short code parameter of the target link and the object information of the current object. Based on the target access request, the server determines the target object tag of the current object and searches for the target webpage address corresponding to the target object tag from a preset traffic mapping rule. The traffic mapping rule includes the mapping relationship between different object tags and different webpage addresses in multiple traffic types. The server then sends the target webpage content corresponding to the target webpage address to the terminal for display. In this embodiment, the server can return different target webpage content to the terminal based on the target object tags of different users, and can set traffic mapping rules and perform traffic splitting processing on the server side, thus realizing the function of traffic splitting access based on the target object tag when a user accesses a target link. Attached Figure Description
[0058] Figure 1This is a schematic diagram of a first application scenario of the link access system provided in the embodiments of this application.
[0059] Figure 2 This is a first flowchart illustrating the link access method provided in an embodiment of this application.
[0060] Figure 3 An example diagram of the preset traffic mapping rules provided in the embodiments of this application.
[0061] Figure 4 This is an example diagram illustrating the correspondence between the traffic splitting types and the corresponding traffic splitting type determination methods provided in the embodiments of this application.
[0062] Figure 5 This is a schematic diagram of a second application scenario for the link access method provided in the embodiments of this application.
[0063] Figure 6 This is a schematic diagram of a third application scenario of the link access method provided in the embodiments of this application.
[0064] Figure 7 This is a second flowchart illustrating the link access method provided in an embodiment of this application.
[0065] Figure 8 An example diagram of the traffic splitting configuration interface provided in this application embodiment.
[0066] Figure 9 This is a schematic diagram of a fourth application scenario of the link access method provided in the embodiments of this application.
[0067] Figure 10 This is a schematic diagram of the third process of the link access method provided in the embodiments of this application.
[0068] Figure 11 This is a first structural schematic diagram of a link access device provided in an embodiment of this application.
[0069] Figure 12 This is a second structural schematic diagram of the link access device provided in an embodiment of this application.
[0070] Figure 13 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0071] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0072] This application provides a link access method, apparatus, storage medium, device, and program product. Exemplarily, the link access method of this application can be executed by a computer device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, desktop computer, smart TV, smart speaker, wearable smart device, personal computer (PC), smart vehicle terminal, etc. The terminal may also include a client, which can be a video client, shopping application client, reading application client, browser client, or instant messaging client, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms.
[0073] The embodiments of this application can be applied to scenarios such as link access and webpage access.
[0074] The solutions provided in this application relate to technologies such as internet link access, and are specifically illustrated through the following embodiments. Detailed descriptions are provided below. It should be noted that the order of description of the following embodiments is not intended to limit the priority of the embodiments.
[0075] It is understood that in the specific implementation of this application, data related to object information of the current object is involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0076] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario of the link access system provided in this application embodiment. The system can implement a link access method. The link access system may include a terminal 1000, a server 2000, and a network 3000, and the terminal 1000 and server 2000 can interact with each other via the network 3000.
[0077] Specifically, terminal 1000 generates a target access request in response to the current object's access operation for the target link. The target access request carries the link short code parameter of the target link and the object information of the current object. The target access request is sent to server 2000, so that server 2000 determines the target object tag of the current object based on the target access request, and searches for the target webpage address corresponding to the target object tag from the preset traffic mapping rules. The traffic mapping rules include the mapping relationship between different object tags and different webpage addresses in multiple traffic types. The terminal 1000 receives the target webpage content corresponding to the target webpage address returned by server 2000 and displays the target webpage content on terminal 1000.
[0078] This application provides a link access method, which can be executed by a terminal or a server, or by both a terminal and a server. This application uses the example of the link access method being executed by a server to illustrate the method.
[0079] Figure 2 This is a first flowchart illustrating a link access method provided in an embodiment of this application. This method can be applied to, for example... Figure 1 The method for the terminal 1000 shown may include steps 110 to 140:
[0080] Step 110: In response to the current object's access operation on the target link, generate a target access request. The target access request carries the link short code parameter of the target link and the object information of the current object.
[0081] A target link is a connection used to point from one object to another, and can be implemented through text, images, or other multimedia elements.
[0082] Access operations can include any of the touch operation commands such as single click, double click, and long press, or non-touch operations such as non-touch voice access and non-touch gesture access. Non-touch voice access allows the current object to control the terminal through voice commands, and the terminal automatically recognizes the commands and executes the target link access operation. Non-touch gesture access allows the current object to draw specific symbols in the air, make specific hand movements, or use other parts of the body to access the target link.
[0083] The short code parameter of the target link is used to uniquely identify the target link.
[0084] In some embodiments, the target link is a short link.
[0085] The object information of the current object includes the terminal information of the terminal used by the current object to perform the access operation, the account information of the current object, and the consumption record information of the current object.
[0086] For example, the current object can be the user currently using the terminal.
[0087] For example, terminal information may include device type (such as smartphone, tablet, personal computer, etc.), operating system (such as iOS, Android, Windows, etc.), browser type and version, etc.
[0088] For example, account information may include different types of applications used based on the user's account login, such as social applications, game applications, and video playback applications.
[0089] For example, consumption record information can include web consumption behavior information, such as clicks, browsing, searching, registration, subscription, purchase, playback, download, commenting, sharing, collection, participation, etc.
[0090] In response to an access operation on the terminal by the current object targeting a link, the terminal generates a target access request carrying a link short code parameter indicating the target link and object information of the current object.
[0091] The link short code parameter and the object information of the current object can be included in any field of the target access request, as long as the server can identify the link short code parameter and the object information of the current object from the target access request.
[0092] In some embodiments, in S110, a target access request is generated in response to the current object's access operation on the target link, including the following S1101-S1102:
[0093] S1101. In response to an access operation targeting a target link, generate a target access request carrying the link short code parameter of the target link, and obtain the object information of the current object.
[0094] In response to an access operation on the target link performed by the current object on the terminal, the terminal generates a target access request carrying the link short code parameter of the target link and obtains the object information of the current object.
[0095] S1102. Add the object information of the current object to the request header of the target access request to obtain the target access request carrying the link short code parameter of the target link and the object information of the current object.
[0096] After the terminal generates a target access request carrying a short link code parameter, it further adds the obtained object information of the current object to the request header of the target access request, thus obtaining a target access request carrying the short link code parameter of the target link and the object information of the current object.
[0097] In some embodiments, in S1102, adding the object information of the current object to the request header of the target access request includes:
[0098] Add the object information of the current object to the User Agent field of the request header of the target access request.
[0099] For example, the terminal can add the object information of the current object to the User-Agent field in the request header of the target access request. Alternatively, the object information of the current object can be added to any field in the request header of the target access request, or it can be stored in the request parameters, as long as the server can identify the object information of the current object from the target access request.
[0100] In some embodiments, before generating a target access request in response to an access operation of the current object for the target link, the method further includes:
[0101] Retrieve the target link distributed from the server, carrying the link short code parameter;
[0102] The link short code parameter uses the current timestamp of the generated split mapping rule as a random seed to generate an N-character string consisting of numbers and letters, where N is a natural number greater than 1.
[0103] Specifically, the target link is sent from the server to the terminal. The server distributes the target link, carrying a short code parameter, to the terminal (such as a mobile phone or computer). Upon receiving the target link, the terminal can perform an access operation (such as a single click or double click) on the target link, thereby triggering the generation and sending of the target access request. The distribution methods can be varied, including but not limited to SMS, email, in-app notifications, and social media sharing.
[0104] On the server side, to create unique link short code parameters, the current timestamp is used as a random seed. This strategy ensures that even under high concurrency, the generated link short code parameters maintain a high degree of uniqueness because the timestamp itself is constantly incrementing. Based on this random seed, the server uses some hash algorithm or random number generation algorithm to generate a string consisting of numbers and letters. The length N of the string is preset and is usually adjusted according to actual needs and the expected user scale. The larger the value of N, the lower the probability of generating duplicate short codes in theory, but it also increases the burden of storage and transmission.
[0105] The total length N of the link short code parameter, as well as the number of digits and letters included, can be freely set. To ensure the uniqueness of each generated link short code parameter, the value of N can be set to a larger value. In a specific embodiment provided in this application, the value of N is set to 6.
[0106] For example, in extreme cases (such as extremely high-concurrency scenarios), there is a possibility of generating duplicate short codes. To further mitigate this risk, the server can implement additional checking mechanisms, such as querying the database or cache immediately after generating the link short code parameter to confirm its uniqueness. If a duplicate is found, a new link short code parameter is regenerated until a unique short code is obtained.
[0107] Step 120: Send the target access request to the server so that the server can determine the target object tag of the current object based on the target access request, and find the target web page address corresponding to the target object tag from the preset traffic mapping rules. The traffic mapping rules include the mapping relationship between different object tags and different web page addresses in multiple traffic types.
[0108] After the terminal sends the target access request to the server, the server will parse the target access request, parse out the target object tag corresponding to the target access request, and then search for the target web page address corresponding to the target object tag from the preset traffic mapping rules.
[0109] Among them, the traffic distribution type refers to the classification method used by relevant personnel to distribute relevant objects according to business scenario requirements. The traffic distribution type can be freely set by relevant personnel according to the actual business scenario. The object tag is used to indicate which specific tag under which classification type the object that issued the access request belongs to. Different types of objects correspond to different object tags.
[0110] In some embodiments, the traffic distribution type includes any one of terminal type, account type, and consumption level.
[0111] For example, the object tags corresponding to the terminal type can include iOS type, Android type, PC type, etc.; the object tags corresponding to the account type can include social application type, game application type, audio and video playback type, etc.; and the object tags corresponding to the consumption level type can include high consumption level type, medium consumption level type, low consumption level type, etc.
[0112] Specifically, in business scenarios where it is necessary to split traffic for objects on different terminals, the splitting type can be set to terminal type. Objects on different terminal types have different object tags, and the splitting mapping strategy corresponding to the terminal type includes the mapping relationship between different object tags and different web page addresses. This allows objects on different terminal types to be redirected to the pages corresponding to different web page addresses when accessing the same link.
[0113] For example, in business scenarios where it is necessary to split traffic for objects of different account types, the splitting type can be set to account type. Objects of different account types have different object tags, and the splitting mapping strategy corresponding to the account type includes the mapping relationship between different object tags and different web page addresses. This allows objects of different account types to be redirected to the pages corresponding to different web page addresses when they access the same link.
[0114] For example, in business scenarios where it is necessary to split traffic for objects of different consumption levels, the splitting type can be set to consumption level. Objects of different consumption levels have different object tags, and the splitting mapping strategy corresponding to the consumption level includes the mapping relationship between different object tags and different web page addresses. This allows objects of different consumption levels to be redirected to the pages corresponding to different web page addresses when they access the same link.
[0115] More specifically, when the traffic splitting type is terminal type, the object tag of an object accessing link A through the iOS system can be set to iOS type, the object tag of an object accessing link A through the Android system can be set to Android type, and the object tag of an object accessing link A through a PC can be set to PC type. The traffic splitting mapping strategy for link A corresponding to the terminal type includes iOS type-URL1, Android type-URL2, and PC type-URL3. Then, if an object accesses link A through the iOS system, the address of the redirected webpage is URL1; if an object accesses link A through the Android system, the address of the redirected webpage is URL2; and if an object accesses link A through a PC, the address of the redirected webpage is URL3.
[0116] Optionally, the traffic splitting preset rules can be set directly by the relevant object (such as an operator) on the corresponding operable page of the server, or they can be received by the server from other electronic devices.
[0117] In some embodiments, a target access request is sent to a server so that the server determines the target object tag of the current object based on the target access request and searches for the target webpage address corresponding to the target object tag from a preset traffic mapping rule, including the following S1201-S1204:
[0118] S1201. Send the target access request to the server so that the server determines the target traffic type and target traffic mapping rule corresponding to the target link from the preset traffic mapping rules based on the link short code parameter of the target link in the target access request.
[0119] The terminal sends the target access request to the server. After the server receives the target access request, it parses the target access request and obtains the short code parameter of the target link in the target access request. Based on the short code parameter, the server determines the target traffic type and target traffic mapping rule of the target link from the preset traffic mapping rules.
[0120] In some embodiments, the server stores the correspondence between link short code parameters and traffic distribution types. After obtaining the link short code parameters of the target link, the server can determine the traffic distribution type corresponding to the link short code parameters of the target link based on the correspondence between the link short code parameters and traffic distribution types, and obtain the target traffic distribution type corresponding to the target link.
[0121] In some embodiments, the server also stores the correspondence between link short code parameters and traffic splitting mapping rules. After obtaining the link short code parameters of the target link, the server can determine the traffic splitting mapping rule corresponding to the link short code parameters of the target link based on the correspondence between the link short code parameters and traffic splitting mapping rules, and obtain the target traffic splitting mapping rule corresponding to the target link.
[0122] In some embodiments, the preset traffic splitting mapping rules include multiple traffic splitting mapping rules. Each traffic splitting mapping rule includes a link short code parameter that is uniquely corresponding to the traffic splitting mapping rule, the traffic splitting type corresponding to the traffic splitting mapping rule, and the web page address corresponding to each object tag in the traffic splitting type corresponding to the traffic splitting mapping rule.
[0123] The server can then determine the target traffic type and target traffic mapping rule corresponding to the target link from the preset traffic mapping rules based on the link short code parameter of the target link.
[0124] In some embodiments, the preset traffic splitting mapping rules are categorized according to traffic splitting type. The server then determines the target traffic splitting type and target traffic splitting mapping rule corresponding to the target link from the preset traffic splitting mapping rules based on the link short code parameter of the target link, including:
[0125] The server determines the target traffic distribution type corresponding to the target link based on the link short code parameter of the target link. The server then determines the traffic distribution mapping rule corresponding to the link short code parameter of the target link from multiple traffic distribution mapping rules corresponding to the target traffic distribution type, thus obtaining the target traffic distribution mapping rule corresponding to the target link.
[0126] Figure 3 See the example diagram of the preset traffic splitting mapping rules provided in the embodiments of this application. Figure 3 . Figure 3The document illustrates the traffic distribution mapping rules corresponding to three traffic distribution types: terminal type, account type, and consumption level type. The traffic distribution mapping rules corresponding to terminal type include traffic distribution mapping rule a1 and traffic distribution mapping rule a2. Traffic distribution mapping rule a1 includes: the short code parameter corresponding to traffic distribution mapping rule a1 is the short code parameter A1; the traffic distribution type corresponding to traffic distribution mapping rule a1 is the terminal type; the webpage address corresponding to the object marker terminal type 1 is URL1; the webpage address corresponding to the object marker terminal type 2 is URL2; the webpage address corresponding to the object marker terminal type 3 is URL3, and so on. The remaining traffic distribution mapping rules, which are of the same type as traffic distribution mapping rule a1, will not be elaborated upon here.
[0127] like Figure 3 As shown, the preset traffic splitting mapping rules can be set by the operations personnel. The operations personnel can select the classification method (i.e., traffic splitting type) to be used when splitting traffic on the traffic splitting configuration interface according to the business scenario requirements on the second terminal (such as the business terminal). Then, they can configure the execution rules for the web page addresses corresponding to different object tags in each traffic splitting type, and obtain the traffic splitting configuration information corresponding to each traffic splitting type. The second terminal sends the traffic splitting configuration information corresponding to each traffic splitting type to the server. The server generates the traffic splitting mapping rules corresponding to each traffic splitting type based on the obtained traffic splitting configuration information. After that, the server completes the delivery of each link corresponding to each traffic splitting mapping rule.
[0128] See Figure 3 For example, if the server obtains the short code parameter A1 for the target link, then according to... Figure 3 The preset traffic mapping rules shown can be determined as follows: the target traffic type corresponding to the target link is the terminal type, and the target traffic mapping rule corresponding to the target link is traffic mapping rule a1.
[0129] S1202. The server obtains the traffic type judgment method corresponding to the target traffic type. The traffic type judgment method is used to indicate the judgment method of the object tag in the target traffic type.
[0130] Specifically, the preset traffic mapping rules also include a traffic type judgment method corresponding to each traffic type. This traffic type judgment method is used to indicate the judgment method of object tags in the traffic type. Different traffic types may have different traffic type judgment methods.
[0131] For example, when determining the consumption level, the traffic type determination method might call an external interface to query the user's consumption level and determine the user's consumption level based on the returned level field.
[0132] For example, regarding the terminal type, the user's terminal type can be determined directly by parsing specific keywords in the User-Agent field.
[0133] For example, regarding account type, the user account type can be determined directly by parsing specific keywords in the User-Agent field.
[0134] S1203. The server determines the target object marker of the current object based on the traffic splitting type judgment method and the object information of the current object.
[0135] In some embodiments, the server determines the target object tag of the current object based on the traffic splitting type determination method and the object information of the current object, including:
[0136] The server determines whether the object tag is a real-time tag based on the traffic type judgment method. If the object tag is determined to be a real-time tag, the server calls the external interface in real time based on the object information and determines the target object tag of the current object based on the level field returned by the external interface. Alternatively, if the object tag is determined to be an early tag, the server obtains the target object tag of the current object from the object information carried in the target access request.
[0137] For example, for traffic distribution types based on terminal, since the object information carried in the access request for terminal-based traffic distribution includes the terminal type corresponding to that object, the object tagging method for the terminal type can be pre-marked. Another example is for traffic distribution types based on consumption levels. Since the consumption level corresponding to the access request cannot be directly obtained from the object information carried in the access request for consumption level, and since consumption levels are usually not static but change dynamically with the user's consumption behavior, the object tagging method for the consumption level can be real-time marking. Yet another example is for traffic distribution types based on account types. Generally, the object information carried in the access request for account type also includes the account type information to which the object belongs. Since account type information is static, the object tagging method for the account type can be pre-marked.
[0138] In some embodiments, the traffic type determination method includes an interface determination field for indicating whether an object is marked as real-time or pre-marked. The server can determine whether an object is marked as real-time or pre-marked from the field content corresponding to this field.
[0139] In some embodiments, if the content of the field corresponding to the field is empty, the object can be determined to be marked as pre-marked; if the content of the field corresponding to the field is not empty, the object can be determined to be marked as real-time marked.
[0140] In other embodiments, the interface determines whether the field content is either yes or no. If the interface determines whether the field content is yes, the object can be marked as real-time marked. If the interface determines whether the field content is no, the object can be marked as advance marked.
[0141] In some embodiments, the traffic splitting type determination method further includes a data source field indicating the information source of the object tag and a determination key field indicating the specific type of the object tag. The specific content of both the data source field and the determination key field can be appropriately set according to the traffic splitting type.
[0142] This application does not restrict the specific implementation method of the external interface used to determine the object's tag. For example, the implementation of the external interface used to determine the object's consumption level can be: directly obtaining the object's consumption level from the consumption information database, or calculating the object's consumption level in real time by analyzing the user's consumption records.
[0143] For example, the server will construct a request to call an external interface based on object information (such as user ID, session ID, etc.). This external interface is typically provided by other systems or services and is used to return real-time consumption tier information for the current object. After successfully calling the external interface, the server will receive response data containing a tier field. This tier field usually represents the consumption tier or other relevant attributes of the current object. The server needs to parse this tier field and determine the target object tag for the current object according to preset mapping rules or business logic. For example, the tier field can be mapped to a specific tag, identifier, or category for use in subsequent traffic allocation or processing.
[0144] Figure 4 See the example diagram showing the correspondence between the traffic splitting types and the corresponding traffic splitting type determination methods provided in the embodiments of this application. Figure 4 , Figure 4 Examples of methods for determining terminal type and consumption level are provided.
[0145] Specifically, regarding the terminal type determination method, if the interface judgment field in the terminal type determination method is negative, that is, the object is marked in advance, since the header field of the access request includes the terminal type of the object, the data source in the terminal type determination method can be set to the header. More specifically, since the User-Agent field in the header field of the access request is the terminal type corresponding to the object of the access request, the judgment key can be set to User-Agent.
[0146] Regarding the consumption level determination method, the interface judgment field in the consumption level determination method is "yes", that is, the object tag is a real-time tag. Since it is necessary to call an external interface to determine the object tag, the data source in the consumption level determination method is set to the interface return, and the judgment key is the Data.Level field that indicates the consumption level of the object returned by the external interface.
[0147] S1204. The server searches for the target webpage address corresponding to the target object tag in the target traffic mapping rules.
[0148] After determining the target traffic routing rules and target object tags corresponding to the target access request, the target webpage address corresponding to the target object tag can be determined from the target traffic routing rules. For example, in Figure 3 In this context, the server determines the target traffic mapping rule as traffic mapping rule a1, and determines that the target object corresponding to the target access request is marked as terminal type 1, then the target webpage address can be determined as URL1.
[0149] Step 130: Receive the target webpage content corresponding to the target webpage address returned by the server.
[0150] After the server determines the target webpage address, it returns the target webpage content corresponding to that target webpage address to the terminal corresponding to the current object, and the terminal receives the target webpage content corresponding to the target webpage address.
[0151] The content of the target webpage can be text, images, videos, or any other form of content.
[0152] In some embodiments, receiving the target webpage content corresponding to the target webpage address returned by the server includes:
[0153] If the server's cache contains the content of the target webpage corresponding to the target webpage address, then receive the target webpage content retrieved from the server's cache returned by the server; or
[0154] If the target webpage content corresponding to the target webpage address does not exist in the server's cache, then the server will return the target webpage content loaded from the target webpage address.
[0155] Specifically, if the server's cache contains the content of the target webpage corresponding to the target webpage address, the server can directly retrieve the content of the target webpage from the cache and return it to the terminal corresponding to the current object. If the server's cache does not contain the content of the target webpage corresponding to the target webpage address, the server needs to access the target webpage address, retrieve the content of the target webpage corresponding to the target webpage address in real time, and then return the content of the target webpage to the terminal corresponding to the current object.
[0156] In some embodiments, the method further includes:
[0157] If the target webpage content corresponding to the target webpage address does not exist in the server's cache, the server will load the target webpage content corresponding to the target webpage address into the cache after obtaining it.
[0158] When a subsequent object accesses the target webpage address, the server can directly retrieve the target webpage content corresponding to the target webpage address from the cache and return it to the terminal, thereby improving the access efficiency of the link access system.
[0159] This application embodiment loads the target webpage content on the server side and then returns it to the terminal. Compared with the related technology of loading the target webpage content on the terminal, it can prevent objects from opening content that should not be accessed by tampering with parameters, which is very safe and reliable.
[0160] Step 140: Display the target webpage content on the terminal.
[0161] After receiving the target webpage content returned by the server, the terminal will display the target webpage content on the terminal.
[0162] For example, the terminal can perform some preprocessing on the received target webpage content, such as decoding, formatting, and rendering, to ensure that the content can be correctly displayed on the user interface. The processed target webpage content is finally rendered onto the user's screen. This can be a complete webpage, a pop-up window, a page fragment, or other forms of user interface elements.
[0163] Figure 5 and Figure 6 These are all schematic diagrams illustrating application scenarios of the link access method provided in the embodiments of this application. See also: Figure 5 and Figure 6 For example, if both operations target the link https: / / www.xxx / yyy, then the traffic routing rules for the link https: / / www.xxx / yyy will be consistent, assuming they are both... Figure 3 The splitting mapping rule a1 in the middle, but Figure 5 The corresponding object is marked as terminal type 1, while Figure 6 If the corresponding object is tagged as terminal type 2, then at this time, Figure 5 The corresponding target webpage address is URL1, and URL1 is a news webpage. Figure 5 When the corresponding user accesses the link, the target webpage content received and displayed by the corresponding terminal is news-related content. Figure 6 The corresponding target webpage address is URL2, which is a game webpage. Figure 6When the corresponding object accesses the link, the target webpage content received and displayed by the corresponding terminal is game-related content.
[0164] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.
[0165] This embodiment of the application generates a target access request in response to the current object's access operation on the target link. The target access request carries the link short code parameter of the target link and the object information of the current object. The target access request is sent to the server, so that the server determines the target object tag of the current object based on the target access request, and searches for the target webpage address corresponding to the target object tag from a preset traffic splitting mapping rule. The traffic splitting mapping rule includes the mapping relationship between different object tags and different webpage addresses in multiple traffic splitting types. The server returns the target webpage content corresponding to the target webpage address, and displays the target webpage content on the terminal. This embodiment of the application can return different target webpage content according to the target object tags of different users, and can set traffic splitting mapping rules and perform traffic splitting processing on the server side, realizing the function of traffic splitting access based on the target object tag when a user accesses a target link.
[0166] Please see Figure 7 , Figure 7 This is a schematic diagram of the second process of the link access method provided in an embodiment of this application. This method can be applied to, for example... Figure 1 The method for the server 2000 shown may include the following steps 210 to 230:
[0167] Step 210: Obtain the target access request sent by the terminal in response to the current object's access operation on the target link. The target access request carries the link short code parameter of the target link and the object information of the current object.
[0168] The server obtains the target access request generated by the terminal's response to the current object's access operation on the target link. The target access request carries the link short code parameter of the target link and the object information of the current object.
[0169] Step 220: Determine the target object tag of the current object based on the target access request, and find the target web page address corresponding to the target object tag from the preset traffic mapping rules. The traffic mapping rules include the mapping relationship between different object tags and different web page addresses in multiple traffic types.
[0170] The server determines the target object tag of the current object based on the target access request, and finds the target web page address corresponding to the target object tag from the preset traffic mapping rules.
[0171] In some embodiments, the target object tag of the current object is determined according to the target access request, and the target web page address corresponding to the target object tag is searched from the preset traffic mapping rules, including the following S2201-S2204:
[0172] S2201. Based on the short code parameter of the target link in the target access request, determine the target traffic type and target traffic mapping rule corresponding to the target link from the preset traffic mapping rules.
[0173] The server parses the target access request to obtain the short code parameter of the target link in the target access request, and then determines the target traffic type and target traffic mapping rule corresponding to the target link based on the short code parameter of the target link.
[0174] S2202. Obtain the traffic type judgment method corresponding to the target traffic type. The traffic type judgment method is used to indicate the judgment method of the object mark in the target traffic type.
[0175] The server obtains the method for determining the corresponding traffic type of the target traffic type.
[0176] S2203. Determine the target object marker of the current object based on the method of determining the flow type and the object information of the current object;
[0177] The server determines the target object tag of the current object based on the traffic type judgment method and the object information of the current object.
[0178] In some embodiments, determining the target object marker of the current object based on the traffic type determination method and the object information of the current object includes:
[0179] Determine whether the object tag is a real-time tag based on the method of determining the traffic type;
[0180] If the object is determined to be marked as a real-time marker, then an external interface is called in real-time based on the object information, and the target object marker for the current object is determined according to the level field returned by the external interface; or
[0181] If the object is determined to be pre-marked, then the target object mark of the current object is obtained from the object information carried in the target access request.
[0182] S2204. Find the target webpage address corresponding to the target object tag from the target traffic mapping rules.
[0183] Step 230: Send the target webpage content corresponding to the target webpage address to the terminal so that the target webpage content can be displayed on the terminal.
[0184] The server sends the content of the target webpage corresponding to the target webpage address to the terminal, so that the terminal receives and displays the target webpage content.
[0185] In some embodiments, sending the content of the target webpage corresponding to the target webpage address to the terminal includes:
[0186] Check if the target webpage content corresponding to the target webpage address exists in the server's cache;
[0187] If the server's cache contains the content of the target webpage corresponding to the target webpage address, then the cached content of the target webpage is sent to the terminal; or
[0188] If the target webpage content corresponding to the target webpage address does not exist in the server's cache, the target webpage content is loaded from the target webpage address and sent to the terminal.
[0189] In some embodiments, the method further includes:
[0190] If the target webpage content corresponding to the target webpage address does not exist in the server's cache, the server will load the target webpage content corresponding to the target webpage address into the cache after obtaining it.
[0191] In some embodiments, before obtaining the target access request generated by the terminal in response to the current object's access operation for the target link, the method further includes:
[0192] In response to the traffic configuration information for each traffic type entered on the traffic configuration interface, traffic mapping rules are generated. The traffic configuration information includes the task name, task conditions, and task execution rules.
[0193] The task name indicates the traffic splitting type information corresponding to this traffic splitting configuration information.
[0194] Task conditions refer to a set of conditions or rules that must be met when a task is dispatched for execution.
[0195] For example, the task condition could be a "one-to-many link" (or a three-to-one link), where one short link corresponds to multiple (e.g., three) long links. For instance, a short link could direct iOS users to website A, Android users to website B, and PC users to website D. Although the same short link is clicked, users will be redirected to different web page addresses.
[0196] For example, the task condition could be "one-to-one link", where a short link corresponds to a long link.
[0197] The task execution rule indicates the correspondence between different web page addresses corresponding to different object tags in the traffic type corresponding to the task name.
[0198] Figure 8 See the example diagram of the traffic splitting configuration interface provided in the embodiments of this application. Figure 8 When creating the traffic splitting configuration information, you need to enter the corresponding information in three places: task name, task conditions, and execution rules. For example, in Figure 8 In the configuration, the task name field for this traffic splitting configuration is: iOS, Android, PC object splitting. The task condition field is: "Three and One Link". The execution rules field requires separate inputs for the corresponding webpage addresses on iOS, Android, and PC. For example, the iOS address is: https: / / www.xxx1.com / , and the Android address is:
[0199] The URL is https: / / www.xxx2.com / , and the corresponding address for the PC is https: / / www.xxx3.com / . Finally, click the "Create" button to generate a traffic mapping rule with the traffic type set to terminal.
[0200] In some embodiments, the method further includes:
[0201] Get the current timestamp of the generated traffic splitting mapping rule, use the current timestamp as a random seed to generate an N-character string consisting of numbers and letters, and use the string as the link short code parameter, where N is a natural number greater than 1.
[0202] Specifically, after completing the input of the traffic splitting configuration information on the traffic splitting configuration interface and clicking the create button, the traffic splitting mapping rule will be generated. Therefore, obtaining the current timestamp of the generated traffic splitting mapping rule is the creation time of obtaining the corresponding traffic splitting configuration information.
[0203] In some embodiments, the method further includes:
[0204] Associate the traffic splitting mapping rules with the link short code parameters;
[0205] Generate a target link carrying a short link code parameter;
[0206] The target link carrying the link short code parameter is distributed to each terminal that has established a communication connection with the server.
[0207] The server associates traffic splitting mapping rules with link short code parameters. This association allows for quick retrieval of the corresponding traffic splitting logic and webpage address based on the link short code parameters during subsequent processing. After generating the link short code parameters, the server can store them along with the traffic splitting mapping rules in a database or in-memory data structure (such as a hash table) to ensure fast retrieval of the mapping relationship. Next, a target link carrying the link short code parameters is generated. This target link is displayed to the user on the terminal, allowing the user to trigger the traffic splitting logic by clicking it. The server constructs a complete target link based on a preset URL template and the generated link short code parameters. This target link typically includes the server's domain name, path, and the link short code parameters used as query or path parameters. Finally, the target link carrying the link short code parameters is distributed to each terminal that has established a communication connection with the server, enabling the corresponding object on the terminal to access the target link.
[0208] Figure 9 Please refer to the following diagram illustrating the application scenario of the link access method provided in the embodiments of this application. Figure 9 , Figure 9 This illustrates the server's processing of an access request corresponding to short link A. Specifically, the traffic distribution type for short link A is terminal type, and the object identifier in the terminal type includes three types: iOS, Android, and PC. Therefore, the access request corresponding to short link A may carry object information in three scenarios: Scenario 1: The object corresponding to the access request is an iOS user, and Header.User-Agent = iOS in the access request; Scenario 2: The object corresponding to the access request is an Android user, and Header.User-Agent = Android; Scenario 3: The object corresponding to the access request is a PC user, and Header.User-Agent = PC in the access request. After receiving this access request, the server then:
[0209] The first step is input: The server will input the short link A corresponding to the access request and the object information User-Agent into the traffic distribution service. Figure 9 Assume the User-Agent for the access request is IOS;
[0210] The second step is loading: The server will load the traffic mapping rule 'a' corresponding to the access request and the terminal type judgment method for terminal type traffic from the traffic mapping rule corresponding to the terminal type traffic, so as to obtain the terminal type of the terminal corresponding to the access request.
[0211] The third step is mapping: The server maps the web page address corresponding to IOS from the traffic mapping rule a, and obtains the web page address corresponding to the access request as URL1.
[0212] The fourth step is caching: The server first checks whether the web page content corresponding to URL1 exists in the local cache. If it does, it retrieves it directly from the cache. If it does not, it accesses URL1 and retrieves the web page content corresponding to URL1, and caches it locally.
[0213] The fifth step is to return the retrieved webpage content to the terminal corresponding to the access request.
[0214] It should be noted that the link access method executed by the server in this application embodiment can refer to the specific implementation of any embodiment of the link access method executed by the terminal described above, and will not be repeated here.
[0215] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.
[0216] In this embodiment, the server obtains a target access request sent by the terminal in response to the current object's access operation on the target link. The target access request carries the link short code parameter of the target link and the object information of the current object. Based on the target access request, the server determines the target object tag of the current object and searches for the target webpage address corresponding to the target object tag from a preset traffic mapping rule. The traffic mapping rule includes the mapping relationship between different object tags and different webpage addresses in multiple traffic types. The server then sends the target webpage content corresponding to the target webpage address to the terminal for display. In this embodiment, the server can return different target webpage content to the terminal based on the target object tags of different users, and can set traffic mapping rules and perform traffic splitting processing on the server side, thus realizing the function of traffic splitting access based on the target object tag when a user accesses a target link.
[0217] Figure 10 A third flowchart illustrating the link access method provided in this application embodiment is shown below. Figure 10 This includes the following steps:
[0218] S101. The server responds to the traffic configuration information for each traffic type entered on the traffic configuration interface and generates traffic mapping rules.
[0219] S102. The server obtains the current timestamp of the generated traffic splitting mapping rule, uses the current timestamp as a random seed to generate an N-digit string consisting of numbers and letters, and determines the string as the link short code parameter.
[0220] S103. The server associates the traffic splitting mapping rules with the link short code parameters; and generates a target link carrying the link short code parameters.
[0221] The relationship between the associated traffic splitting mapping rule and the link short code parameter is as follows: the link short code parameter is determined based on the current timestamp of the traffic splitting mapping rule.
[0222] S104. The server distributes the target link carrying the link short code parameter to each terminal that has established a communication connection with the server.
[0223] S105. In response to the current object's access operation for the target link, the terminal generates a target access request carrying the link short code parameter of the target link and the object information of the current object.
[0224] S106. The terminal sends the target access request to the server;
[0225] S107. Based on the short code parameter in the target access request, the server determines the target traffic type and target traffic mapping rule corresponding to the target link from the preset traffic mapping rules, obtains the traffic type judgment method corresponding to the target traffic type, and determines the target object tag of the current object based on the traffic type judgment method and the object information of the current object.
[0226] S108. The server searches for the target webpage address corresponding to the target object tag in the target traffic mapping rules;
[0227] S109. The server checks whether the target webpage content corresponding to the target webpage address exists in the server's cache; if the target webpage content corresponding to the target webpage address exists in the server's cache, the cached target webpage content is sent to the terminal; if the target webpage content corresponding to the target webpage address does not exist in the server's cache, the target webpage content is loaded from the target webpage address.
[0228] S1010, The server sends the loaded target webpage content to the terminal;
[0229] S1011. The terminal receives and displays the content of the target webpage corresponding to the target webpage address returned by the server.
[0230] It should be noted that the implementation method of the terminal in this embodiment can refer to... Figure 2 The steps in the method shown in the embodiment are also relevant. Additionally, the implementation of the server in this embodiment can be found by referring to... Figure 7 The steps of the method in the illustrated embodiments will not be repeated here.
[0231] To facilitate better implementation of the link access method in the embodiments of this application, the embodiments of this application also provide a link access device. Please refer to... Figure 11 , Figure 11 This is a first structural schematic diagram of a link access device provided in an embodiment of this application. The link access device 300 may include:
[0232] The first acquisition unit 310 is used to acquire the target access request sent by the terminal in response to the access operation of the current object for the target link. The target access request carries the link short code parameter of the target link and the object information of the current object.
[0233] The processing unit 320 is used to determine the target object tag of the current object according to the target access request, and to find the target web page address corresponding to the target object tag from the preset traffic mapping rules. The traffic mapping rules include the mapping relationship between different object tags and different web page addresses in multiple traffic types.
[0234] The first sending unit 330 is used to send the content of the target webpage corresponding to the target webpage address to the terminal so as to display the content of the target webpage on the terminal.
[0235] In some embodiments, the processing unit 320 may be used for:
[0236] Based on the short code parameter of the target link in the target access request, determine the target traffic type and target traffic mapping rule corresponding to the target link from the preset traffic mapping rules;
[0237] Obtain the traffic type determination method corresponding to the target traffic type. The traffic type determination method is used to indicate the determination method of object tags in the target traffic type.
[0238] Based on the method of determining the traffic type and the object information of the current object, determine the target object tag of the current object;
[0239] Find the target webpage address corresponding to the target object tag from the target traffic mapping rules.
[0240] In some embodiments, when the processing unit 320 determines the target object tag of the current object based on the traffic splitting type determination method and the object information of the current object, it can be used for:
[0241] Determine whether the object tag is a real-time tag based on the method of determining the traffic type;
[0242] If the object is determined to be marked as a real-time marker, then an external interface is called in real-time based on the object information, and the target object marker for the current object is determined according to the level field returned by the external interface; or
[0243] If the object is determined to be pre-marked, then the target object mark of the current object is obtained from the object information carried in the target access request.
[0244] In some embodiments, the first transmitting unit 330 may be used for:
[0245] Check if the target webpage content corresponding to the target webpage address exists in the server's cache;
[0246] If the server's cache contains the content of the target webpage corresponding to the target webpage address, then the cached content of the target webpage is sent to the terminal; or
[0247] If the target webpage content corresponding to the target webpage address does not exist in the server's cache, the target webpage content is loaded from the target webpage address and sent to the terminal.
[0248] In some embodiments, before acquiring the target access request generated by the terminal in response to the current object's access operation for the target link, the first acquisition unit 310 may also be used to:
[0249] In response to the traffic configuration information for each traffic type entered on the traffic configuration interface, traffic mapping rules are generated. The traffic configuration information includes the task name, task conditions, and task execution rules.
[0250] In some embodiments, the first acquisition unit 310 may also be used for:
[0251] Get the current timestamp of the generated traffic splitting mapping rule, use the current timestamp as a random seed to generate an N-character string consisting of numbers and letters, and use the string as the link short code parameter, where N is a natural number greater than 1.
[0252] In some embodiments, the processing unit 320 may also be used for:
[0253] Associate the traffic splitting mapping rules with the link short code parameters;
[0254] Generate a target link carrying a short link code parameter;
[0255] The target link carrying the link short code parameter is distributed to each terminal that has established a communication connection with the server.
[0256] In some embodiments, the traffic distribution type includes any one of terminal type, account type, and consumption level.
[0257] Please see Figure 12 , Figure 12 This is a second structural schematic diagram of a link access device provided in an embodiment of this application. The link access device 400 may include:
[0258] The second acquisition unit 410 is used to generate a target access request in response to the current object's access operation on the target link. The target access request carries the link short code parameter of the target link and the object information of the current object.
[0259] The second sending unit 420 is used to send the target access request to the server so that the server can determine the target object tag of the current object according to the target access request and find the target web page address corresponding to the target object tag from the preset traffic mapping rules. The traffic mapping rules include the mapping relationship between different object tags and different web page addresses in multiple traffic types.
[0260] The receiving unit 430 is used to receive the content of the target webpage corresponding to the target webpage address returned by the server;
[0261] Display unit 440 is used to display the content of the target webpage on the terminal.
[0262] In some embodiments, the second acquisition unit 410 may be used for:
[0263] In response to an access operation targeting a target link, generate a target access request carrying the link short code parameter of the target link, and obtain object information of the current object;
[0264] Add the object information of the current object to the request header of the target access request to obtain the target access request carrying the link short code parameter of the target link and the object information of the current object.
[0265] In some embodiments, before generating a target access request in response to the current object's access operation for the target link, the second acquisition unit 410 may also be used to:
[0266] Retrieve the target link distributed from the server, carrying the link short code parameter;
[0267] The link short code parameter uses the current timestamp of the generated split mapping rule as a random seed to generate an N-character string consisting of numbers and letters, where N is a natural number greater than 1.
[0268] In some embodiments, the traffic distribution type includes any one of terminal type, account type, and consumption level.
[0269] It should be noted that the functions of each module in the link access device 300 or link access device 400 in the embodiments of this application can be referred to the specific implementation of any of the above method embodiments, and will not be repeated here.
[0270] Each unit in the above-described device can be implemented entirely or partially through software, hardware, or a combination thereof. Each unit can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each unit.
[0271] For example, the link access device 300 can be integrated into the server, which has storage and a processor and thus computing power, or the link access device 300 can be the server itself.
[0272] For example, the link access device 400 can be integrated into a terminal that has storage and a processor and thus computing capabilities, or the link access device 400 can be the terminal itself.
[0273] In some embodiments, this application also provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0274] Figure 13 A schematic structural diagram of the computer device provided in the embodiments of this application, such as Figure 13 As shown, the computer device 500 may include: a communication interface 501, a memory 502, a processor 503, and a communication bus 504. The communication interface 501, memory 502, and processor 503 communicate with each other via the communication bus 504. The communication interface 501 is used for data communication between the device 500 and external devices. The memory 502 can be used to store software programs and modules, and the processor 503 runs the software programs and modules stored in the memory 502, such as the software programs for the corresponding operations in the aforementioned method embodiments.
[0275] In some embodiments, the computer device 500 can be a terminal, and the processor 503 can invoke software programs and modules stored in the memory 502 to perform the following operations: generating a target access request in response to an access operation of the current object for a target link, the target access request carrying the link short code parameter of the target link and the object information of the current object; sending the target access request to the server, so that the server determines the target object tag of the current object according to the target access request, and searches for the target web page address corresponding to the target object tag from a preset traffic mapping rule, the traffic mapping rule including the mapping relationship between different object tags and different web page addresses in multiple traffic types; receiving the target web page content corresponding to the target web page address returned by the server; and displaying the target web page content on the terminal.
[0276] In some embodiments, the computer device 500 can be a server, and the processor 503 can call software programs and modules stored in the memory 502 to perform the following operations: obtain a target access request sent by the terminal in response to the current object's access operation for the target link, the target access request carrying the link short code parameter of the target link and the object information of the current object; determine the target object tag of the current object according to the target access request, and search for the target webpage address corresponding to the target object tag from a preset traffic mapping rule, the traffic mapping rule including the mapping relationship between different object tags and different webpage addresses in multiple traffic types; send the target webpage content corresponding to the target webpage address to the terminal to display the target webpage content on the terminal.
[0277] In some embodiments, the computer device 500 may be integrated into a terminal or server that has storage and a processor, thus possessing computing capabilities; or the computer device 500 may be such a terminal or server. The terminal may be a smartphone, tablet, laptop, smart TV, smart speaker, wearable smart device, personal computer, or other similar device. The server may be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0278] This application also provides a computer-readable storage medium for storing a computer program. This computer-readable storage medium can be applied to a computer device, and the computer program causes the computer device to execute the corresponding processes in the methods described above in the embodiments of this application; for brevity, further details are omitted here.
[0279] This application also provides a computer program product including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding processes in the methods described above in the embodiments of this application. For brevity, these details will not be elaborated further here.
[0280] This application also provides a computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding processes in the methods described above in the embodiments of this application. For brevity, these details will not be elaborated further here.
[0281] It should be understood that the processor in the embodiments of this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0282] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0283] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0284] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0285] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0286] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0287] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0288] In addition, the functional units in the embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0289] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer or a server) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0290] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for accessing links, characterized in that, The method includes: The terminal sends a target access request generated in response to the current object's access operation for the target link. The target access request carries the link short code parameter of the target link and the object information of the current object. The target object tag of the current object is determined according to the target access request, and the target web page address corresponding to the target object tag is found from the preset traffic mapping rules. The traffic mapping rules include the mapping relationship between different object tags and different web page addresses in multiple traffic types. The target webpage content corresponding to the target webpage address is sent to the terminal so as to display the target webpage content on the terminal.
2. The link access method as described in claim 1, characterized in that, The step of determining the target object tag of the current object based on the target access request, and searching for the target webpage address corresponding to the target object tag from the preset traffic mapping rules, includes: Based on the short code parameter of the target link in the target access request, determine the target traffic type and target traffic mapping rule corresponding to the target link from the preset traffic mapping rules; Obtain the traffic type determination method corresponding to the target traffic type, wherein the traffic type determination method is used to indicate the determination method of object tags in the target traffic type; Based on the traffic splitting type determination method and the object information of the current object, the target object tag of the current object is determined; Find the target webpage address corresponding to the target object tag from the target traffic mapping rules.
3. The link access method as described in claim 2, characterized in that, The step of determining the target object marker of the current object based on the traffic type determination method and the object information of the current object includes: Determine whether the object tag is a real-time tag based on the aforementioned traffic type determination method; If the object is determined to be marked as a real-time marker, an external interface is invoked in real-time based on the object information, and the target object marker for the current object is determined according to the level field returned by the external interface; or If the object is determined to be pre-marked, then the target object mark of the current object is obtained from the object information carried in the target access request.
4. The link access method as described in claim 3, characterized in that, Sending the content of the target webpage corresponding to the target webpage address to the terminal includes: Check if the target webpage content corresponding to the target webpage address exists in the server's cache; If the server's cache contains the target webpage content corresponding to the target webpage address, then the cached target webpage content is sent to the terminal; or If the target webpage content corresponding to the target webpage address does not exist in the server's cache, the target webpage content is loaded from the target webpage address and sent to the terminal.
5. The link access method as described in claim 1, characterized in that, Before the target access request generated by the current object's access operation for the target link, which is sent by the acquisition terminal, the following is also included: In response to the traffic splitting configuration information for each traffic splitting type entered on the traffic splitting configuration interface, the traffic splitting mapping rules are generated. The traffic splitting configuration information includes the task name, task conditions, and task execution rules.
6. The link access method as described in claim 5, characterized in that, The method further includes: Obtain the current timestamp that generated the traffic splitting mapping rule, use the current timestamp as a random seed to generate an N-character string consisting of numbers and letters, and determine the string as the link short code parameter, where N is a natural number greater than 1.
7. The link access method as described in claim 6, characterized in that, The method further includes: Associate the traffic splitting mapping rule with the link short code parameter; Generate a target link carrying the aforementioned link short code parameter; The target link carrying the short code parameter is distributed to each terminal that has established a communication connection with the server.
8. The link access method as described in claim 1, characterized in that, The traffic diversion type includes any one of the following: terminal type, account type, and consumption level.
9. A method for accessing links, characterized in that, The method includes: In response to the current object's access operation on the target link, a target access request is generated, the target access request carrying the link short code parameter of the target link and the object information of the current object; The target access request is sent to the server so that the server determines the target object tag of the current object based on the target access request and finds the target web page address corresponding to the target object tag from the preset traffic mapping rules. The traffic mapping rules include the mapping relationship between different object tags and different web page addresses in multiple traffic types. Receive the target webpage content corresponding to the target webpage address returned by the server; The target webpage content is displayed on the terminal.
10. The link access method as described in claim 9, characterized in that, The step of generating a target access request in response to the current object's access operation on the target link includes: In response to the current object's access operation for the target link, a target access request carrying the link short code parameter of the target link is generated, and the object information of the current object is obtained; The object information of the current object is added to the request header of the target access request to obtain a target access request carrying the link short code parameter of the target link and the object information of the current object.
11. The link access method as described in claim 9, characterized in that, Before generating the target access request in response to the current object's access operation for the target link, the method further includes: Obtain the target link distributed from the server, carrying the link short code parameter; The link short code parameter uses the current timestamp that generated the traffic splitting mapping rule as a random seed to generate an N-character string consisting of numbers and letters, where N is a natural number greater than 1.
12. The link access method as described in claim 9, characterized in that, The traffic diversion type includes any one of the following: terminal type, account type, and consumption level.
13. A link access device, characterized in that, The device includes: The first acquisition unit is used to acquire a target access request sent by the terminal in response to the access operation of the current object on the target link, wherein the target access request carries the link short code parameter of the target link and the object information of the current object; The processing unit is configured to determine the target object tag of the current object based on the target access request, and to find the target web page address corresponding to the target object tag from a preset traffic mapping rule. The traffic mapping rule includes the mapping relationship between different object tags and different web page addresses in multiple traffic types. The first sending unit is used to send the target webpage content corresponding to the target webpage address to the terminal so as to display the target webpage content on the terminal.
14. A link access device, characterized in that, The device includes: The second acquisition unit is used to generate a target access request in response to the current object's access operation on the target link. The target access request carries the link short code parameter of the target link and the object information of the current object. The second sending unit is used to send the target access request to the server, so that the server determines the target object tag of the current object according to the target access request, and finds the target web page address corresponding to the target object tag from the preset traffic mapping rules. The traffic mapping rules include the mapping relationship between different object tags and different web page addresses in multiple traffic types. A receiving unit is configured to receive the target webpage content corresponding to the target webpage address returned by the server; The display unit is used to display the content of the target webpage on the terminal.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted for loading by a processor to perform the link access method as described in any one of claims 1-12.
16. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing a computer program, and the processor executing the link access method as described in any one of claims 1-12 by calling the computer program stored in the memory.
17. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the link access method according to any one of claims 1-12.