Webpage access method and device, electronic equipment and computer storage medium

By generating a unique access identifier on the backend and performing idempotence verification, the problem of users repeatedly accessing web pages is solved, effectively preventing duplicate requests, and improving system stability and user experience.

CN119652546APending Publication Date: 2025-03-18SI-TECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411492177.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In the prior art, users cannot effectively prevent repeated access to web pages at the back-end level, resulting in duplicate and bad data generated by the target web page system and causing damage to users' business.

Method used

By obtaining the user's access request, a unique access identifier is generated, and a preset database is used for idempotence verification. If the access identifier is repeated, the target web page is prevented from accepting the access request.

Benefits of technology

It effectively avoids the same user repeatedly submitting the same access request in a short time, prevents the target web system from generating bad data, and improves system stability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119652546A_ABST
    Figure CN119652546A_ABST
Patent Text Reader

Abstract

The invention relates to a webpage access method and device, electronic equipment and a computer storage medium, and the method comprises the steps: generating a first access identifier corresponding to an access request according to a first user identifier, first access time and a first webpage identifier in the access request of a target webpage; performing idempotent verification on the first access identifier according to a preset database; if the first access identifier passes the idempotent verification, controlling the target webpage to accept the access request; and if the first access identifier does not pass the idempotent verification, controlling the target webpage not to accept the access request. By means of the method, it can be avoided that the same user repeatedly submits the same access request within the first access time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of telecommunication business support technology, and in particular to a web page access method, device, electronic equipment and computer storage medium. Background Art

[0002] When using the order system, you will usually encounter the following situations:

[0003] Because the web page responds slowly, after submitting the request, there is no response, so the submit button is clicked repeatedly. Due to network problems, the request result cannot be received and the request is re-initiated. Or the front-end operation jitters cause repeated submissions.

[0004] The exposed interfaces for order creation, correction, and cancellation receive repeated request submissions instantly. If you check the background data or logs, you will find that the same business operation request has been submitted multiple times, resulting in multiple duplicate bad data, which directly causes program abnormalities and even causes damage to user business. Usually, the front-end control method is adopted to control the submit button to be grayed out and disabled after clicking it once, so that repeated clicks are not allowed, which can prevent repeated clicks by humans. However, if multiple requests are submitted through tools, the back-end needs to be controlled. Therefore, there is an urgent need in the prior art for a solution on how to prevent repeated access at the back-end. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a web page access method, device, electronic device and computer storage medium, aiming to solve at least one of the above technical problems.

[0006] The technical solution of the present invention to solve the above technical problem is as follows: a web page access method, the method comprising:

[0007] Obtaining a user's access request for a target webpage, wherein the access request includes a first user identifier, a first access time, and a first webpage identifier of the target webpage;

[0008] Generate a first access identifier corresponding to the access request according to the first user identifier, the first access time and the first webpage identifier;

[0009] Performing an idempotency check on the first access identifier according to a preset database, wherein the database includes second access identifiers corresponding to different users for different web pages at different access times;

[0010] If the first access identifier passes the idempotence check, controlling the target webpage to accept the access request;

[0011] If the first access identifier fails the idempotence check, the target webpage is controlled not to accept the access request.

[0012] The beneficial effect of the present invention is that: through the unique marking method of the access identifier, the first access identifier corresponding to the access request is checked for idempotence through the database, thereby avoiding the same user from repeatedly submitting the same access request within the first access time, causing the system corresponding to the target web page to generate bad data.

[0013] Based on the above technical solution, the present invention can also be improved as follows.

[0014] Furthermore, the access request also includes a first service identifier, which is used to characterize the service corresponding to the access request in the target webpage, and generating the first access identifier corresponding to the access request according to the first user identifier, the first access time and the first webpage identifier includes:

[0015] Generate a feature value ID according to the first webpage identifier, the first service identifier and the first user identifier;

[0016] Determine a first impact time period of the access time according to the access time and a preset minimum time granularity;

[0017] The first access identifier is generated according to the first impact time period and the feature value ID.

