Reading information statistical method and device, equipment and medium
By generating a reading signature and integrating the access address for consistency verification, the problem of inaccurate reading information statistics in the prior art is solved, and more comprehensive data statistics and higher accuracy are achieved.
Patent Information
- Application Number
- CN202510640038.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-19
- Publication Date
- 2025-10-10
AI Technical Summary
In the prior art, reading information statistics rely on client authorization, resulting in incomplete data and inaccurate statistical results.
By generating a reading signature, integrating the reading signature and access address, and performing consistency verification, the accuracy of the statistical results is ensured.
It improves the comprehensiveness and accuracy of reading information statistics and avoids the problems of client identity forgery and article address tampering.
Smart Images

Figure CN120763418A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to a reading information statistics method, device, equipment and medium. Background Art
[0002] With the continuous development of social media platforms, service accounts and mini-programs have become important channels for businesses, media outlets, and individuals to disseminate information and publish articles. After an article is published, accurately counting its readership is crucial for subsequent article content optimization and publishing operations.
[0003] In existing technologies, reading statistics are often calculated based on the webpage authorization mechanism provided by the article publishing platform. When a client clicks on an article's reading link, the client is required to authorize the article publishing platform to obtain basic information authorized by the client. The number of clients who have read the article is then counted by obtaining basic information authorized by the client. However, existing technologies rely on basic client authorization information, while article publishing platforms often support a snapshot reading mode that does not require client authorization. Therefore, using existing technologies to calculate reading statistics results incompletely and inaccurately. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a reading information statistics method, device, equipment and medium, which solves the problems of incomplete statistical data and inaccurate statistical results in the prior art. By generating a reading signature for the reading identity information and reading timestamp in the reading request, integrating the reading signature and the reading access address, and generating an article access address, when the consistency check of the jump request for the article access address is passed, the reading information statistical result is determined based on the number of requested identity information, which can achieve the purpose of splicing the article access address with the client reading signature, ensuring the comprehensiveness of the article reading information statistical data, and improving the accuracy of the statistical results by checking the article access address jump request.
[0005] In a first aspect, an embodiment of the present application provides a reading information statistics method, the method comprising:
[0006] Receive reading requests from various clients, encrypt the reading identity information and reading timestamp in the reading request based on preset encryption rules, and generate a reading signature;
[0007] Parse the reading access address in the reading request, integrate the reading signature and the reading access address, generate the article access address corresponding to the reading request, and feed back the article access address to the corresponding client;
[0008] In response to the jump request of each client to the article access address, if the request identity information, request timestamp and request access address in the jump request pass the consistency check with the reading signature and article access address, the reading information statistics result is determined based on the number of request identity information.
[0009] Furthermore, the reading signature and the reading access address are integrated to generate the article access address corresponding to the reading request, including:
[0010] determining an address template corresponding to the read access address, the address template including an element format of a template element and a positional relationship between a plurality of template elements;
[0011] The signature format of the reading signature is adjusted according to the element format, and the signature format adjustment result is spliced into the address template according to the position relationship to generate the article access address corresponding to the reading request.
[0012] Furthermore, the signature format adjustment result is spliced into the address template according to the position relationship to generate the article access address corresponding to the reading request, including:
[0013] Identify the article identifier of the address template, and splice the signature format adjustment result to the rear of the article identifier according to the position relationship to obtain a splicing result of the signature format adjustment result and the address template;
[0014] The splicing result is encoded based on a preset encoding rule to obtain the article access address corresponding to the reading request.
[0015] Furthermore, the process of performing consistency verification between the request identity information, request timestamp, and request access address in the jump request and the reading signature and article access address includes:
[0016] Encrypt the request identity information and request timestamp in the jump request based on the preset encryption rules to generate a request signature;
[0017] Identify whether the read signature is the same as the request signature and obtain the signature consistency verification result;
[0018] Integrate the request signature and the requested access address in the jump request to generate the actual access address corresponding to the jump request;
[0019] Identify whether the article access address is the same as the actual access address and obtain the access address consistency verification result.
[0020] Furthermore, based on the number of identity information requests, the reading information statistics are determined, including:
[0021] Determining the request identity information in the jump request as statistical identity information, and determining the request access address in the jump request as a statistical access address;
[0022] Identify multiple statistical identity information corresponding to the same statistical access address, deduplicate the multiple statistical identity information, obtain the number of identities of the statistical identity information corresponding to the same statistical access address, and traverse all statistical access addresses to obtain the reading information statistics results.
[0023] Furthermore, the method further comprises:
[0024] If the request identity information, request timestamp and request access address in the jump request fail to pass the consistency check with the reading signature and article access address, the corresponding statistical identity information quantity and statistical access address quantity are determined to be 0.
[0025] Furthermore, before determining the reading information statistics result, the method further includes:
[0026] Redirect to the article access address and display the article content corresponding to the article access address on the client.
[0027] In a second aspect, an embodiment of the present application provides a reading information statistics device, the device comprising:
[0028] The signature generation module is used to receive reading requests sent by various clients, encrypt the reading identity information and reading timestamp in the reading request based on preset encryption rules, and generate a reading signature;
[0029] The access address generation module is used to parse the reading access address in the reading request, integrate the reading signature and the reading access address, generate the article access address corresponding to the reading request, and feed back the article access address to the corresponding client;
[0030] The reading information statistics module is used to respond to the jump requests of each client to the article access address. When the request identity information, request timestamp and request access address in the jump request pass the consistency verification with the reading signature and article access address, the reading information statistics result is determined based on the number of request identity information.
[0031] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0032] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0033] In the fifth aspect, an embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor of the device reads and executes the computer program from the computer-readable storage medium, so that the device performs the method described in the first aspect.
[0034] In an embodiment of the present application, a reading request sent by each client is received, and the reading identity information and reading timestamp in the reading request are encrypted based on a preset encryption rule to generate a reading signature; the reading access address in the reading request is parsed, the reading signature and the reading access address are integrated, and an article access address corresponding to the reading request is generated, and the article access address is fed back to the corresponding client; in response to a jump request for the article access address from each client, when the request identity information, the request timestamp and the request access address in the jump request are verified to be consistent with the reading signature and the article access address, the reading information statistical result is determined based on the number of request identity information. The above reading information statistical method solves the problems of incomplete statistical data and inaccurate statistical results in the prior art. By generating a reading signature for the reading identity information and the reading timestamp in the reading request, integrating the reading signature and the reading access address, generating an article access address, and when the consistency check of the jump request for the article access address is passed, the reading information statistical result is determined based on the number of request identity information, so as to achieve the purpose of splicing the article access address with the client reading signature, thereby ensuring the comprehensiveness of the article reading information statistical data, and improving the accuracy of the statistical results by verifying the article access address jump request. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a flow chart of a reading information statistics method provided by an embodiment of the present application;
[0036] Figure 2 This is a process diagram for obtaining article content provided by this application;
[0037] Figure 3 This is a flowchart of generating an article access address provided by an embodiment of the present application;
[0038] Figure 4 This is a flow chart of another reading information statistics method provided by an embodiment of the present application;
[0039] Figure 5 This is a structural block diagram of a reading information statistics device provided in an embodiment of the present application;
[0040] Figure 6 This is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solutions and advantages of the present application clearer, an optional detailed description of the specific embodiments of the present application is given below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are merely used to explain the present application and are not intended to limit the present application. It should also be noted that, for ease of description, only portions related to the present application, rather than all of the contents, are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the various operations (or steps) as sequential processes, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the various operations can be rearranged. The process can be terminated when its operations are completed, but may also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0042] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0043] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0044] First of all, the usage scenario of this solution can be a scenario of performing reading statistics on articles published on the platform, especially a scenario of performing statistics on article reading and reading data based on the click situation of the article link. By generating a reading signature based on the reading identity information and reading timestamp in the reading request, integrating the reading signature and the reading access address, and generating the article access address, when the consistency check of the jump request for the article access address is passed, the reading information statistics result is determined based on the number of request identity information, which can achieve the purpose of splicing the article access address with the client reading signature, ensuring the comprehensiveness of the article reading information statistics, and improving the accuracy of the statistical results by verifying the article access address jump request. Based on the above usage scenarios, it can be understood that the executor of this solution can be a server.
[0045] The following describes in detail a reading information statistics method, device, equipment, and medium provided by the embodiments of the present application through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0046] Figure 1 This is a flow chart of a reading information statistics method provided by an embodiment of the present application. Figure 1 As shown, the specific steps include:
[0047] S101: receiving reading requests sent by various clients, encrypting the reading identity information and reading timestamp in the reading requests based on preset encryption rules, and generating a reading signature.
[0048] Among them, the client can be a terminal that clicks on the article link through an article publishing platform such as a service account or a mini program to obtain the article content. The reading request can be a request information for requesting to obtain the article content. The reading request can carry reading identity information and a reading timestamp. The reading identity information can be information used to distinguish the client that issued the reading request. The reading timestamp can be data used to indicate the time when the reading request was issued. The preset encryption rule can be a pre-set algorithm for encrypting the reading identity information and the reading timestamp. For example: hash signature and symmetric encryption algorithm. The reading signature can be a string obtained by encrypting the reading identity information and the reading timestamp. The reading signature is used to verify the legitimacy of subsequent client requests to jump to the article access address. By splicing the reading signature with the article address, it can ensure that the article link is not tampered with during transmission. During the signing process, this solution includes the client's identity information and timestamp for subsequent verification of the signature validity period to avoid replay attacks.
[0049] In one embodiment, the platform interface of the article publishing platform can receive reading requests sent by various clients, encrypt the reading identity information and reading timestamp carried in the reading request according to preset encryption rules, and generate a reading signature.
[0050] S102 , parsing the reading access address in the reading request, integrating the reading signature and the reading access address, generating an article access address corresponding to the reading request, and feeding back the article access address to the corresponding client.
[0051] The reading access address may be the access address corresponding to the article link clicked by the client. The article access address may be the reading access address with a reading signature. Since different clients have different reading identity information and / or reading timestamps, each client's reading signature corresponding to each reading timestamp is also different.
[0052] In one embodiment, the reading access address in the reading request can be parsed based on the position of the address field in the reading request or the identifier, and the reading signature can be spliced to the end of the reading access address. The reading signature and the reading access address can be connected using a connector "&". For example, if the reading access address is https: / / example.com / article / 123 and the reading signature is mini_sign=xyz, then the reading signature can be spliced to the end of the reading access address to obtain the splicing result of https: / / example.com / article / 123&mini_sign=xyz. The splicing result is used as the article access address corresponding to the reading request, and the article access address is fed back to the client that issued the reading request.
[0053] S103, in response to the jump request of each client for the article access address, when the request identity information, request timestamp and request access address in the jump request pass the consistency check with the reading signature and the article access address, the reading information statistics result is determined based on the number of request identity information.
[0054] Among them, the jump request can be a request from the client to jump to the article display page to obtain the article content. The jump request can carry the request identity information and request timestamp of the jump request. The request identity information can be information used to distinguish the client that issued the jump request. The request timestamp can be the time when the jump request was issued. The requested access address can be the article address corresponding to the jump request, that is, the target address to which the client requests to jump. The number of request identity information can be the number of request identity information in the access request that has passed the consistency check. The reading information statistics can include the number of readers who clicked to read each article and the total number of articles published on the platform.
[0055] In one embodiment, a jump request for an article access address from each client can be received. In response to the jump request, the request identity information, request timestamp and request access address in the jump request are read. Since the above-mentioned article access address includes the reading signature and reading access address of the corresponding user, in order to avoid identity forgery and tampering of the article address when accessing the article, it is necessary to perform a consistency check on the jump request issued by the corresponding client based on the reading signature and the article access address, identify whether the reading identity information and reading timestamp in the reading signature are the same as the request identity information and request timestamp, and identify whether the reading access address in the article access address is the same as the request access address. If they are the same, determine that the request identity information, request timestamp and request access address in the jump request have passed the consistency check with the reading signature and the article access address, and determine the reading information statistics based on the number of request identity information that have passed the consistency check and the articles corresponding to each request identity information.
[0056] In one embodiment, before determining the reading information statistics result, the method further includes: redirecting to the article access address, and displaying the article content corresponding to the article access address on the client.
[0057] Among them, redirection can be an operation of jumping to the article display page based on the article access address. Since the article access address is a new address generated based on the reading access address and reading signature in the reading request, when the client needs to obtain the article content, it needs to be redirected to the new address to jump to the article display page.
[0058] In one embodiment, if the jump request consistency check passes, the client can be allowed to jump to the article display page. At this time, the client's access request can be redirected according to the article access address, so that the client jumps to the article access address and displays the article content corresponding to the article access address on the client.
[0059] Figure 2 This is a process diagram for obtaining article content provided by this application.
[0060] like Figure 2 As shown, the article is published on the mini program page. The client requests to read the article by clicking on the article link on the mini program page. The mini program runs on the client and obtains the client's identity information code, the timestamp t of clicking the article link, and the corresponding article address url through the platform interface. For example, the mini program can use the wx.login method to obtain user information, etc. The mini program generates a reading request carrying code, t, and url, and sends the reading request to the server. After receiving the reading request, the server encrypts the code and t in the request, generates a reading signature mini_sign, and parses the original article address url in the request. Since the article link is obtained by base64 encoding the url, it is necessary to parse the url to obtain the original address of the article. The server integrates the reading signature into the original address of the article, generates the article access address that the client ultimately needs to access, and feeds the address back to the mini program interface on the client. After receiving the new article access address, the mini program issues a jump request to jump to the final article address to obtain the article content. After receiving the jump request, the server needs to verify the consistency of the request signature and request access address in the jump request with the previously generated reading signature and article access address to avoid client identity forgery and article address tampering. If the verification passes, the server records the request identity information and article address URL for subsequent statistics of article reading information, and allows the mini program to redirect to the final article address. After the jump, the mini program will display the obtained article content on the client's display page.
[0061] The technical solution provided by the embodiment of the present application receives a reading request sent by each client, encrypts the reading identity information and reading timestamp in the reading request based on a preset encryption rule, and generates a reading signature; parses the reading access address in the reading request, integrates the reading signature and the reading access address, generates an article access address corresponding to the reading request, and feeds the article access address back to the corresponding client; in response to the jump request for the article access address from each client, when the request identity information, request timestamp and request access address in the jump request pass the consistency check with the reading signature and the article access address, determines the reading information statistics based on the number of request identity information. The above reading information statistics method solves the problems of incomplete statistical data and inaccurate statistical results in the prior art. By generating a reading signature for the reading identity information and reading timestamp in the reading request, integrating the reading signature and the reading access address, generating an article access address, and when the consistency check of the jump request for the article access address passes, determining the reading information statistics based on the number of request identity information, the purpose of splicing the article access address with the client reading signature can be achieved, ensuring the comprehensiveness of the article reading information statistics, and improving the accuracy of the statistical results by verifying the article access address jump request.
[0062] Figure 3 This is a flow chart of generating article access addresses provided by the embodiment of this application. Figure 3 As shown, the specific steps include:
[0063] S301: Determine an address template corresponding to a read access address, where the address template includes an element format of a template element and positional relationships between multiple template elements.
[0064] The address template may be a framework describing the format and structure of a read access address. The template elements may be the content that composes the address template. The element format may be the element type and length corresponding to each template element. The positional relationship between multiple template elements may be information describing the order and position of the multiple template elements within the address template.
[0065] In an embodiment, element separators in the reading access address can be identified, field parsing is performed on fields between adjacent element separators, formats of elements corresponding to respective fields and arrangement order and arrangement positions between the elements are obtained, and an address template corresponding to the reading access address is obtained. For example, the reading access address is https / / example.com / article / 12345, field parsing is performed on the address, and it is found that the elements include the domain name https, example.com and the path article, 12345, the format of the element name is English, the variable corresponding to the element name is in the format of a number, and the address template is https / / example.com / article / <article_id> according to the arrangement order and arrangement positions between the elements.
[0066] In S302, the signature format of the reading signature is adjusted according to the element format, the signature format adjustment result is spliced into the address template according to the position relationship, and an article access address corresponding to the reading request is generated.
[0067] In an embodiment, the signature format of the reading signature is adjusted according to the element encoding format, the name of the reading signature and the corresponding variable are adjusted to the same format as the element encoding format, the adjusted reading signature is spliced into the end position of the address template according to the position relationship between the elements and the variables in the template, and an article access address corresponding to the reading request is generated. For example, the reading signature is 9f1a3bc, the adjusted reading signature is / mini_sign / <9f1a3bc> after format adjustment according to the address template, the reading signature is spliced into the address template, and the article access address is https / / example.com / article / 12345 / mini_sign / <9f1a3bc>. According to the scheme, the article access address generated by adjusting and splicing the reading signature according to the format and order of the address template has a clear structure, can carry the signature to encrypt the article access address, effectively avoids the problem of modification and forgery of the article access address, and further improves the security of the article access address.
[0068] In an embodiment, the signature format adjustment result is spliced into the address template according to the position relationship, an article access address corresponding to the reading request is generated, and the method includes the following steps: identifying an article identifier of the address template, splicing the signature format adjustment result to the rear of the article identifier according to the position relationship, obtaining a splicing result of the signature format adjustment result and the address template, and encoding the splicing result based on a preset encoding rule to obtain an article access address corresponding to the reading request.
[0069] The article identifier may be a mark used to distinguish the article element from other elements in the reading access address. The preset encoding rule may be a pre-set rule for encrypting the splicing result, for example, base64 encoding.
[0070] In one embodiment, the article identifier in the address template can be identified, and the position of the element corresponding to the article identifier in the template can be determined based on the positional relationship between the various elements in the template. The signature format adjustment result is then concatenated after the element corresponding to the article identifier and its element variable, resulting in a concatenation of the signature format adjustment result and the address template. The concatenation result is then encoded as a whole according to a preset encoding rule, and the entire encoded structure is used as the article access address corresponding to the reading request.
[0071] This solution obtains the splicing result by splicing the signature format adjustment result to the back of the article identifier according to the positional relationship in the address template, and encodes the splicing result based on the preset encoding rules to obtain the article access address corresponding to the reading request. This can further improve the security of the article access address and is beneficial to the accuracy of subsequent jump request verification.
[0072] The technical solution provided in the embodiment of the present application determines the address template corresponding to the reading access address, adjusts the signature format of the reading signature according to the element format in the template, and splices the signature format adjustment result into the address template according to the position relationship to generate an article access address corresponding to the reading request. This can achieve the purpose of unifying the reading signature and the article address format and embedding the reading signature into the article address, thereby improving the security of the article access address and the accuracy of the jump request verification, thereby improving the accuracy of the reading information statistics.
[0073] Figure 4 This is a flow chart of another reading information statistics method provided by the embodiment of the present application. Figure 4 As shown, the processing parameters include a processing identifier, which specifically includes the following steps:
[0074] S401: receiving reading requests sent by various clients, encrypting the reading identity information and reading timestamp in the reading requests based on preset encryption rules, and generating a reading signature.
[0075] S402 , parsing the reading access address in the reading request, integrating the reading signature and the reading access address, generating an article access address corresponding to the reading request, and feeding back the article access address to the corresponding client.
[0076] S403 , in response to the redirection request of each client to the article access address, encrypt the request identity information and request timestamp in the redirection request based on a preset encryption rule to generate a request signature.
[0077] The preset encryption rule is the same as the encryption rule for encrypting the reader identity information and the reading timestamp, and is used to encrypt the request identity information and the request timestamp in the jump request using the same algorithm. The request signature can be a string obtained by encrypting the request identity information and the request timestamp.
[0078] In one embodiment, in response to each client's jump request for the article access address, the request identity information and request timestamp in the jump request can be encrypted using the same preset encryption rules as the above-mentioned reading request to generate a request signature.
[0079] S404: Identify whether the read signature is the same as the request signature and obtain a signature consistency verification result.
[0080] In one embodiment, since the encryption algorithm and encrypted content of the request signature and the read signature are the same, when the read request and the jump request are from the same client, the read signature and the request signature should also be the same. Therefore, it is possible to identify whether the read signature and the request signature are the same. If they are the same, the signatures are determined to be consistent, that is, it is determined that the read request and the jump request are issued by the same client, and the signature consistency verification result is obtained.
[0081] S405: Integrate the request signature and the requested access address in the jump request to generate an actual access address corresponding to the jump request.
[0082] The actual access address may be an access address corresponding to the jump request generated by concatenating the request signature and the requested access address.
[0083] In one embodiment, the request signature and the requested access address in the jump request are integrated in the manner of generating the article access address described above to generate an actual access address corresponding to the jump request.
[0084] S406: Identify whether the article access address is the same as the actual access address, and obtain an access address consistency check result.
[0085] In one embodiment, if the reading request and the jump request are from the same client, the corresponding access addresses in the two requests should also be the same, that is, the article address in the request is the same as the result of the signature splicing. Therefore, it is possible to identify whether the article access address is the same as the actual access address. If they are the same, the access address consistency is determined, that is, it is determined that the corresponding access addresses in the reading request and the jump request are the same, and the access address consistency verification result is obtained.
[0086] S407, in the case that the request identity information, the request timestamp and the request access address in the jump request pass the consistency check with the reading signature and the article access address, determining the reading information statistical result based on the quantity of the request identity information.
[0087] In one embodiment, the determining the reading information statistical result based on the quantity of the request identity information comprises: determining the request identity information in the jump request as the statistical identity information, and determining the request access address in the jump request as the statistical access address; identifying a plurality of statistical identity information corresponding to the same statistical access address, performing deduplication processing on the plurality of statistical identity information, obtaining the quantity of the statistical identity information corresponding to the same statistical access address, and traversing all statistical access addresses to obtain the reading information statistical result.
[0088] The statistical identity information can be the identity information of the client that clicks the article link published on the platform. The statistical access address can be the access address corresponding to the clicked article link. The deduplication processing can be filtering the same statistical identity information that repeatedly clicks and accesses the same statistical access address, so as to avoid the operation of repeatedly counting the quantity of the same statistical identity information. The reading information statistical result includes the quantity of the client that clicks and reads each article and the quantity of the clicked and read articles.
[0089] In one embodiment, the request identity information in the jump request that passes the consistency check can be determined as the statistical identity information, and the request access address in the jump request can be determined as the statistical access address. A plurality of statistical identity information corresponding to the same statistical access address is identified, similarity calculation is performed on the plurality of statistical identity information, a plurality of statistical identity information with high similarity is determined as repeated statistical identity information, the repeated statistical identity information is deduplicated, only one statistical identity information is retained for each group of repeated statistical identity information, the quantity of the statistical identity information after deduplication is counted, the quantity of the statistical identity information corresponding to the same statistical access address is obtained, and all statistical access addresses are traversed to obtain the reading information statistical result.
[0090] The present scheme can avoid the problem of repeatedly counting the quantity of the client that repeatedly clicks and accesses the same article link, and further improve the accuracy of the reading information statistical result.
[0091] In one embodiment, the method further comprises: determining that the number of statistical identity information and the number of statistical access addresses are 0 in a case where the request identity information, the request timestamp and the request access address in the jump request do not pass the consistency check with the reading signature and the article access address.
[0092] In one embodiment, in a case where at least one of the request identity information, the request timestamp and the request access address in the jump request does not pass the consistency check with the reading signature and the article access address, it is determined that the client identity information and / or the article access address have changed, the jump request corresponding to the client is prohibited from jumping to the article access address fed back to the client, and it is determined that the number of statistical identity information and the number of statistical access addresses are 0.
[0093] The scheme can achieve the purpose of reading information in a case where the jump request check fails, avoids the problems of client identity information forgery and article address tampering, and improves the accuracy of the statistical result.
[0094] The technical scheme provided by the embodiments of the present application can achieve the purpose of checking the jump request of the client based on the client identity information and the access address by encrypting the request identity information and the request timestamp in the jump request based on the same preset encryption rule and integrating the request signature and the request access address in the jump request for signature consistency check, simplifies the check steps, and improves the check efficiency and the accuracy of the check result.
[0095] Figure 5 is a structural block diagram of a reading information statistical device provided by the embodiments of the present application. As shown in Figure 5 , specifically includes the following:
[0096] The signature generation module 501 is configured to receive the reading request sent by each client, encrypt the reading identity information and the reading timestamp in the reading request based on a preset encryption rule, and generate a reading signature;
[0097] The access address generation module 502 is configured to parse the reading access address in the reading request, integrate the reading signature and the reading access address, generate an article access address corresponding to the reading request, and feed back the article access address to the corresponding client;
[0098] The reading information statistics module 503 is used to respond to the jump requests of each client to the article access address. When the request identity information, request timestamp and request access address in the jump request pass the consistency check with the reading signature and the article access address, the reading information statistics result is determined based on the number of request identity information.
[0099] Furthermore, the access address generation module 502 is specifically configured to:
[0100] determining an address template corresponding to the read access address, the address template including an element format of a template element and a positional relationship between a plurality of template elements;
[0101] The signature format of the reading signature is adjusted according to the element format, and the signature format adjustment result is spliced into the address template according to the position relationship to generate the article access address corresponding to the reading request.
[0102] Furthermore, the access address generation module 502 is specifically configured to:
[0103] Identify the article identifier of the address template, and splice the signature format adjustment result to the rear of the article identifier according to the position relationship to obtain a splicing result of the signature format adjustment result and the address template;
[0104] The splicing result is encoded based on a preset encoding rule to obtain the article access address corresponding to the reading request.
[0105] Furthermore, the reading information statistics module 503 is specifically used to:
[0106] Encrypt the request identity information and request timestamp in the jump request based on the preset encryption rules to generate a request signature;
[0107] Identify whether the read signature is the same as the request signature and obtain the signature consistency verification result;
[0108] Integrate the request signature and the requested access address in the jump request to generate the actual access address corresponding to the jump request;
[0109] Identify whether the article access address is the same as the actual access address and obtain the access address consistency verification result.
[0110] Furthermore, the reading information statistics module 503 is specifically used to:
[0111] Determining the request identity information in the jump request as statistical identity information, and determining the request access address in the jump request as a statistical access address;
[0112] Identify multiple statistical identity information corresponding to the same statistical access address, deduplicate the multiple statistical identity information, obtain the number of identities of the statistical identity information corresponding to the same statistical access address, and traverse all statistical access addresses to obtain the reading information statistics results.
[0113] Furthermore, the device also includes:
[0114] If the request identity information, request timestamp and request access address in the jump request fail to pass the consistency check with the reading signature and article access address, the corresponding statistical identity information quantity and statistical access address quantity are determined to be 0.
[0115] Furthermore, the reading information statistics module 503 is further configured to:
[0116] Redirect to the article access address and display the article content corresponding to the article access address on the client.
[0117] The technical solution provided in the embodiment of the present application includes a signature generation module for receiving reading requests sent by various clients, encrypting the reading identity information and reading timestamp in the reading request based on preset encryption rules, and generating a reading signature; an access address generation module for parsing the reading access address in the reading request, integrating the reading signature and the reading access address, generating an article access address corresponding to the reading request, and feeding back the article access address to the corresponding client; a reading information statistics module for responding to jump requests for article access addresses from various clients, and determining the reading information statistics results based on the number of request identity information when the request identity information, request timestamp and request access address in the jump request pass the consistency check with the reading signature and the article access address. The above-mentioned reading information statistics device solves the problems of incomplete statistical data and inaccurate statistical results in the prior art. By generating a reading signature based on the reading identity information and reading timestamp in the reading request, integrating the reading signature and the reading access address, and generating an article access address, when the consistency check of the jump request for the article access address is passed, the reading information statistical result is determined based on the number of requested identity information, which can achieve the purpose of splicing the article access address with the client reading signature, ensuring the comprehensiveness of the article reading information statistical data, and improving the accuracy of the statistical results by checking the jump request for the article access address.
[0118] In the embodiments of the present application, a reading information statistics device can be configured in a device, or in a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine (ATM), or a self-service machine, etc., and the embodiments of the present application do not specifically limit this.
[0119] In the embodiment of the present application, a reading information statistics device can be an operating system, which can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0120] The reading information statistics device provided in the embodiment of the present application can implement each process implemented by the above-mentioned method embodiments. To avoid repetition, it will not be described here.
[0121] like Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned reading information statistics method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0122] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0123] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned reading information statistics method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0124] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.
[0125] The present application also provides a program product comprising program code. When the program product is executed on a computer device, the program code is configured to cause the computer device to execute the steps of the methods described above according to the various exemplary embodiments of the present application. For example, the computer device may execute a reading information statistics method described in the present application. The program product may be implemented using any combination of one or more readable media.
[0126] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0128] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
[0129] The above are only preferred embodiments of the present application and the technical principles employed. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that are possible for those skilled in the art will not depart from the scope of protection of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments and may include more other equivalent embodiments without departing from the concept of the present application. The scope of the present application is determined by the scope of the claims.
Claims
1. A reading information statistics method, characterized in that: The method comprises: Receive reading requests sent by various clients, encrypt the reading identity information and reading timestamp in the reading requests based on preset encryption rules, and generate a reading signature; Parsing the reading access address in the reading request, integrating the reading signature and the reading access address, generating an article access address corresponding to the reading request, and feeding back the article access address to the corresponding client; In response to the jump request of each client to the article access address, when the request identity information, request timestamp and request access address in the jump request pass the consistency verification with the reading signature and the article access address, the reading information statistics result is determined based on the number of the request identity information.
2. The reading information statistics method according to claim 1, characterized in that: The step of integrating the reading signature and the reading access address to generate an article access address corresponding to the reading request includes: determining an address template corresponding to the read access address, wherein the address template includes an element format of a template element and a positional relationship between a plurality of template elements; The signature format of the reading signature is adjusted according to the element format, and the signature format adjustment result is spliced into the address template according to the position relationship to generate an article access address corresponding to the reading request.
3. The reading information statistics method according to claim 2, characterized in that: The step of splicing the signature format adjustment result into the address template according to the positional relationship to generate an article access address corresponding to the reading request includes: Identifying the article identifier of the address template, and splicing the signature format adjustment result to the rear of the article identifier according to the positional relationship, to obtain a splicing result of the signature format adjustment result and the address template; The splicing result is encoded based on a preset encoding rule to obtain an article access address corresponding to the reading request.
4. The reading information statistics method according to claim 1, characterized in that: The process of performing consistency verification between the request identity information, request timestamp, and request access address in the jump request and the reading signature and the article access address includes: Encrypt the request identity information and request timestamp in the jump request based on preset encryption rules to generate a request signature; Identify whether the read signature is identical to the request signature, and obtain a signature consistency verification result; Integrate the request signature and the requested access address in the jump request to generate an actual access address corresponding to the jump request; Identify whether the article access address is the same as the actual access address, and obtain an access address consistency check result.
5. The reading information statistics method according to claim 4, characterized in that: The determining of the reading information statistics result based on the number of the requested identity information includes: Determining that the request identity information in the jump request is statistical identity information, and determining that the request access address in the jump request is a statistical access address; Identify multiple statistical identity information corresponding to the same statistical access address, deduplicate the multiple statistical identity information, obtain the number of identities of the statistical identity information corresponding to the same statistical access address, and traverse all the statistical access addresses to obtain the reading information statistics results.
6. The reading information statistics method according to claim 5, characterized in that: The method further comprises: If the request identity information, request timestamp and request access address in the jump request fail the consistency check with the reading signature and the article access address, the corresponding statistical identity information quantity and statistical access address quantity are determined to be 0.
7. The reading information statistics method according to claim 1, characterized in that: Before determining the reading information statistics result, the method further includes: Redirect to the article access address, and display the article content corresponding to the article access address on the client.
8. A reading information statistics device, characterized in that: The device comprises: The signature generation module is used to receive the reading request sent by each client, encrypt the reading identity information and reading timestamp in the reading request based on the preset encryption rules, and generate a reading signature; an access address generation module, configured to parse the reading access address in the reading request, integrate the reading signature and the reading access address, generate an article access address corresponding to the reading request, and feed the article access address back to the corresponding client; A reading information statistics module is used to respond to the jump requests of each client to the article access address, and when the request identity information, request timestamp and request access address in the jump request pass the consistency verification with the reading signature and the article access address, determine the reading information statistics result based on the number of the request identity information.
9. An electronic device, characterized in that: The method comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of a reading information statistics method as described in any one of claims 1 to 7 are implemented.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of a reading information statistics method according to any one of claims 1 to 7 are implemented.