CN107391277B - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN107391277B
CN107391277B CN201710580296.2A CN201710580296A CN107391277B CN 107391277 B CN107391277 B CN 107391277B CN 201710580296 A CN201710580296 A CN 201710580296A CN 107391277 B CN107391277 B CN 107391277B
Authority
CN
China
Prior art keywords
indication information
user
identifier
value
operation indication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710580296.2A
Other languages
Chinese (zh)
Other versions
CN107391277A (en
Inventor
袁建伟
刘彧
陈鹏
冯春宇
吴潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710580296.2A priority Critical patent/CN107391277B/en
Publication of CN107391277A publication Critical patent/CN107391277A/en
Application granted granted Critical
Publication of CN107391277B publication Critical patent/CN107391277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Abstract

The application discloses an information processing method and device. One embodiment of the method comprises: receiving an operation request for a current page sent by a user, wherein the operation request comprises a user identifier; processing the user identification, and determining an identification value corresponding to the user identification; determining operation indication information corresponding to the identification value according to the identification value and a preset list, wherein the list records the corresponding relation between the identification value and the operation indication information, and the operation indication information is used for indicating whether a user sends an operation request or not; determining whether the user sends an operation request or not according to the operation indication information corresponding to the identification value; and in response to the fact that the user does not send the operation request, executing the operation indicated by the operation request and modifying the operation indication information corresponding to the identification value. This way, the efficiency of information processing is improved.

Description

Information processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to the field of internet technologies, and in particular, to an information processing method and apparatus.
Background
Information processing, i.e., receiving, storing, translating, transmitting, and distributing information, etc. The interaction between the terminal and the network is realized through information processing in the computer technology. Through the information processing technology, a user can send a request to a server by using a terminal device, and the server processes the request and provides processed information to the terminal.
However, in the existing information processing technology, the server usually stores the acquired user identifier of the user sending the request in the server, and since the user identifier occupies a large number of bytes, a large amount of storage space is required in the server. When a user sends the same request to the server for multiple times, the server indicates multiple requests by using threads according to the number of the requests sent by the user, so that the information processing efficiency is reduced.
Disclosure of Invention
It is an object of the present application to provide an improved information processing method and apparatus to solve the technical problems mentioned in the background section above.
In a first aspect, the present application provides an information processing method, including: receiving an operation request for a current page sent by a user, wherein the operation request comprises a user identifier; processing the user identification, and determining an identification value corresponding to the user identification; determining operation indication information corresponding to the identification value according to the identification value and a preset list, wherein the list records the corresponding relation between the identification value and the operation indication information, and the operation indication information is used for indicating whether a user sends an operation request or not; determining whether the user sends an operation request or not according to the operation indication information corresponding to the identification value; and in response to the fact that the user does not send the operation request, executing the operation indicated by the operation request and modifying the operation indication information corresponding to the identification value.
In some embodiments, the list includes a plurality of data identifiers and a plurality of operation indication information, each data identifier corresponds to each operation indication information one to one, and the data identifiers are used for indicating the positions of the operation indication information in the list; and the method further comprises a list establishing step, wherein the list establishing step comprises the following steps: setting each data identifier according to a preset data identifier setting mode; setting a preset numerical value for each operation indication information to initialize each operation indication information; and establishing a list according to the data identifications and the initialized operation indication information.
In some embodiments, processing the user identifier to determine an identifier value corresponding to the user identifier includes: processing the user identification by using a preset hash function, and determining a hash value corresponding to the user identification; and determining the hash value as an identification value.
In some embodiments, determining, according to the identification value and a preset list, operation indication information corresponding to the identification value includes: determining a target data identifier corresponding to the identifier value, wherein the identifier value and the data identifier have a preset one-to-one correspondence relationship; and determining the operation indication information indicated by the target data identification as the operation indication information corresponding to the identification value.
In some embodiments, determining whether the user has sent the operation request according to the operation indication information corresponding to the identification value includes: determining whether the operation indication information corresponding to the identification value is matched with a target preset value; responding to the matching of the operation indication information corresponding to the identification value and a target preset value, and determining that the user has not sent an operation request; and in response to the fact that the operation indication information corresponding to the identification value is not matched with the target preset numerical value, determining that the user has sent the operation request.
In some embodiments, the method further comprises: recording the number of users who send the operation requests; and updating the number of users who have sent the operation request after modifying the operation indication information corresponding to the identification value.
In a second aspect, an embodiment of the present application provides an information processing apparatus, including: the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is configured to receive an operation request for a current page sent by a user, and the operation request comprises a user identifier; the first determining unit is configured to process the user identifier and determine an identifier value corresponding to the user identifier; the second determining unit is configured to determine operation indication information corresponding to the identification value according to the identification value and a preset list, wherein the list records a corresponding relation between the identification value and the operation indication information, and the operation indication information is used for indicating whether a user sends an operation request or not; a third determining unit configured to determine whether the user has sent the operation request according to the operation instruction information corresponding to the identification value; and the execution unit is used for responding to the operation request which is not sent by the user, executing the operation indicated by the operation request and modifying the operation indication information corresponding to the identification value.
In some embodiments, the list includes a plurality of data identifiers and a plurality of operation indication information, each data identifier corresponds to each operation indication information one-to-one, the data identifiers are used for indicating positions of the operation indication information in the list, and the information processing apparatus further includes a list establishing unit that includes: the setting subunit is configured to set each data identifier according to a preset data identifier setting mode; the initialization subunit is configured to set a preset numerical value for each operation instruction information, so that each operation instruction information is initialized; and the list establishing subunit is configured to establish a list according to each data identifier and each initialized operation indication information.
In some embodiments, the first determination unit further comprises: the system comprises a hash function processing subunit, a hash function processing unit and a hash value determining unit, wherein the hash function processing subunit is configured to process a user identifier by using a preset hash function and determine a hash value corresponding to the user identifier; and the determining subunit is configured to determine the hash value as the identification value.
In some embodiments, the second determining subunit is further configured to determine a target data identifier corresponding to the identifier value, where the identifier value and the data identifier have a preset one-to-one correspondence; and determining the operation indication information indicated by the target data identification as the operation indication information corresponding to the identification value.
In some embodiments, the third determining subunit is further configured to determine whether the operation indication information corresponding to the identification value matches a target preset numerical value; responding to the matching of the operation indication information corresponding to the identification value and a target preset value, and determining that the user has not sent an operation request; and in response to the fact that the operation indication information corresponding to the identification value is not matched with the target preset numerical value, determining that the user has sent the operation request.
In some embodiments, the information processing apparatus further includes: a recording unit configured to record the number of users who have sent the operation request; and an updating unit configured to update the number of users who have sent the operation request after modifying the operation indication information corresponding to the identification value.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
According to the information processing method and device, the user identification of the user is processed to obtain the identification value corresponding to the user identification, the preset list is inquired according to the identification value of the user, the operation indication information corresponding to the identification value is determined, whether the user sends the operation request or not is determined according to the operation indication information, and finally, after the user does not send the operation request, the operation indicated by the operation request sent by the user is executed and the operation indication information is modified.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method of signal processing according to the present application;
FIG. 3 is a schematic diagram of an application scenario of an information processing method according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of an information processing method according to the present application;
FIG. 5 is a schematic block diagram of one embodiment of an information processing apparatus according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing a server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the information processing method or information processing apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts Group Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts Group Audio Layer 4), a laptop computer, and the like.
The server 104 may be a server that provides various services, such as a background server that provides support for information displayed on the terminal devices 101, 102, 103. The background server may analyze and perform other processing on the received data such as the page operation request sent by the client, and feed back a processing result (e.g., the page operation request sent by the user) to the terminal device.
It should be noted that the information processing method provided in the embodiment of the present application is generally executed by the servers 101, 102, and 103, and accordingly, the information processing apparatus is generally disposed in the servers 101, 102, and 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of an information processing method according to the present application is shown. The information processing method comprises the following steps:
step 201, receiving an operation request for a current page sent by a user.
In this embodiment, the electronic device (for example, the servers 101, 102, 103 shown in fig. 1) on which the information processing method operates may receive, through a wired connection manner or a wireless connection manner, an operation request for a current page sent by a user from a terminal with which the user performs page browsing, where the operation request for the current page includes a page address, i.e., a web address, of the current page that the user desires to operate. In practice, the web address is generally represented by a Uniform Resource Locator (URL). It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
In this embodiment, the operation request of the current page further includes a user identifier. The user identifier may be a device serial number of the electronic device used by the user, an account number, a mobile phone number, and the like of the user, and may be an IP address of the user, and the like. The operation request of the current page may be, for example, to click attention to a certain virtual commodity in the current page, click collection of the virtual commodity in the current page, or to input and issue content using an inputtable dialog box of the current page.
Step 202, processing the user identifier, and determining an identifier value corresponding to the user identifier.
In this embodiment, according to the user identifier determined in step 201, the server may further determine an identifier value corresponding to the user identifier. Typically, the user identification is typically a long string of characters, for example, the device identification of an electronic device is typically 40 bytes. The user identifier may be processed in this step to reduce the number of bytes of the user identifier, thereby determining the identifier value corresponding to the user identifier. For example, a data transformation tool, such as a DBPut data transformation tool, may be used to transform the user identifier into a fixed value (e.g., 1, 2, 3 …), and use the fixed value as the identifier value corresponding to the user identifier.
Step 203, determining operation instruction information corresponding to the identification value according to the identification value and a preset list.
In this embodiment, according to the identifier value corresponding to the user identifier determined in step 202, the identifier value may be used as a key of a list, and a preset list is queried to determine the operation instruction information corresponding to the identifier value. The list is used for indicating the corresponding relation between the identification value and the operation indication information, namely, the operation indication information is arranged at the position corresponding to the identification value in the list and is used for indicating whether the user sends the operation request or not. In this embodiment, the operation instruction information may be a character, and the character may be, for example, a number, a letter, or the like. In practice, the operation instruction information may be set in advance. For example, when the operation instruction information is a number, an "odd number" may be preset to indicate that the user has sent an operation request, and an "even number" may be preset to indicate that the user has not sent an operation request; when the operation instruction information is a single character, "yes" may be set in advance to transmit the operation request to the user, and "no" may be set to transmit no operation request to the user.
In some optional implementation manners of this implementation, the list includes a plurality of data identifiers and a plurality of operation indication information, the data identifiers correspond to the operation indication information one to one, and the data identifiers are used to indicate positions of the operation indication information in the list. The data identifier may be a row header, a column header, or a combination of a column header and a row header. The data identifier may be a numeric value, a letter, a character, or a combination thereof. An optional implementation manner of this embodiment further includes a step of establishing the list, where the step of establishing the list may be before the step of receiving the operation request of the user for sending the current page. The step of establishing the list comprises: firstly, setting each data identifier according to a preset data identifier setting mode. As an example, the preset data identifier setting manner may be: and taking the arrangement sequence of natural numbers from small to large as row titles of the list, taking the arrangement sequence of the alphabets from front to back as column titles of the list, and setting the combination of one of the column titles corresponding to one of the row titles as the data identifier. The preset data identifier setting mode may also be: and taking the odd-numbered sequence from small to large as the row headers of the list, taking the even-numbered sequence from small to large as the column headers of the list, and setting the combination of one of the column headers corresponding to one of the row headers as the data identifier. Next, a preset numerical value (for example, "0", for example, "even number", or the like) is set for each operation instruction information so that each operation instruction information is initialized. Here, the preset numerical value is a value set in advance to indicate whether the user has sent an operation request. As an example, "odd" may indicate that the user has sent the operation request, and "even" may indicate that the user has not sent the operation request, and all the initialized operation instruction information is "odd". And finally, establishing a list according to the unit identifier and the initialized operation indication information.
In some optional implementation manners of this embodiment, the server may determine a target data identifier corresponding to the identifier value, where the identifier value and the data identifier of the list have a preset one-to-one correspondence relationship. When the data identifier is a numerical value, the preset one-to-one correspondence relationship may be a correspondence relationship in which numerical values are equal; when the data is identified as a combination of letters and Chinese characters, the correspondence between numeric values and letters can be set, for example, "1" for "A", "2" for "B", etc. Then, the server determines that the operation instruction information indicated by the target data identifier is the operation instruction information corresponding to the identifier value. As an example, the identification value corresponding to the user identification is "2", and the operation instruction information indicated by the target data identification equal to the identification value "2" in the list is taken as the operation instruction information corresponding to the identification value "2".
And step 204, determining whether the user sends the operation request according to the operation indication information corresponding to the identification value.
In this embodiment, the server may further determine whether the user has sent the operation request according to the operation instruction information corresponding to the identification value determined in step 203.
In some optional implementation manners of this embodiment, the server may first determine whether the operation indication information corresponding to the identification value matches a target preset numerical value, where the target preset numerical value is a preset numerical value of the operation indication information corresponding to the identification value stored in the list. And determining that the user has not sent the operation request in response to the matching of the operation indication information corresponding to the identification value and the target preset numerical value. And in response to the fact that the operation indication information corresponding to the identification value does not match the target preset value, determining that the operation request is sent.
And step 205, responding to the operation request which is not sent by the user, executing the operation indicated by the operation request and modifying the operation indication information corresponding to the identification value.
In this embodiment, in response to that the user has not sent the operation request, the server may execute the operation indicated by the operation request, and may modify the operation indication information corresponding to the identification value after the operation is completed. For example, when the operation request is to click and pay attention to a virtual product in the current page, if the server determines that the user has not clicked and pay attention to the virtual product, the user may click and pay attention successfully, for example, the color of an icon for clicking and paying attention at a preset position on the current page may be changed, and the operation indication information "not focused" is modified to "focused".
Referring to fig. 3, fig. 3 is a schematic diagram of an application scenario of the information processing method according to the embodiment. In the application scenario of fig. 3, "user a" first issues an operation request to pay attention to "article a" in a page currently presented by the electronic device 301, by using the electronic device 301 with the device serial number "abcdefg 123456789". Next, after receiving the operation request for paying attention to "article a" issued by the user, the backend server 302 for supporting the request issued by the user may process the device serial number "abcdefg 123456789", and determine an identifier value corresponding to the device serial number "abcdefg 123456789", assuming that the identifier value is "1". A list 3021 is provided in advance in the background server 302, and a plurality of identification values "1, 2, and 3" and operation instruction information of "article a of interest" and operation instruction information of "article a of purchase" corresponding to the identification values "1, 2, and 3" are described in the list 3021, each of the operation instruction information is represented by a numerical value, "0" represents that the user has not issued an operation request, and "other numerical values" represents that the user has issued an operation request. The initial value of each of the operation instruction information (i.e., the value to which the operation request has not been transmitted) is set to "0". The backend server 302 searches the operation instruction information of the "article of interest a" corresponding to the identification value "1" in the list 3021 based on the identification value "1". As can be seen from table 3021, the operation instruction information of "article a of interest" corresponding to the identification value "1" is "0", and therefore it can be determined that "user a" has not transmitted a request of "article a of interest". Thus, the server can execute a request for "pay attention to a product" such as issuing information of "success of pay attention" to the user, or changing the state of an icon related to "pay attention to a product" while modifying the operation instruction information of "pay attention to a product" from "0" to another numerical value.
In this embodiment, an identification value corresponding to a user identifier is obtained by processing the user identifier of the user, a preset list is queried according to the user identifier, operation indication information corresponding to the identification value is determined, whether the user has sent an operation request is determined according to the operation indication information, and finally, after the user has not sent the operation request, an operation indicated by the operation request sent by the user is executed and the operation indication information is modified.
With further reference to FIG. 4, a flow diagram 400 of yet another embodiment of an information processing method is shown. The flow chart 400 of the information processing method comprises the following steps:
step 401, receiving an operation request for a current page sent by a user.
In this embodiment, the electronic device (for example, the servers 101, 102, 103 shown in fig. 1) on which the information processing method operates may receive, through a wired connection manner or a wireless connection manner, an operation request for a current page sent by a user from a terminal with which the user performs page browsing, where the operation request for the current page includes an address of the current page that the user desires to operate, that is, a web address.
Step 402, processing the user identifier by using a preset hash function, and determining a hash value corresponding to the user identifier.
In this embodiment, a hash function may be selected in advance, and then, the hash value of the user identifier is calculated by using the selected hash function, so as to obtain a hash value.
In this embodiment, when only one hash function is used to perform hash value calculation on the user identifier, a situation that two user identifiers correspond to one hash value may occur. For example, when one of the two users is a user who has sent the operation request and the other user is a user who has not sent the operation request, the hash value corresponding to the user identifier of the user who has not sent the operation request is the same as the hash value corresponding to the user identifier of the user who has sent the operation request, so that the server is judged incorrectly. Therefore, a plurality of hash functions may be selected, and each hash function of the plurality of hash functions is used to calculate the user identifier, so as to obtain a plurality of hash values corresponding to the user identifier.
Step 403, determining the hash value corresponding to the user identifier as an identifier value.
In this embodiment, according to the hash value obtained by performing the hash value calculation on the user identifier in step 402, the server may use the hash value corresponding to the user identifier as the identifier value of the user identifier.
And step 404, determining operation indication information corresponding to the identification value according to the identification value and a preset list.
In this embodiment, in the identification value corresponding to the user identifier determined in step 403, the server may query a preset list to determine the operation instruction information corresponding to the identification value by using the identification value as a key value of the list. The list is used for indicating the corresponding relation between the identification value and the operation indication information, namely, the operation indication information is arranged at the position corresponding to the identification value in the list and is used for indicating whether the user sends the operation request or not.
In this embodiment, the storage space of the list may include a plurality of storage units, each of which may be one bit in size, and the list is referred to as a bitmap. In this embodiment, the bitmap may be implemented as an array. For example, an array is created in advance, and the memory space occupied by each array element is set to be one bit (bit), thereby generating a bitmap.
In this embodiment, the registration indication information may be a binary number, for example, "1" may be used to indicate a user who has sent an operation request, and "0" may be used to indicate a user who has not sent an operation request. In this embodiment, for one user identifier, the registration indication information of the user identifier may be set at a position corresponding to a plurality of identifier values in the list. Accordingly, since the hash value calculation is performed on the user identifier by using the plurality of hash functions, the registration indication information corresponding to one user identifier can be stored in a plurality of data units, i.e., a plurality of bits, in the bitmap, and therefore, the size of the bitmap can be the product of the number of users and the number of hash functions.
Step 405, determining whether the user has sent the operation request according to the operation instruction information corresponding to the identification value.
In this embodiment, the server may further determine whether the user has sent the operation request according to the operation indication information corresponding to the identification value determined in step 404.
And step 406, in response to the user not sending the operation request, executing the operation indicated by the operation request and modifying the operation indication information corresponding to the identification value.
In this embodiment, in response to that the user has not sent the operation request, the server may execute the operation indicated by the operation request, and may modify the operation indication information corresponding to the identification value after the operation is completed.
Step 407, record the number of users who sent the operation request.
In this embodiment, the server may further record the number of users who have sent the operation request by querying each operation instruction information in the list according to a preset time interval. The number of users who sent the operation request may also be recorded in real time.
In step 408, the number of users who send the operation requests is updated after the operation instruction information corresponding to the identification value is modified.
In this embodiment, the server may update the number of users who have sent the operation request after modifying the operation instruction information corresponding to the identification value according to the number of users who have sent the operation request recorded in step 407.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the information processing method in this embodiment highlights the step of processing the user identifier by using the hash function, so that the user identifier can be converted into a simple hash value as the identifier value of the user identifier, and the operation instruction information corresponding to the hash value is stored in the bitmap, thereby further saving the storage space of the server.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present application provides an embodiment of an information processing apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the information processing apparatus 500 according to the present embodiment includes: a receiving unit 501, a first determining unit 502, a second determining unit 503, a third determining unit 504 and an executing unit 505. The receiving unit 501 is configured to receive an operation request sent by a user for a current page, where the operation request includes a user identifier; the first determining unit 502 is configured to process the user identifier and determine an identifier value corresponding to the user identifier; the second determining unit 503 is configured to determine, according to the identifier value and a preset list, operation indication information corresponding to the identifier value, where the list includes a corresponding relationship between the identifier value and the operation indication information, and the operation indication information is used to indicate whether the user has sent an operation request; the third determining unit 504 is configured to determine whether the user has sent the operation request according to the operation indication information; the execution unit 505 is configured to execute an operation indicated by the operation request and modify the operation indication information in response to the user not having sent the operation request.
In this embodiment, the specific processing of the receiving unit 501, the first determining unit 502, the second determining unit 503, the third determining unit 504 and the executing unit 505 may refer to the detailed description of step 201, step 202, step 203, step 204 and step 205 in the embodiment of fig. 2, and is not described herein again.
In some optional implementations of this embodiment, the list includes a plurality of data identifiers and a plurality of operation indication information, each data identifier corresponds to each operation indication information one-to-one, the data identifier is used to indicate a position of the operation indication information in the list, and the information processing apparatus 500 further includes a list establishing unit (not shown), and the list establishing unit includes: the setting subunit is configured to set each data identifier according to a preset data identifier setting mode; the initialization subunit is configured to set a preset numerical value for each operation instruction information, so that each operation instruction information is initialized; and the list establishing subunit is configured to establish a list according to each data identifier and each initialized operation indication information.
In some optional implementations of this embodiment, the first determining unit 502 further includes: the system comprises a hash function processing subunit 5021, configured to process the user identifier by using a preset hash function, and determine a hash value corresponding to the user identifier; a determining subunit 5022 is configured to determine the hash value as the identification value.
In some optional implementation manners of this embodiment, the second determining subunit 503 is further configured to determine a target data identifier corresponding to the identifier value, where the identifier value and the data identifier have a preset one-to-one correspondence relationship; and determining the operation indication information indicated by the target data identification as the operation indication information corresponding to the identification value.
In some optional implementations of this embodiment, the third determining subunit 504 is further configured to determine whether the operation indication information corresponding to the identification value matches a target preset value; responding to the matching of the operation indication information corresponding to the identification value and a target preset value, and determining that the user has not sent an operation request; and in response to the fact that the operation indication information corresponding to the identification value is not matched with the target preset numerical value, determining that the user has sent the operation request.
In some optional implementations of the present embodiment, the information processing apparatus 500 further includes: a recording unit (not shown) configured to record the number of users who have sent operation requests; an updating unit (not shown) configured to update the number of users who have sent the operation request after modifying the operation indication information corresponding to the identification value.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing a server according to embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output section 606 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, the processes described above with reference to the flowcharts may be implemented as a computer application according to an embodiment of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, a first determining unit, a second determining unit, a third determining unit, and an executing unit. The names of these units do not in some cases constitute a limitation to the unit itself, and for example, the receiving unit may also be described as a "unit that receives an operation request for the current page sent by the user".
As another aspect, the present application also provides a non-volatile computer storage medium, which may be the non-volatile computer storage medium included in the apparatus in the above-described embodiments; or it may be a non-volatile computer storage medium that exists separately and is not incorporated into the terminal. The non-volatile computer storage medium stores one or more programs that, when executed by a device, cause the device to: receiving an operation request for a current page sent by a user, wherein the operation request comprises a user identifier; processing the user identification, and determining an identification value corresponding to the user identification; determining operation indication information corresponding to the identification value according to the identification value and a preset list, wherein the list records the corresponding relation between the identification value and the operation indication information, and the operation indication information is used for indicating whether a user sends an operation request or not; determining whether the user sends an operation request or not according to the operation indication information corresponding to the identification value; and in response to the fact that the user does not send the operation request, executing the operation indicated by the operation request and modifying the operation indication information corresponding to the identification value.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (8)