[0018] Further, generating a characteristic value ID according to the first webpage identifier, the first service identifier and the first user identifier includes:

[0019] Hash processing is performed on the first webpage identifier, the first service identifier and the first user identifier to obtain a characteristic value ID.

[0020] Further, performing an idempotency check on the first access identifier according to a preset database, and controlling the target webpage to accept the access request if the first access identifier passes the idempotency check; and controlling the target webpage not to accept the access request if the first access identifier fails the idempotency check, including:

[0021] determining whether there is a second access identifier identical to the first access identifier in the database; if there is a second access identifier identical to the first access identifier in the database, controlling the target webpage not to accept the access request;

[0022] If the second access identifier identical to the first access identifier does not exist in the database, the target webpage is controlled to accept the access request.

[0023] Furthermore, the database includes a plurality of record tables, each of which records the second access identifiers corresponding to different web pages accessed by different users at different access times every day, and the method further includes:

[0024] On the current day, the record sheet corresponding to the day before the current day is cleared.

[0025] In a second aspect, in order to solve the above technical problem, the present invention further provides a web page access device, the device comprising:

[0026] An acquisition module, configured to acquire a user's access request for a target webpage, wherein the access request includes a first user identifier, a first access time, and a first webpage identifier of the target webpage;

[0027] An access identifier generating module, configured to generate a first access identifier corresponding to the access request according to the first user identifier, the first access time and the first webpage identifier;

[0028] An idempotency verification module, configured to perform an idempotency verification on the first access identifier according to a preset database, wherein the database includes second access identifiers corresponding to different users for different web pages at different access times;

[0029] The processing module is used to control the target webpage to accept the access request when the first access identifier passes the idempotency check; and control the target webpage not to accept the access request when the first access identifier fails the idempotency check.

[0030] In a third aspect, in order to solve the above-mentioned technical problem, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the web page access method of the present application is implemented.

[0031] In a fourth aspect, in order to solve the above-mentioned technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the web page access method of the present application is implemented.

[0032] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for describing the embodiments of the present invention are briefly introduced below.

[0034] Figure 1 A schematic diagram of a flow chart of a web page access method provided by an embodiment of the present invention;

[0035] Figure 2A schematic diagram of the structure of a web page access device provided by an embodiment of the present invention;

[0036] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The principles and features of the present invention are described below. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0038] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0039] The solution provided by the embodiment of the present invention can be applied to any application scenario that requires accessing a web page in an application. The solution provided by the embodiment of the present invention can be executed by any electronic device, for example, it can be a user's terminal device, and the terminal device can be any terminal device that can install an application and access a web page through the application, including at least one of the following: a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a smart TV, and a smart car device.

[0040] The embodiment of the present invention provides a possible implementation method, such as Figure 1 As shown, a flowchart of a web page access method is provided. The solution can be executed by any electronic device, for example, a terminal device, or a terminal device and a server. For the convenience of description, the method provided by the embodiment of the present invention will be described below by taking the terminal device as the execution subject as an example. Figure 1 The method may include the following steps:

[0041] S10, obtaining a user's access request for a target webpage, wherein the access request includes a first user identifier, a first access time, and a first webpage identifier of the target webpage.

[0042] S20: Generate a first access identifier corresponding to the access request according to the first user identifier, the first access time and the first webpage identifier.

[0043] S30: Perform an idempotency check on the first access identifier according to a preset database, wherein the database includes second access identifiers corresponding to different users accessing different web pages at different access times.

[0044] S40: If the first access identifier passes the idempotence check, control the target webpage to accept the access request.

[0045] If the first access identifier fails the idempotence check, the target webpage is controlled not to accept the access request.

[0046] The method of the present invention uses a unique labeling method for access identifiers to perform idempotency verification on the first access identifier corresponding to the access request through a database, thereby preventing the same user from repeatedly submitting the same access request within the first access time, causing the system corresponding to the target web page to generate bad data.

[0047] The solution of the present invention is further described below in conjunction with the following specific embodiments. In this embodiment, a web page access method provided may include the following steps:

[0048] S10, obtaining a user's access request for a target webpage, wherein the access request includes a first user identifier, a first access time, and a first webpage identifier of the target webpage.

[0049] Among them, the access request refers to a request for viewing the webpage content of the target webpage, which can be a request generated based on the user's trigger operation on the client interface of the terminal device. The specific form of the trigger operation is configured according to needs. For example, it can be a trigger action of a specific operation position of the user on the interface of the application of the terminal device. In actual use, the trigger operation can be a trigger selection operation for the relevant trigger identifier. Among them, the specific form of the trigger identifier can be configured according to actual needs. For example, it can be a designated virtual button or input box on the client interface. Specifically, for example, it can be a virtual button of "XXX" displayed on the client interface. The operation of the user clicking the virtual button indicates that the user wants to view the webpage content corresponding to "XXX".

[0050] Among them, the target web page may correspond to a page corresponding to an application, a page corresponding to a small program, or a page of a website, which is not limited in the solution of the present invention.

[0051] Different web page packages correspond to different web page identifiers. The specific form of the first web page identifier is not limited in the present invention, and can be at least one of text, characters or numbers.

[0052] The first access time refers to the time when the access request is generated. The first user identifier is used to identify the identity of the user. The first user identifier can be any information that can represent the identity of the user, such as an account ID.

[0053] S20: Generate a first access identifier corresponding to the access request according to the first user identifier, the first access time and the first webpage identifier.

[0054] Optionally, the access request further includes a first service identifier, and the first service identifier is used to represent the service corresponding to the access request in the target webpage. Then, another possible implementation manner of S20 is:

[0055] S201, generating a feature value ID according to the first webpage identifier, the first service identifier and the first user identifier;

[0056] The characteristic value ID may be a character string used to represent the first webpage identifier, the first service identifier, and the first user identifier.

[0057] S202, determining a first impact time period of the access time according to the access time and a preset minimum time granularity;

[0058] Among them, the minimum time granularity refers to a time interval, that is, a period of time, and the first impact time period refers to the time from the operation time corresponding to the operation of a user triggering a certain service on the front end (for example, a terminal device) to the creation time of an access request generated based on the operation. That is to say, within the first impact time period, the corresponding access requests are all the same access request, and the information within the first impact time period represents the characteristics of the same access request. In this way, different access requests can be distinguished according to the impact time period, and the access requests can be accurately distinguished.

[0059] The minimum time granularity may be a preset period of time, which may be determined in advance based on the historical impact time period of the access request.

[0060] S203: Generate the first access identifier according to the first impact time period and the feature value ID.

[0061] Among them, the first access identifier includes information corresponding to the first impact time period and the characteristic value ID. The first access identifier can accurately represent which user the access request is from, at what time, and for which business of which web page, and can uniquely identify the access request.

[0062] Optionally, in the process of generating the first access identifier based on the first impact time period and the feature value ID, the first access identifier may also be generated based on a sequence number corresponding to the first impact time period and the feature value ID.

[0063] The sequence number is used to distinguish the first impact time period from other impact time periods.

[0064] Optionally, the above-mentioned serial number can also be called a time period serial number, which can be composed of a creation time timestamp and an operation time timestamp corresponding to the access request, wherein the creation time refers to the generation time of the access request, and the operation time refers to the time corresponding to the operation of the user triggering a certain business on the front end, based on which an access request can be generated.

[0065] Optionally, a possible implementation manner of the above S201 is:

[0066] Hash processing is performed on the first webpage identifier, the first service identifier and the first user identifier to obtain a characteristic value ID.

[0067] Among them, since the information to be hashed includes the first web page identifier, the first business identifier and the first user identifier, the first web page identifier, the first business identifier and the first user identifier can be sorted in advance according to a preset sorting rule, and then hashed based on the sorted first web page identifier, the first business identifier and the first user identifier.

[0068] As an example, the above preset sorting rule can be expressed as business identifier (op_code+busi_id)+user identifier (custIdValue)+webpage identifier.

[0069] S30: Perform an idempotency check on the first access identifier according to a preset database, wherein the database includes second access identifiers corresponding to different users accessing different web pages at different access times.