1. An information processing method, characterized in that the method comprises:
receiving an operation request for a current page sent by a user, wherein the operation request comprises a user identifier;
processing the user identification, and determining an identification value corresponding to the user identification;
according to the identification value and a preset list, determining operation indication information corresponding to the identification value, wherein the operation indication information comprises the following steps: determining a target data identifier corresponding to the identifier value based on a corresponding relation between a predetermined identifier value and a data identifier, and determining operation indication information indicated by the target data identifier as operation indication information corresponding to the identifier value, wherein the list records the corresponding relation between the identifier value and the operation indication information, and the operation indication information is used for indicating whether a user sends the operation request or not; the list comprises a plurality of data identifications and a plurality of operation indication information, each data identification is in one-to-one correspondence with each operation indication information, and the data identifications are used for indicating the positions of the operation indication information in the list;
determining whether the user sends the operation request or not according to operation indication information corresponding to the identification value;
responding to the operation request which is not sent by the user, executing the operation indicated by the operation request and modifying the operation indication information corresponding to the identification value;
the method further comprises a step of establishing the list, the step of establishing comprising:
setting each data identifier according to a preset data identifier setting mode;
setting a preset numerical value for each operation indication information to initialize each operation indication information;
and establishing the list according to the data identifications and the initialized operation indication information.
2. The method of claim 1, wherein the processing the user identifier and determining an identifier value corresponding to the user identifier comprises:
processing the user identification by using a preset hash function, and determining a hash value corresponding to the user identification;
and determining the hash value as the identification value.
3. The method according to claim 2, wherein the determining, according to the identification value and a preset list, operation indication information corresponding to the identification value comprises:
determining a target data identifier corresponding to the identifier value, wherein the identifier value and the data identifier have a preset one-to-one correspondence relationship;
and determining the operation indication information indicated by the target data identification as the operation indication information corresponding to the identification value.
4. The method according to claim 3, wherein the determining whether the user has sent the operation request according to the operation indication information corresponding to the identification value comprises:
determining whether the operation indication information corresponding to the identification value is matched with a target preset value;
responding to the matching of operation indication information corresponding to the identification value and the target preset numerical value, and determining that the user has not sent the operation request;
and determining that the user has sent the operation request in response to the fact that the operation indication information corresponding to the identification value is not matched with the target preset numerical value.
5. The method of claim 1, further comprising:
recording the number of users who send the operation requests; and
after the operation instruction information corresponding to the identification value is modified, the number of users who have sent the operation request is updated.
6. An information processing apparatus characterized in that the apparatus comprises:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is configured to receive an operation request for a current page sent by a user, and the operation request comprises a user identifier;
the first determining unit is configured to process the user identifier and determine an identifier value corresponding to the user identifier;
a second determining unit, configured to determine, according to the identifier value and a preset list, operation instruction information corresponding to the identifier value, including: determining a target data identifier corresponding to the identifier value based on a corresponding relation between a predetermined identifier value and a data identifier, and determining operation indication information indicated by the target data identifier as operation indication information corresponding to the identifier value, wherein the list records the corresponding relation between the identifier value and the operation indication information, and the operation indication information is used for indicating whether a user sends the operation request or not; the list comprises a plurality of data identifications and a plurality of operation indication information, each data identification is in one-to-one correspondence with each operation indication information, and the data identifications are used for indicating the positions of the operation indication information in the list;
a third determining unit, configured to determine whether the user has sent the operation request according to operation indication information corresponding to the identification value;
the execution unit is configured to respond to the operation request which is not sent by the user, execute the operation indicated by the operation request and modify the operation indication information corresponding to the identification value;
the apparatus further includes a list establishing unit, the list establishing unit including:
the setting subunit is configured to set each data identifier according to a preset data identifier setting mode;
the initialization subunit is configured to set a preset numerical value for each operation instruction information, so that each operation instruction information is initialized;
and the list establishing subunit is configured to establish the list according to each data identifier and each initialized operation indication information.
7. A server, characterized in that the server comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201710580296.2A 2017-07-17 2017-07-17 Information processing method and device Active CN107391277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710580296.2A CN107391277B (en) 2017-07-17 2017-07-17 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710580296.2A CN107391277B (en) 2017-07-17 2017-07-17 Information processing method and device