[0070] Before S30, the method further includes:

[0071] The access request is verified based on a pre-configured request verification rule. If the access request passes the verification, S30 is executed; otherwise, S30 is not executed.

[0072] The request verification rule may be: the target web page is located in the channel whitelist, and the target page has the function of initiating an access request.

[0073] S40, if the first access identifier passes the idempotence check, then the target webpage is controlled to accept the access request, which means that the access request can be normally accepted by the backend, and based on the access request, the target webpage can be successfully accessed.

[0074] If the first access identifier fails the idempotence check, the target webpage is controlled not to accept the access request, which means that the access request has been accepted by the backend before and the access request is a repeated access request. Therefore, the backend does not accept the access request, and the target webpage cannot be successfully accessed based on the access request.

[0075] Optionally, one possible implementation of S30 to S40 is:

[0076] determining whether there is a second access identifier identical to the first access identifier in the database;

[0077] If there is a second access identifier that is the same as the first access identifier in the database, controlling the target webpage not to accept the access request;

[0078] If the second access identifier identical to the first access identifier does not exist in the database, the target webpage is controlled to accept the access request.

[0079] Optionally, the database includes a plurality of record tables, each of which records the second access identifiers corresponding to different web pages accessed by different users at different access times every day, and the method further includes:

[0080] On the current day, the record table corresponding to the day before the current day is truncate.

[0081] If the contents in the record table corresponding to each day are different, the record table corresponding to the day before the current day can be cleared on the current day, and the database can be updated on the current day.

[0082] Optionally, the year, month, and day may be selected as identifiers for distinguishing odd-days from even-days.

[0083] Optionally, the method further comprises:

[0084] S110, obtaining a web page package identifier of a target web page in the access request.

[0085] In the solution of the present invention, a web page packet refers to a data packet including a web page address and web page content corresponding to the web page address.

[0086] S120, determining, based on the web page package identifier, whether there is a target web page package corresponding to the web page package identifier in the local storage space;

[0087] Among them, the local storage space refers to the storage space of the terminal device, specifically, for example, it can be the local disk cache of the terminal device. The target web page package includes the web page address of the target web page. In the scheme of the present invention, the web page address refers to the storage address corresponding to the web page in the local storage space. Based on the web page address, the web page content corresponding to the target web page can be obtained. The above-mentioned target web page can be a web page that has been visited before, or a web page that is visited for the first time, which is not limited in the present invention. For the web pages visited in the application, the corresponding web page packages can be stored in the local storage space for use when they are visited next time.

[0088] Optionally, the web page package identifier may be an identity identifier, and may also include an identity identifier and a current version identifier, wherein the identity identifier is used to distinguish between various web page packages, and the current version identifier is used to distinguish between the versions of various web page packages. The specific forms of the identity identifier and the current version identifier are not limited in the present invention, and may be at least one of text, characters or numbers. For example, the identity identifier (which may be expressed as appid) may be a randomly generated string, such as atOBaCNDVZNniiYg, and the version identifier (including the current version identifier and the latest version identifier that appears below) may be 1.0.0. Optionally, the web page package identifier may be used as the web page package name of the corresponding web page package, for example, it may be expressed as: atOBaCNDVZNniiYg-1.0.0.

[0089] Optionally, if the web page package identifier includes an identity identifier, then an optional implementation method of determining whether the target web page package corresponding to the web page package identifier exists in the local storage space according to the web page package identifier is: based on the identity identifier, determine whether the target web page package exists in the local storage space. If the web page package identifier includes an identity identifier and a current version identifier, and the local storage space stores a first web page package corresponding to at least one identity identifier, and the at least one identity identifier includes the identity identifier of the target web page, then an optional implementation method of determining whether the target web page package corresponding to the web page package identifier exists in the local storage space according to the web page package identifier is: according to the identity identifier of the target web page, determine the first web page package corresponding to the identity identifier in the local storage space, and obtain the latest version identifier of the first web page package; according to the current version identifier and the latest version identifier of the first web page package, determine whether the first web page package is the latest version of the web page package; if the first web page package is the latest version of the web page package, determine whether the target web page package exists in the local storage space, and use the first web page package as the target web page package; if the first web page package is not the latest version of the web page package, determine that the target web page package does not exist in the local storage space.

[0090] Since web page packages may be constantly updated, the web page packages stored in the local storage space may not be the latest version of the web page packages. Therefore, after the first web page package corresponding to the identity identifier exists in the local storage space, it is still necessary to verify whether the first web page package is the latest version of the web page package. Through the solution of the present invention, the version of the web page package is also taken into consideration when determining the target web page package, so that the determined target web page package is more in line with actual application needs.

[0091] Step S130: if it exists, access the target web page in the target application according to the web page address in the target web page packet.

[0092] Step S140, if it does not exist, obtain the target web page package from the file server according to the web page package identifier, and store the target web page package in the local storage space, and access the target web page in the target application according to the web page address in the target web page package. The above-mentioned file server stores at least one web page package and the web page package identifier of each web page package, and the above-mentioned at least one web page package includes the target web page package.

[0093] If the target web page package exists in the local storage space, the target web page can be directly opened through the browser built into the target application according to the web page address in the target web page package, and the web page content of the target web page can be displayed on the client interface corresponding to the target application. If the target web page package does not exist in the local storage space, the target web page package can be obtained from the file server according to the web page package identifier, and then the target web page can be opened through the browser built into the target application, and the web page content of the target web page can be displayed on the client interface corresponding to the target application.

[0094] It should be noted that the execution order of the above steps S130 and S140 is not limited. If the target web page package exists in the local storage space, step S130 is executed; if the target web page package does not exist in the local storage space, step S140 is executed.

[0095] The file server involved in the embodiments of the present invention may also be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0096] In order to better illustrate and understand the principle of the method provided by the present invention, the scheme of the present invention is described below in conjunction with an optional specific embodiment. It should be noted that the specific implementation of each step in the specific embodiment should not be understood as a limitation to the scheme of the present invention. On the basis of the principle of the scheme provided by the present invention, other implementations that can be thought of by those skilled in the art should also be considered within the scope of protection of the present invention.

[0097] In this embodiment, a web page access method is provided, comprising the following steps:

[0098] Step 1: Define the business scope configuration data for access idempotence verification, and implement it according to function + channel whitelist configuration.

[0099] Step 2: define the mapping relationship between the time ranges (time granularity | impact period | time unit) of various feature type checks for idempotency, that is, the impact time periods corresponding to different types of access requests.

[0100] Step 3: Define the idempotent feature logical entity IdempNode, which is the composition of the first access identifier, including the following main attributes:

[0101] Feature value ID: discrete data after hashing (rules such as: business ID (op_code+busi_id)+user ID (custIdValue) are arranged in order and then hashed);

[0102] Time period sequence number: the system follows a unified rule to sort atomic time units (creation time and operation time);

[0103] Creation time: timestamp;

[0104] Operation time: timestamp;

[0105] Step 4: Add an idempotency check table (using a single-day-double-day table design), use the feature value ID + time period sequence number as the primary key, and use the database primary key conflict as a means of idempotency check; this table is cleaned up regularly.

[0106] Step 5, idempotence verification component:

[0107] Configure data filtering in step 1 for requests that require idempotence verification, and obtain the time range that matches the impact of the feature value string based on the feature type obtained in step 2. Calculate the feature value ID based on the rule.

[0108] Calculate the sequence number of the affected time period based on the time impact range and the minimum granularity set by the system;

[0109] The above two attributes (the sequence number and the characteristic value ID affecting the time period) are combined to generate a characteristic node (the first access identifier). The characteristic node should be unique when it appears in the following time period.

[0110] Once a primary key conflict occurs when recording a feature node, it means that a duplicate request has arrived before the current access request, and the acceptance of the access request is terminated.

[0111] Step 6, truncation: The physical layer writes tables on a daily basis, and the tables written on the current day and the next day are different; the table of the previous day is truncated on the next day; the year, month, and day are used as identifiers to distinguish between odd and even days.