Publications (2)

Publication Number Publication Date
CN107391277A CN107391277A (en) 2017-11-24
CN107391277B true CN107391277B (en) 2021-06-29

Family

ID=60339387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710580296.2A Active CN107391277B (en) 2017-07-17 2017-07-17 Information processing method and device

Country Status (1)

Country Link
CN (1) CN107391277B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337301A (en) * 2018-01-24 2018-07-27 深圳乐信软件技术有限公司 Network request processing method, device, server and the storage medium of application program
CN109176509A (en) * 2018-08-17 2019-01-11 张家港康得新光电材料有限公司 A kind of virtual switch method, apparatus, server and storage medium
CN109634756B (en) * 2018-11-26 2024-03-08 平安科技(深圳)有限公司 Page event processing method, device, computer equipment and storage medium
CN111414566A (en) * 2019-01-04 2020-07-14 北京京东尚科信息技术有限公司 Method and device for pushing information
CN112330398B (en) * 2020-10-30 2024-04-09 京东科技控股股份有限公司 Object processing method and device, electronic equipment and storage medium
CN114615170B (en) * 2022-01-20 2023-08-04 北京华耀科技有限公司 Message processing method, device and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468549A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Client side operating request responding method and device and server
CN104639554A (en) * 2015-02-13 2015-05-20 腾讯科技(深圳)有限公司 Object operating method and device
CN105488125A (en) * 2015-11-24 2016-04-13 百度在线网络技术(北京)有限公司 Page access method and apparatus
CN106325684A (en) * 2016-09-08 2017-01-11 广东欧珀移动通信有限公司 Operation item selection state display method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7328451B2 (en) * 2003-06-30 2008-02-05 At&T Delaware Intellectual Property, Inc. Network firewall policy configuration facilitation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468549A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Client side operating request responding method and device and server
CN104639554A (en) * 2015-02-13 2015-05-20 腾讯科技(深圳)有限公司 Object operating method and device
CN105488125A (en) * 2015-11-24 2016-04-13 百度在线网络技术(北京)有限公司 Page access method and apparatus
CN106325684A (en) * 2016-09-08 2017-01-11 广东欧珀移动通信有限公司 Operation item selection state display method and device