[0112] Based on Figure 1 Based on the same principle as the method shown in , the embodiment of the present invention also provides a web page access device 20, such as Figure 2 As shown in , the webpage access device 20 may include an acquisition module 210, an access identification generation module 220, an idempotence verification module 230 and a processing module 240, wherein:

[0113] An acquisition module 210 is used to acquire a user's access request for a target webpage, wherein the access request includes a first user identifier, a first access time, and a first webpage identifier of the target webpage;

[0114] An access identifier generating module 220, configured to generate a first access identifier corresponding to the access request according to the first user identifier, the first access time and the first webpage identifier;

[0115] An idempotency verification module 230, configured to perform an idempotency verification on the first access identifier according to a preset database, wherein the database includes second access identifiers corresponding to different users for different web pages at different access times;

[0116] The processing module 240 is used to control the target webpage to accept the access request when the first access identifier passes the idempotency check; and to control the target webpage not to accept the access request when the first access identifier fails the idempotency check.

[0117] Optionally, the access request further includes a first service identifier, which is used to characterize the service corresponding to the access request in the target webpage. When the access identifier generation module 220 generates the first access identifier corresponding to the access request according to the first user identifier, the first access time, and the first webpage identifier, it is specifically used to:

[0118] Generate a feature value ID according to the first webpage identifier, the first service identifier and the first user identifier;

[0119] Determine a first impact time period of the access time according to the access time and a preset minimum time granularity;

[0120] The first access identifier is generated according to the first impact time period and the feature value ID.

[0121] Optionally, when the access identifier generating module 220 generates the characteristic value ID according to the first webpage identifier, the first service identifier and the first user identifier, it is specifically used to:

[0122] Hash processing is performed on the first webpage identifier, the first service identifier and the first user identifier to obtain a characteristic value ID.

[0123] Optionally, the idempotence checking module 230 and the processing module 240 are specifically used for:

[0124] determining whether there is a second access identifier identical to the first access identifier in the database;

[0125] If there is a second access identifier that is the same as the first access identifier in the database, controlling the target webpage not to accept the access request;

[0126] If the second access identifier identical to the first access identifier does not exist in the database, the target webpage is controlled to accept the access request.

[0127] Optionally, the database includes a plurality of record tables, each of which records the second access identifiers corresponding to different web pages accessed by different users at different access times every day, and the device further includes:

[0128] The cleaning module is used to clean up the record table corresponding to the day before the current day on the current day.

[0129] The web page access device of the embodiment of the present invention can execute the web page access method provided by the embodiment of the present invention, and its implementation principle is similar. The actions performed by each module and unit in the web page access device in each embodiment of the present invention correspond to the steps in the web page access method in each embodiment of the present invention. For the detailed functional description of each module of the web page access device, please refer to the description in the corresponding web page access method shown in the previous text, which will not be repeated here.

[0130] The web page access device may be a computer program (including program code) running in a computer device, for example, the web page access device is an application software; the device may be used to execute the corresponding steps in the method provided in the embodiment of the present invention.

[0131] In some embodiments, the web page access device provided by the embodiment of the present invention can be implemented in a combination of software and hardware. As an example, the web page access device provided by the embodiment of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the web page access method provided by the embodiment of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.

[0132] In other embodiments, the web page access device provided by the embodiment of the present invention can be implemented in software. Figure 2A web page access device stored in a memory is shown, which may be software in the form of a program or plug-in, and includes a series of modules, including an acquisition module 210, an access identifier generation module 220, an idempotence verification module 230, and a processing module 240, for implementing the web page access method provided in an embodiment of the present invention.

[0133] The modules involved in the embodiments of the present invention may be implemented by software or hardware, wherein the name of a module does not limit the module itself in some cases.

[0134] Based on the same principle as the method shown in the embodiments of the present invention, an electronic device is also provided in the embodiments of the present invention, which may include but is not limited to: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the traffic simulation method shown in any embodiment of the present invention by calling the computer program.

[0135] In an alternative embodiment, an electronic device is provided, such as Figure 3 As shown, Figure 3 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.

[0136] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0137] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0138] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.

[0139] The memory 4003 is used to store the application code (computer program) for executing the solution of the present invention, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement the content shown in the above method embodiment.

[0140] The electronic device may also be a terminal device. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0141] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.

[0142] According to another aspect of the present invention, a computer program product or a computer program is also provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the webpage access method provided in the implementation of the above various embodiments.

[0143] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0144] It should be understood that the flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, the program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0145] The computer-readable storage medium provided by the embodiment of the present invention may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0146] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0147] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the disclosure scope involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) by each other.

Claims

1. A web page access method, characterized in that: The following steps are involved: Obtaining a user's access request for a target webpage, wherein the access request includes a first user identifier, a first access time, and a first webpage identifier of the target webpage; Generate a first access identifier corresponding to the access request according to the first user identifier, the first access time and the first webpage identifier; Performing an idempotency check on the first access identifier according to a preset database, wherein the database includes second access identifiers corresponding to different users for different web pages at different access times; If the first access identifier passes the idempotence check, controlling the target webpage to accept the access request; If the first access identifier fails the idempotence check, the target webpage is controlled not to accept the access request.

2. The method according to claim 1, characterized in that The access request also includes a first service identifier, which is used to represent the service corresponding to the access request in the target webpage. The step of generating the first access identifier corresponding to the access request according to the first user identifier, the first access time and the first webpage identifier includes: Generate a feature value ID according to the first webpage identifier, the first service identifier and the first user identifier; Determine a first impact time period of the access time according to the access time and a preset minimum time granularity; The first access identifier is generated according to the first impact time period and the feature value ID.

3. The method according to claim 2, characterized in that The generating a characteristic value ID according to the first webpage identifier, the first service identifier and the first user identifier includes: Hash processing is performed on the first webpage identifier, the first service identifier and the first user identifier to obtain a characteristic value ID.

4. The method according to any one of claims 1 to 3, characterized in that The first access identifier is subjected to an idempotency check according to a preset database, and if the first access identifier passes the idempotency check, the target webpage is controlled to accept the access request; If the first access identifier fails to pass the idempotence check, controlling the target webpage not to accept the access request includes: determining whether there is a second access identifier identical to the first access identifier in the database; If there is a second access identifier that is the same as the first access identifier in the database, controlling the target webpage not to accept the access request; If the second access identifier identical to the first access identifier does not exist in the database, the target webpage is controlled to accept the access request.

5. The method according to claim 4, characterized in that The database includes a plurality of record tables, each of which records the second access identifiers corresponding to different web pages accessed by different users at different access times every day. The method further includes: On the current day, the record sheet corresponding to the day before the current day is cleared.

6. A web page access device, characterized in that: include: An acquisition module, configured to acquire a user's access request for a target webpage, wherein the access request includes a first user identifier, a first access time, and a first webpage identifier of the target webpage; An access identifier generating module, configured to generate a first access identifier corresponding to the access request according to the first user identifier, the first access time and the first webpage identifier; An idempotency verification module, configured to perform an idempotency verification on the first access identifier according to a preset database, wherein the database includes second access identifiers corresponding to different users for different web pages at different access times; The processing module is used to control the target webpage to accept the access request when the first access identifier passes the idempotency check; and control the target webpage not to accept the access request when the first access identifier fails the idempotency check.

7. The device according to claim 6, characterized in that The access request also includes a first service identifier, which is used to represent the service corresponding to the access request in the target webpage. When the access identifier generation module generates the first access identifier corresponding to the access request according to the first user identifier, the first access time and the first webpage identifier, it is specifically used to: Generate a feature value ID according to the first webpage identifier, the first service identifier and the first user identifier; Determine a first impact time period of the access time according to the access time and a preset minimum time granularity; The first access identifier is generated according to the first impact time period and the feature value ID.

8. The device according to claim 7, characterized in that When the access identifier generation module generates a characteristic value ID according to the first webpage identifier, the first service identifier and the first user identifier, it is specifically used to: Hash processing is performed on the first webpage identifier, the first service identifier and the first user identifier to obtain a characteristic value ID.

9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 5 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.