Also Published As

Publication number Publication date
CN107391277A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN107391277B (en) Information processing method and device
US10635735B2 (en) Method and apparatus for displaying information
US11038975B2 (en) Information pushing method and device
CN108846753B (en) Method and apparatus for processing data
US20180074729A1 (en) Data storage method and apparatus
US11244153B2 (en) Method and apparatus for processing information
CN110489440B (en) Data query method and device
CN107844488B (en) Data query method and device
CN105488205A (en) Page generation method and page generation apparatus
CN109753424B (en) AB test method and device
CN111294288A (en) Traffic identification method and device, application program interface gateway and storage medium
CN103197905A (en) Device control device, device control system, device control method, and recording medium
US20190122265A1 (en) Method and system for providing advertisement through lock screen on basis of message associated application
CN105743890B (en) Authority information generation method and device
CN107918617B (en) Data query method and device
CN109710634B (en) Method and device for generating information
CN108834202B (en) Information display method and equipment
JP2018120576A (en) Method and device for generating web page
CN111552715B (en) User query method and device
CN109299223B (en) Method and device for inquiring instruction
CN109462868B (en) Method and equipment for inquiring target information by wireless access point
CN108811036B (en) Method and apparatus for displaying wireless access point information
CN104156358B (en) A kind of batch read method of table for database, device and system
CN112306340A (en) Information display method, information sending device, electronic equipment and medium
CN112418944A (en) Coupon transfer method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant