CN111026926A - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN111026926A
CN111026926A CN201911304307.XA CN201911304307A CN111026926A CN 111026926 A CN111026926 A CN 111026926A CN 201911304307 A CN201911304307 A CN 201911304307A CN 111026926 A CN111026926 A CN 111026926A
Authority
CN
China
Prior art keywords
service data
identification
user
data
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911304307.XA
Other languages
Chinese (zh)
Inventor
余昌叶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Music Entertainment Technology Shenzhen Co Ltd
Original Assignee
Tencent Music Entertainment Technology Shenzhen 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 Tencent Music Entertainment Technology Shenzhen Co Ltd filed Critical Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority to CN201911304307.XA priority Critical patent/CN111026926A/en
Publication of CN111026926A publication Critical patent/CN111026926A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a data processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: when a service data acquisition request submitted by a user based on a terminal is received, service identification information and a user identification carried in the service data acquisition request are acquired; determining first service data corresponding to a user based on the service identification information and the user identification, and determining a first identification array corresponding to the first service data; acquiring a user attribute value of a user based on the user identifier; determining a first identification bit from each identification bit of the first identification array based on the user attribute value, and determining target service data from the first service data based on the first identification bit; and sending the target service data to the terminal. By adopting the embodiment of the invention, the data processing efficiency can be improved, the user experience is improved, and the applicability is high.

Description

Data processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, apparatus, device, and storage medium.
Background
With the development of computer technology, people live, work and study through various computer applications and mobile phone applications. Various applications often increase the user's stickiness and popularity in rewards, such as awarding gift packages based on the user's behavior, or providing privileged incentives within other applications to the user.
The existing reward mechanism can bring huge data storage pressure when the number of users is large, the time consumption from user acquisition to reward distribution to the users is long, the enthusiasm of the users in use and application cannot be improved, and the applicability is poor.
Disclosure of Invention
Embodiments of the present invention provide a data processing method, apparatus, device, and storage medium, which can improve data processing efficiency and user experience, and have high applicability.
In a first aspect, an embodiment of the present invention provides a data processing method, where the method includes:
when a service data acquisition request submitted by a user based on a terminal is received, acquiring service identification information and a user identification carried in the service data acquisition request;
determining first service data corresponding to the user based on the service identification information and the user identification, and determining a first identification array corresponding to the first service data, where the first identification array includes multiple identification bits, each identification bit is used to mark an acquisition state of each service data in the first service data, and the acquisition state includes an acquired state and an unacquired state;
acquiring a user attribute value of the user based on the user identifier;
determining a first identification bit from each identification bit of the first identification array based on the user attribute value, and determining target service data from the first service data based on the first identification bit, wherein the acquisition state of the target service data is an unacquired state;
and sending the target service data to the terminal.
With reference to the first aspect, in a possible implementation manner, the determining a first identifier array corresponding to the first service data includes:
determining state data corresponding to the first service data, and determining the data type of the state data;
processing the state data based on a data processing mode corresponding to the data type to obtain an array with a plurality of identification bits;
and determining the array with a plurality of identification bits as a first identification array corresponding to the first service.
With reference to the first aspect, in a possible implementation manner, the user attribute value is an integer greater than 0;
the determining, from the identification bits of the first identification array based on the user attribute value, a first identification bit includes:
determining at least one identification bit corresponding to the user attribute value from the identification bits of the first identification array;
and determining the identification bit with the highest digit in the at least one identification bit as a first identification bit.
With reference to the first aspect, in a possible implementation manner, the service data acquisition request carries a service attribute value;
the determining target service data from the first service data based on the first identification bit includes:
if the service attribute value is not greater than the user attribute value, determining an identification bit which corresponds to the service attribute value and is in an unacquired state in each identification bit of the first identification array as a second identification bit;
and determining the service data corresponding to the second identification bit in the first service data as target service data.
With reference to the first aspect, in a possible implementation manner, after the sending the target service data to the terminal, the method further includes:
changing the identification bit corresponding to the target service data from an unacquired state to an acquired state to obtain a second identification array;
and updating the state data based on the second identification array.
With reference to the first aspect, in one possible implementation manner, the user attribute value is a user rank, the user rank is determined by historical behavior information of the user, and the higher the rank of the user rank is, the larger the number of bits of the first flag bit is.
With reference to the first aspect, in one possible implementation, the method further includes:
when a business data query request submitted by the user based on the terminal is received, determining first business data corresponding to the user, and determining state data corresponding to the first business data;
sending the state data to the terminal so that the terminal determines the acquisition state of each service data in the first service data based on the second state data; and/or the presence of a gas in the gas,
and generating state information based on the state data and sending the state information to the terminal, wherein the state information comprises the acquisition state of each service data in the first service data.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including:
the information acquisition module is used for acquiring service identification information and user identification carried in a service data acquisition request when the service data acquisition request submitted by a user based on a terminal is received;
a first determining module, configured to determine first service data corresponding to the user based on the service identification information and the user identification, and determine a first identification array corresponding to the first service data, where the first identification array includes a plurality of identification bits, each identification bit is used to mark an acquisition state of each service data in the first service data, and the acquisition state includes an acquired state and an unacquired state;
the information acquisition module is configured to acquire a user attribute value of the user based on the user identifier;
a second determining module, configured to determine a first identifier bit from each identifier bit of the first identifier array based on the user attribute value, and determine target service data from the first service data based on the first identifier bit, where an acquisition state of the target service data is an unacquired state;
and the data sending module is used for sending the target service data to the terminal.
With reference to the second aspect, in one possible implementation manner, the first determining module includes:
a first determining unit, configured to determine status data corresponding to the first service data, and determine a data type of the status data;
the data processing unit is used for processing the state data based on a data processing mode corresponding to the data type to obtain an array with a plurality of identification bits;
a second determining unit, configured to determine the array with the multiple identification bits as a first identification array corresponding to the first service.
With reference to the second aspect, in a possible implementation manner, the user attribute value is an integer greater than 0; the second determining module includes:
a third determining unit, configured to determine at least one identification bit corresponding to the user attribute value from each identification bit of the first identification array;
and the fourth determining unit is used for determining the identification bit with the highest bit number in the at least one identification bit as the first identification bit.
With reference to the second aspect, in a possible implementation manner, the service data acquisition request carries a service attribute value; the second determining module includes:
a fifth determining unit, configured to determine, as the second identification bit, an identification bit that corresponds to the service attribute value and is in an unacquired state in each identification bit of the first identification array if the service attribute value is not greater than the user attribute value;
a sixth determining unit, configured to determine, as target service data, service data corresponding to the second identification bit in the first service data.
With reference to the second aspect, in a possible implementation manner, the data processing apparatus further includes:
the data processing module is further configured to change the identification bit corresponding to the target service data from an unacquired state to an acquired state, so as to obtain a second identification array;
the data processing module is further configured to update the state data based on the second identification array.
With reference to the second aspect, in one possible implementation manner, the user attribute value is a user rank, the user rank is determined by historical behavior information of the user, and the higher the rank of the user rank is, the larger the number of digits of the first identification digit is.
With reference to the second aspect, in a possible implementation manner, the first determining module is further configured to:
when a business data query request submitted by the user based on the terminal is received, determining first business data corresponding to the user, and determining state data corresponding to the first business data;
the data sending module is further configured to send the status data to the terminal, so that the terminal determines an acquisition status of each service data in the first service data based on the second status data; and/or the presence of a gas in the gas,
and generating state information based on the state data and sending the state information to the terminal, wherein the state information comprises the acquisition state of each service data in the first service data.
In a third aspect, an embodiment of the present invention provides an apparatus, which includes a processor and a memory, where the processor and the memory are connected to each other. The memory is configured to store a computer program that supports the terminal device to execute the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect, where the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program is executed by a processor to implement the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect.
In the embodiment of the invention, the acquisition state of the service data is represented based on the identification array, whether each service data is acquired can be quickly determined, and the determination speed of the acquisition state of the service data can be improved. Secondly, the acquisition state of the target service data required to be acquired by the user can be quickly determined based on the user attribute value, and then the target service data is sent to the terminal when the target service data is in the non-acquisition state, so that the waiting time of the user is reduced, the accuracy of determining the target service data is improved, and the user experience is improved. Meanwhile, the acquisition state of each service data is stored into one state data, and then an identification array which is used for marking the acquisition state of each service data and comprises a plurality of identification bits is obtained based on the state data so as to inquire the acquisition state of the service data and determine the target service data, so that the data storage capacity is greatly reduced, the efficiency of acquiring the target service data by a user is improved, and the applicability is high. Moreover, after the target service data is sent to the terminal, the corresponding state data and the corresponding identification data can be updated, so that the situation that the user repeatedly obtains the same service data is avoided, the user can inquire the obtaining state of any service data at any time through an inquiry mechanism, and the user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a diagram of a network architecture provided by an embodiment of the present invention;
fig. 2a is a schematic diagram of a service incentive scheme provided by an embodiment of the present invention;
FIG. 2b is a schematic flow chart of a service incentive provided by an embodiment of the present invention;
FIG. 3 is a flow chart of a data processing method according to an embodiment of the present invention;
fig. 4 is a schematic view of a scenario for acquiring service data according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an identifier array according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a scenario for determining a first identifier array according to an embodiment of the present invention;
FIG. 7 is a schematic view of a user rating interface provided by an embodiment of the present invention;
fig. 8 is a schematic view of a scenario for determining a first flag according to an embodiment of the present invention;
fig. 9 is a schematic view of a scenario for determining a second flag according to an embodiment of the present invention;
FIG. 10 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating an application scenario for updating state data according to an embodiment of the present invention;
FIG. 12 is a diagram illustrating a scenario of a privilege reward claim query according to an embodiment of the present invention;
FIG. 13 is a block diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of an apparatus provided in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The data processing method provided by the embodiment of the present invention (for convenience of description, the method provided by the embodiment of the present invention may be abbreviated as the method provided by the embodiment of the present invention) may be applied to any device and scenario depending on data interactive transmission, such as a service incentive system in entertainment applications, enterprise data management, and other scenarios, and may be specifically determined according to an actual application scenario, which is not limited herein.
Referring to fig. 1, fig. 1 is a diagram of a network architecture according to an embodiment of the present invention. The network architecture may include the device 100 and a plurality of terminals (as shown in fig. 1, specifically, the network architecture includes a terminal 200, a terminal 300, and a terminal 400, where data transmission may be performed between the server 200 and each terminal through a network or a data transmission channel, where each terminal may perform data interactive transmission with the device 100 based on a data transmission function built in the terminal, and at this time, the device 100 is a device such as a server for processing data transmitted by the terminal, and each terminal may also perform data interactive transmission with the device 100 based on an application having a data communication function installed in the terminal, and at this time, the device 100 may be a background server corresponding to the application, or may be any terminal having data transmission and processing capabilities, and may be specifically determined according to an actual application scenario, which is not limited herein.
Taking the terminal 200 as an example, the terminal 200 may respond to a service data acquisition request operation of a user and send a service data acquisition request to the device 100. After receiving the service data acquisition request, the device 100 may determine target service data acquired by the service data acquisition request, and send the target service to the terminal 200, thereby completing a data processing procedure between the terminal 200 and the device 100. The device 100, the terminal 200, the terminal 400, and the like may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Mobile Internet Device (MID), a wearable device (e.g., a smart watch, a smart band, and the like), and may be determined according to an actual application scenario, which is not limited herein.
Further, the network architecture described above can be illustrated with reference to fig. 2a and 2b, taking as an example a service incentive system in entertainment applications. Referring to fig. 2a, fig. 2a is a schematic diagram of a service incentive scheme according to an embodiment of the present invention. As shown in fig. 2a, the service incentive scheme user may query the server 100 for available gift packages and privileges based on any one of the terminal 200, the terminal 300, and the terminal 400 (for convenience of description, the terminal 200 is described below as an example). The server 100 may perform operations such as level check, request check, and authentication check on the query request sent by the user based on the terminal 100 to determine that the user qualifies to receive and issue gift packages and privileges to the user, thereby implementing management of the gift packages and privileges of the user. Meanwhile, the key operation data of the user and the real-time state of the gift bag and the privilege can be stored in the inquiry and issuing process of the gift bag and the privilege, so that the recheck of the operation behavior of the user and the update of the relevant data of the gift bag and the privilege are facilitated. Referring to fig. 2b again, fig. 2b is a schematic flow chart of a service incentive according to an embodiment of the present invention. In fig. 2b, when the terminal 200 detects a user operation behavior of the user to receive the gift package, the terminal 200 may transmit a reception request to the server 100, and the server 100 may check the validity of the reception request and further check the user level and the login status of the user. When the pickup request of the user is a legal request, the user level meets the pickup level requirement, and the user is in a normal login state, the server 100 may read the pickup history of the user. When the user does not receive the gift bag corresponding to the getting request, it indicates that the user has the qualification for getting the gift bag, the server 100 can distribute the gift bag to the user and synchronously update the getting quota of the user (which gift bags the user can get), and record the getting record so as to check the getting record when the getting request of the gift bag is received again. In any of the above processes, the terminal 200 may report a user operation behavior triggered by the user based on the terminal 200, and the server 100 may store data generated in the processes of requesting verification and delivering the gift package, so as to perform a rechecking verification on the gift package pickup process at any time.
Referring to fig. 3, fig. 3 is a flow chart illustrating a data processing method according to an embodiment of the invention. As shown in fig. 3, the data processing method according to the embodiment of the present invention may include the following steps S102 to S104.
S101, when a service data acquisition request submitted by a user based on a terminal is received, service identification information and a user identification carried in the service data acquisition request are acquired.
In some possible embodiments, when the terminal detects a user operation that the user requests to acquire service data, the terminal may send a service data acquisition request. The service data acquisition request may be a request submitted by a user based on a terminal based on operations such as a click operation, a gesture operation, and a voice control, and may be specifically determined based on an actual application scenario, which is not limited herein. When a service data acquisition request submitted by a user based on a terminal is received, service identification information and a user identification carried in the service data acquisition request can be acquired, wherein the service identification information and the user identification information can be one or more combinations of numbers, characters, character strings and letters, can be specifically determined based on an actual application scene, and are not limited herein. Optionally, the user operation that the user requests to acquire the service data may be stored in the preset storage space so as to recheck the operation behavior of the user at any time, thereby improving data security.
In some feasible embodiments, when a service data acquisition request submitted by a user based on a terminal is received, the validity of the service data acquisition request can be checked based on the aspects of a request source, a terminal type (whether the request is a common device of the user), a request parameter and the like, and only when the service data acquisition request is legal, that is, when the service data acquisition request is an effective request, service identification information and a user identification carried in the service data request are acquired.
S102, determining first service data corresponding to a user based on the service identification information and the user identification, and determining a first identification array corresponding to the first service data.
In some feasible embodiments, since one user may correspond to multiple types of service data, and the service data acquisition request is to acquire one service data of the multiple types of service data corresponding to one user, after the service identification information and the user identification carried in the service data acquisition request are acquired, multiple service data corresponding to the service identification information may be determined based on the service identification information. That is, a certain type of service data that needs to be acquired by the user is determined from all service data based on the service identification information, so that a plurality of service data (for convenience of description, hereinafter referred to as first service data) corresponding to the user are determined based on the user identification. Optionally, all service data corresponding to the user may be determined from all service data based on the user identifier, and then a certain type of service data (i.e., first service data) that the user needs to obtain may be determined from all service information corresponding to the user based on the service identifier information. It should be particularly noted that the first service data may include a plurality of service data, and the target service data that the user needs to acquire is one or more service data in the first service data, and a specific determination process of the target service data may refer to the following description of steps, which is not described herein.
For example, please refer to fig. 4, where fig. 4 is a schematic view of a scenario for acquiring service data according to an embodiment of the present invention. In fig. 4, the user can receive the corresponding flower reward when reaching each grade, and the flower reward is a kind of business data that the user needs to receive. When reaching level 2, level 4 and other preset levels, the user can also get the downloading and exporting privilege, and the downloading and exporting privilege is that the user needs to get a service data. Further, the user may also get a segment unlocking gift bag when reaching the 10-level, 20-level, 30-level and 40-level, where the segment unlocking gift bag is another service data that the user needs to get. When the user chooses to receive the flower reward corresponding to a certain grade, the business data chosen and obtained by the user can be determined to be the flower reward according to the business identification information carried in the business data obtaining request submitted by the user based on the terminal. Because the flower rewards are oriented to all users, all the flower rewards corresponding to the user can be determined based on the user identification carried in the business data acquisition request, and further the target flower rewards required to be acquired by the user are determined from all the flower rewards of the user.
In some possible embodiments, after the first service data corresponding to the user is determined and before the target service data is determined in the first service data, the first identification data corresponding to the first service data needs to be determined to determine the acquisition state of each service data in the first service data, where the acquisition state of each service data in the first service data may include an acquired state and an unacquired state, so as to determine whether each service data is acquired by the user according to the acquisition state of each service data. Specifically, the first identification array may be formed based on a plurality of numbers or a plurality of letters, and one number or letter in the identification array is an identification bit, and one identification bit only marks an acquisition state of one service data.
For example, referring to fig. 5, fig. 5 is a schematic structural diagram of an identifier array according to an embodiment of the present invention. In fig. 5, when 10 service data are included in the first service data, the identification array "1111100101" may be used as the first identification array of the first service data, and two numbers are used to identify the acquisition status of each service data in the first service data. If the value on the flag bit is 1, it may indicate that the service data corresponding to the flag bit is in an unacquired state, and if the value on the flag bit is 0, it may indicate that the service data corresponding to the flag bit is in an acquired state. At this time, as can be seen from fig. 5, the acquiring states of the service data 1 and the service data 5 are non-acquiring states, which indicates that the user has already acquired the service data 1 and the service data 5. The acquiring status of the service data 9 is an acquired status, which indicates that the user has acquired the service data 9. It should be specially noted that, the value 1 of each flag bit in the flag array may also be in an acquired state, and 0 is in an unacquired state, which may be determined according to an actual application scenario, and is not limited herein. Alternatively, the identification array "AABB" may be used as the first identification array, and two letters are used to identify the acquisition state of each service data in the first service data (a is an acquired state, and B is an unacquired state, or a is an unacquired state, and B is an acquired state, which may be determined according to an actual application scenario, and is not limited herein).
In some possible embodiments, since there are a large number of numbers or letters in the first identification array, when the first identification array is stored (the obtaining status of each service data in the first service data is stored), the first identification array may occupy a large number of bytes (one letter occupies 1 byte, and one integer occupies 2 bytes). And because the byte quantity of the first identification array is large, the storage space is occupied, and a large amount of time is consumed when the acquisition state of each service data in the first service data is inquired. Therefore, in order to reduce the storage space and improve the efficiency of querying the acquisition status, the acquisition status of each service data in the first service data may be represented by a number. For example, a number with an int type data type occupies only 4 bytes, a number with a long type data occupies 4 bytes, and a number with a long type data occupies 8 bytes, so that after the acquisition state of each service data in the first service data is represented by a number, the storage space can be effectively reduced. The data type of the number used for storing the acquisition status of each service data in the first service data may be determined based on the number of service data in the first service data, for example, if the number of service data in the first service data is 50, a long type number (64-bit) may be used to represent the acquisition status of 50 service data. Specifically, each bit corresponding to the number of the long type has only two expression modes of 0 or 1, so that 64 bits corresponding to the number of the long type can be used as a first identification array of the first service data, the first 50 bits can be used as identification bits of each service data in the first service data, and 0 or 1 corresponding to each bit is used for marking the acquisition state of one service data. If the number of the service data in the first service data is 32, a long type number (32-bit) may be used to represent the acquisition status of the 32 service data in the first service data. It should be particularly noted that the number of the long type and the number of the long type may be used as state data corresponding to the first service data to represent an acquisition state of each service data in the first service data, and a specific numerical value of the state data may be determined based on the acquisition state of each service data in the first service data, that is, may be determined based on a value (0 or 1) on each bit, and may be specifically determined according to an actual application scenario, which is not limited herein.
Optionally, when the number of the service data in the first service data is large (e.g., 200 service data), the obtaining state of each service data may be marked by using digital bits of a plurality of same data types or a plurality of different data types. For example, assuming that there are 214 service data in the first service data, a total of 214 bits of two numbers of long types and one number of long types (32 bits) can be used to represent the acquisition status of each service data in the first service data. Optionally, if the number of the service data in the first service data is large, assuming that the data type of the state data is a long type number, at this time, one long type number may be used to indicate the acquisition state of each service data in the two types of services. For example, the first service data includes 18 service data, the second service data includes 40 service data, and the acquisition state of each service data in the first service data and the second service data may be represented based on the first 58 bits of a long type number. The selection of the data type may be determined based on the number of the service data in each type of service data and an actual application scenario, which is not limited herein.
Based on the above implementation manner, after the first service data corresponding to the user is determined, state data corresponding to the first service data may be determined, the state data is processed according to a processing manner corresponding to the data type of the state data to obtain an array having a plurality of identification bits, and the array is determined as first identification data of one first service pair. For example, in the case that the state data is a number of a long type, see fig. 6, where fig. 6 is a schematic view of a scenario of determining the first identifier array according to an embodiment of the present invention. As shown in fig. 6, the status data is a long type number, and the value is "9992361673228287999". When the first identification array corresponding to the first service data is determined based on the state data, the state data can be converted into binary data from decimal system for processing so as to map out the value of each bit (64-bit) of the state data, thus each bit can be used as an identification bit, when the value of the bit is 1, the service data corresponding to the identification bit is in an unacquired state, and when the value of the bit is 0, the service data corresponding to the identification bit is in an unacquired state. Based on the implementation shown in fig. 6, the purpose of determining the acquisition state of each service data in the first service data based on the state data corresponding to the first service data may be achieved. It should be particularly noted that the processing manner corresponding to the data type of the state data may be to process (convert) the state data into a binary system to obtain an array including a plurality of bit bits, or convert the state data into a digital system of another binary system to obtain an array, and the specific processing manner and the expression manner of the acquisition state of each service data in each processing manner may be determined based on an actual application scenario, which is not limited herein.
S103, obtaining a user attribute value of the user based on the user identification, and determining a first identification position from each identification position of the first identification array based on the user attribute value.
In some possible embodiments, after determining the first identifier array corresponding to the first service data, a service data range available to the user in the first service data may be determined, and then target service data to be acquired by the user may be determined within the range. Specifically, the user attribute value of the user may be determined based on a user identifier carried in the service data acquisition request, where the user attribute value is used to indicate an acquisition condition for the user to acquire service data. That is, a specific range of the target service data in each service data of the first service data may be determined based on the user attribute value of the user. The user attribute values include, but are not limited to, numbers, letters, characters, and the like, and may be determined based on an actual application scenario, which is not limited herein. For example, in the service incentive scheme of the entertainment software, the user attribute value may be a user level, and then the first identification bits may be determined from the identification bits of the first identification data based on the user level, so as to determine the reward (gift package, privilege, etc.) that the user can receive at the current user level. The user level of the user may be determined by historical behavior information of the user (which may be determined according to an actual application scenario, and is not limited herein), and when the level of the user level is higher, the number of bits of the first identification bit is larger, that is, the number of rewards that can be received by the user is larger. Referring to fig. 7, fig. 7 is a scene schematic diagram of a user rating interface according to an embodiment of the present invention. In fig. 7, the current level of the user is 46 levels, that is, the user attribute value of the user is 46. And as can be seen from fig. 7, the user is upgraded from level 46 to level 47 by 227532 points, the user needs to complete the task accumulation points continuously, and when the points are accumulated by 227532 points, the user grade can be upgraded from level 46 to level 47. The task continuously completed by the user is the historical behavior information for determining the user level. When the user grade is increased to 47 grade, the number of the first identification bits in the first identification array is correspondingly increased, so that the flower reward range which can be received by the user at 46 grade is further expanded to include the flower reward corresponding to 47 grade of the user.
Optionally, when the user attribute value is an integer greater than 0, at least one identification bit corresponding to the user attribute value may be determined from the identification bits of the first identification array, and the identification bit with the highest bit number in the at least one identification bit is determined as the first identification bit. Therefore, the service data corresponding to each identification bit between the initial identification bit in the first identification array and the first identification bit is determined as the service data range available to the user, and the target service data to be acquired by the user is in the service data range. The number of the identification bits corresponding to the user attribute value may be determined based on an actual application scenario, which is not limited herein. Referring to fig. 8, fig. 8 is a schematic view of a scenario for determining a first flag according to an embodiment of the present invention. Assuming that the first identification data in fig. 6 is obtained based on the status data "9992361673228287999" in fig. 6, the identification bits corresponding to the user attribute value of the user are identification bits 7 to 11, respectively, in order to obtain the maximum range of the service data that can be obtained by the user, and the bit number 11 of the identification bit 11 is the highest bit number, therefore, the identification bit 11 may be determined as the first identification bit in the first identification array, and it may be determined that the user can obtain the service data corresponding to each identification bit between identification bits 1 and identification bits 11.
And S104, determining target service data from the first service data based on the first identification bit, and sending the target service data to the terminal.
In some possible embodiments, after determining the first identification bit from the identification bits of the first identification array based on the user attribute value, i.e., determining the range of the service data available to the user from the first identification array, the target service data may be determined from the first service data based on the first identification bit, i.e., determining the service data to be acquired by the user from the range of the service data available to the user. Specifically, a service attribute value carried in a service data acquisition request may be acquired and it may be determined whether the service attribute value is greater than the user attribute value, where the service attribute value is used to determine target data to be acquired by a user. If the service attribute value is greater than the user attribute value, it indicates that the target service data to be acquired by the user is not within the service data range available to the user, i.e. under the condition that the service attribute value is greater than the user attribute value, no service data is dispatched to the user. If the service attribute value is not greater than the user attribute value, it indicates that the target service data to be acquired by the user is within the service data range available to the user, at this time, at least one identification bit corresponding to the service attribute value may be selected from the identification bits of the first identification array (the number of the identification bits corresponding to the service attribute value may be determined based on an actual application scenario, which is not limited herein), and the at least one service data corresponding to the at least one identification bit corresponding to the service attribute value is the service data to be acquired by the user.
Optionally, in order to avoid that the user repeatedly acquires a certain service data, after determining at least one identification bit corresponding to the service attribute value, the acquisition state of the service data marked by each identification bit of the at least one identification bit may be determined based on a value on the at least one identification bit, and the at least one identification bit marked with the acquisition state of not being in the acquisition state is determined as the second identification bit. Referring to fig. 9, fig. 9 is a schematic view of a scenario for determining the second flag according to an embodiment of the present invention. As shown in fig. 9, when the user attribute value and the service attribute value correspond to a plurality of identification bits, if the service attribute value is not greater than the user attribute value, it is determined that the identification bits corresponding to the service attribute value are identification bits 2 to 6. Among the 5 identification bits from identification bit 2 to identification bit 6, only the acquisition state marked by identification bit 5 is an unacquired state, so that identification bit 5 can be determined as the second identification bit. When the user attribute value and the service attribute value respectively correspond to an identification bit, if the service attribute value is not greater than the user attribute value, the identification bit corresponding to the service attribute value can be determined to be identification bit 5. Since the acquisition state marked by the identification bit 5 is an unacquired state, the identification bit 5 can be determined as the second identification bit. Based on the implementation manner, after the user is ensured not to repeatedly receive the service data, the service data corresponding to the second identification bit in the first service data can be determined as the target service data, and the service data is sent to the terminal, so that the purpose that the user acquires the target data based on the service data acquisition request is achieved.
In the embodiment of the invention, the acquisition state of the service data is represented based on the identification array, whether each service data is acquired can be quickly determined, and the determination speed of the acquisition state of the service data can be improved. Secondly, the acquisition state of the target service data required to be acquired by the user can be quickly determined based on the user attribute value, and then the target service data is sent to the terminal when the target service data is in the non-acquisition state, so that the waiting time of the user is reduced, the accuracy of determining the target service data is improved, and the user experience is improved. Meanwhile, the acquisition state of each service data is stored into one state data, and then an identification array which is used for marking the acquisition state of each service data and comprises a plurality of identification bits is obtained based on the state data so as to inquire the acquisition state of the service data and determine the target service data, so that the data storage capacity is greatly reduced, the efficiency of acquiring the target service data by a user is improved, and the applicability is high.
Referring to fig. 10, fig. 10 is another schematic flow chart of a data processing method according to an embodiment of the present invention. The data processing method shown in fig. 10 may include the following steps S201 to S207.
S201, when a service data acquisition request submitted by a user based on a terminal is received, service identification information and a user identification carried in the service data acquisition request are acquired.
S202, determining first service data corresponding to the user based on the service identification information and the user identification, and determining a first identification array corresponding to the first service data.
S203, obtaining a user attribute value of the user based on the user identification, and determining a first identification position from each identification position of the first identification array based on the user attribute value.
S204, determining target service data from the first service data based on the first identification bit, and sending the target service data to the terminal.
In some possible embodiments, the steps S201 to S204 may refer to the implementation manner shown in the steps S201 to S204 in fig. 3, and are not described herein again.
S205, changing the identification bit corresponding to the target service data from the non-acquired state to the acquired state to obtain a second identification array, and updating the state data based on the second identification data.
In some possible embodiments, in order to avoid that the user repeatedly acquires the target data when acquiring the service data based on the service data acquisition request next time, after the target service data is sent to the terminal, that is, after the user acquires the target data based on the service data acquisition request, the acquisition state of the target service data needs to be changed from the non-acquisition state to the acquisition state. When the user acquires the target service data again, the user cannot acquire the target service data again because the acquisition state of the target data is the acquired state.
Specifically, referring to fig. 11, fig. 11 is an application scenario diagram of updating state data according to an embodiment of the present invention. In fig. 11, before the target service data is sent to the terminal, the first identification array is obtained by performing data processing based on the status data "9992361673228287999" in fig. 6, and the second identification bit is identification bit 5, and the values 1 and 0 of each identification bit in the first identification array respectively represent the unacquired state and the acquired state, so after the target service data is sent to the terminal, the value of the second identification bit (identification bit 5) may be changed from 1 to 0, so as to change the acquired state marked by the second identification bit from the unacquired state to the acquired state and obtain a new identification array (for convenience of description, hereinafter referred to as the second identification array). At this time, the second identification array is used to mark the acquisition status of each service data in the first service data after the target service data is sent to the terminal, but in order to reduce the storage space, the acquisition status of each service data in the first service data may be represented by one number, and thus the acquisition status of each service data in the first service data may be represented based on one number of the second identification array. The second flag array may be converted into a data type (long type) number that is the same as the state data in fig. 6, that is, after the value of the second flag bit 5 is changed from 1 to 0, the second flag array may obtain a new state data "9415900920924864511", and the state data corresponding to the first flag array may be updated based on the new state data. Specifically, the state data corresponding to the first identifier array may be deleted, and the new state data may be used as the state data corresponding to the first service data. When a service data acquisition request submitted by a user based on a terminal is acquired, state data (new state data) of first service data can be determined based on the service data acquisition request to determine service data to be acquired by the user.
S206, when a business data query request submitted by a user based on a terminal is received, first business data corresponding to the user is determined, and state data corresponding to the first business data is determined.
In some feasible embodiments, when a service data query request submitted by a user based on a terminal is received, first service data corresponding to the user can be determined based on service identification information and a user identification carried in the service query request, and state data corresponding to the first service data is determined, so that an acquisition state of each service data in the first service data is determined based on the state data corresponding to the first service. The process of determining the first service data and the status data corresponding to the first service data may refer to the implementation manners shown in step S102 and step S103 in fig. 3, and details are not repeated here.
Optionally, in some feasible embodiments, when receiving a service data query request submitted by a user based on a terminal, the validity of the service data query request may be checked based on the request source, the terminal type (whether the service data query request is a common device of the user), the request parameter, and the like, and only when the service data query request is valid, that is, when the service data query request is a valid request, the service identification information and the user identifier carried in the service data request are queried.
S207, sending the state data to the terminal so that the terminal determines the acquisition state of each service data in the first service data based on the second state data; and/or generating state information based on the state data and sending the state information to the terminal.
In some feasible embodiments, after the status data of the first service data is determined, the status data may be sent to the terminal, so that the terminal obtains an identifier array corresponding to the first service data based on the status data, and further, the acquisition status in each service data in the first service data may be determined according to the value of each identifier bit in the identifier array corresponding to the first service data. Optionally, when the user queries the acquisition state of a certain service data in the first service data, after receiving the identifier array corresponding to the first service data, the identification bit corresponding to the service attribute value may be determined from the identifier array, so as to determine the acquisition state of the certain service data to be queried by the user according to the value of the identification bit. Optionally, after the state data corresponding to the first service data is determined, the identification array corresponding to the first service data may be obtained based on the state data to obtain the obtaining state of each service data in the first service data. When the received service data query request carries a service attribute value, that is, when a user queries the acquisition state of certain service data based on the service data query request, state information can be generated based on the acquisition state of the service data corresponding to the service attribute value; when the received service data query request does not carry the service attribute value, that is, when the user queries the acquisition state of each service data in the first service data based on the service query request, the state information can be generated based on the acquisition state of each service data. After obtaining the state information including the acquisition state of a certain service data or each service data, the state information may be sent to the terminal so that the terminal can determine the acquisition state of a certain service data or each service in the first service data based on the state information. The specific content of the state information is information in any form for indicating the acquisition state of certain data or multiple service data, and the specific content form may be determined based on an actual application scenario, which is not limited herein.
Optionally, in some feasible embodiments, when the obtaining states of the service data of each type of all the users need to be queried, taking one of the users as an example, the state data corresponding to the service data of each type corresponding to the user may be determined, and then the obtaining state of each service data in the service data of each type is determined based on the identifier array corresponding to each state data. Referring to fig. 12, fig. 12 is a schematic view illustrating a scenario of the inquiry privilege reward obtaining situation according to an embodiment of the present invention. As shown in fig. 12, when it is required to query the getting-up situation of all privilege awards of all users, the identification array of all types of gift packages of each user can be determined based on the state data of each type of gift package of each user (the data type of the state data is long long type, and there are 50 gift packages in each gift package). For user 1, can determine the identification array that flower gift bag, download gift bag and the section gift bag that user 1 corresponds respectively correspond, and then can determine the state of getting of each gift bag in the gift bag of every type based on the identification array that flower gift bag, download gift bag and the section gift bag correspond. Optionally, the user may also query the pickup states of all the gift bags based on the query request, and the specific implementation may refer to the above-described implementation, which is not described herein again.
In the embodiment of the invention, the acquisition state of the service data is represented based on the identification array, whether each service data is acquired can be quickly determined, and the determination speed of the acquisition state of the service data can be improved. Secondly, the acquisition state of the target service data required to be acquired by the user can be quickly determined based on the user attribute value, and then the target service data is sent to the terminal when the target service data is in the non-acquisition state, so that the waiting time of the user is reduced, the accuracy of determining the target service data is improved, and the user experience is improved. Meanwhile, the acquisition state of each service data is stored into one state data, and then an identification array which is used for marking the acquisition state of each service data and comprises a plurality of identification bits is obtained based on the state data so as to inquire the acquisition state of the service data and determine the target service data, so that the data storage capacity is greatly reduced, the efficiency of acquiring the target service data by a user is improved, and the applicability is high. Moreover, after the target service data is sent to the terminal, the corresponding state data and the corresponding identification data can be updated, so that the situation that the user repeatedly obtains the same service data is avoided, the user can inquire the obtaining state of any service data at any time through an inquiry mechanism, and the user experience is further improved.
Referring to fig. 13, fig. 13 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention. The device 1 provided by the embodiment of the invention comprises:
the information acquisition module 11 is configured to, when receiving a service data acquisition request submitted by a user based on a terminal, acquire service identification information and a user identification carried in the service data acquisition request;
a first determining module 12, configured to determine first service data corresponding to the user based on the service identification information and the user identification, and determine a first identification array corresponding to the first service data, where the first identification array includes a plurality of identification bits, each identification bit is used to mark an acquisition state of each service data in the first service data, and the acquisition state includes an acquired state and an unacquired state;
the information obtaining module 11 is configured to obtain a user attribute value of the user based on the user identifier;
a second determining module 13, configured to determine a first identification bit from each identification bit of the first identification array based on the user attribute value, and determine target service data from the first service data based on the first identification bit, where an acquisition state of the target service data is an unacquired state;
and a data sending module 14, configured to send the target service data to the terminal.
In some possible embodiments, the first determining module 12 includes:
a first determining unit 121, configured to determine status data corresponding to the first service data, and determine a data type of the status data;
a data processing unit 122, configured to process the state data based on a data processing manner corresponding to the data type to obtain an array having a plurality of identification bits;
a second determining unit 123, configured to determine the array with the multiple identification bits as a first identification array corresponding to the first service.
In some possible embodiments, the user attribute value is an integer greater than 0; the second determining module 13 includes:
a third determining unit 131, configured to determine at least one identification bit corresponding to the user attribute value from the identification bits of the first identification array;
a fourth determining unit 132, configured to determine the flag bit with the highest bit number in the at least one flag bit as the first flag bit.
In some feasible embodiments, the service data acquisition request carries a service attribute value; the second determining module 13 includes:
a fifth determining unit 133, configured to determine, as the second identification bit, an identification bit that corresponds to the service attribute value and is in an unacquired state in each identification bit of the first identification array if the service attribute value is not greater than the user attribute value;
a sixth determining unit 134, configured to determine, as the target service data, the service data corresponding to the second identification bit in the first service data.
In some possible embodiments, the data processing apparatus 1 further includes:
the data processing module 15 is further configured to change the identification bit corresponding to the target service data from an unacquired state to an acquired state, so as to obtain a second identification array;
the data processing module 15 is further configured to update the state data based on the second identifier array.
In some possible embodiments, the user attribute value is a user rank, the user rank is determined by historical behavior information of the user, and the higher the rank of the user rank is, the larger the number of bits of the first identification bit is.
In some possible embodiments, the first determining module 12 is further configured to:
when a business data query request submitted by the user based on the terminal is received, determining first business data corresponding to the user, and determining state data corresponding to the first business data;
the data sending module 14 is further configured to send the status data to the terminal, so that the terminal determines, based on the second status data, an acquisition status of each service data in the first service data; and/or the presence of a gas in the gas,
and generating state information based on the state data and sending the state information to the terminal, wherein the state information comprises the acquisition state of each service data in the first service data.
In a specific implementation, the data processing apparatus 1 may execute the implementation manners provided in the steps in fig. 3 and fig. 10 through the built-in functional modules, which may specifically refer to the implementation manners provided in the steps, and no further details are described here.
In the embodiment of the invention, the acquisition state of the service data is represented based on the identification array, whether each service data is acquired can be quickly determined, and the determination speed of the acquisition state of the service data can be improved. Secondly, the acquisition state of the target service data required to be acquired by the user can be quickly determined based on the user attribute value, and then the target service data is sent to the terminal when the target service data is in the non-acquisition state, so that the waiting time of the user is reduced, the accuracy of determining the target service data is improved, and the user experience is improved. Meanwhile, the acquisition state of each service data is stored into one state data, and then an identification array which is used for marking the acquisition state of each service data and comprises a plurality of identification bits is obtained based on the state data so as to inquire the acquisition state of the service data and determine the target service data, so that the data storage capacity is greatly reduced, the efficiency of acquiring the target service data by a user is improved, and the applicability is high. Moreover, after the target service data is sent to the terminal, the corresponding state data and the corresponding identification data can be updated, so that the situation that the user repeatedly obtains the same service data is avoided, the user can inquire the obtaining state of any service data at any time through an inquiry mechanism, and the user experience is further improved.
Referring to fig. 14, fig. 14 is a schematic structural diagram of an apparatus provided in an embodiment of the present invention. As shown in fig. 14, the apparatus 1000 in the present embodiment may include: the processor 1001, the network interface 1004, and the memory 1005, and the apparatus 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 14, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the device 1000 shown in fig. 14, the network interface 1004 may provide network communication functions; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
when a service data acquisition request submitted by a user based on a terminal is received, acquiring service identification information and a user identification carried in the service data acquisition request;
determining first service data corresponding to the user based on the service identification information and the user identification, and determining a first identification array corresponding to the first service data, where the first identification array includes multiple identification bits, each identification bit is used to mark an acquisition state of each service data in the first service data, and the acquisition state includes an acquired state and an unacquired state;
acquiring a user attribute value of the user based on the user identifier;
determining a first identification bit from each identification bit of the first identification array based on the user attribute value, and determining target service data from the first service data based on the first identification bit, wherein the acquisition state of the target service data is an unacquired state;
and sending the target service data to the terminal.
In some possible embodiments, the processor 1001 is configured to:
determining state data corresponding to the first service data, and determining the data type of the state data;
processing the state data based on a data processing mode corresponding to the data type to obtain an array with a plurality of identification bits;
and determining the array with a plurality of identification bits as a first identification array corresponding to the first service.
In some possible embodiments, the user attribute value is an integer greater than 0; the processor 1001 is configured to:
determining at least one identification bit corresponding to the user attribute value from the identification bits of the first identification array;
and determining the identification bit with the highest digit in the at least one identification bit as a first identification bit.
In some feasible embodiments, the service data acquisition request carries a service attribute value; the processor 1001 is configured to:
if the service attribute value is not greater than the user attribute value, determining an identification bit which corresponds to the service attribute value and is in an unacquired state in each identification bit of the first identification array as a second identification bit;
and determining the service data corresponding to the second identification bit in the first service data as target service data.
In some possible embodiments, the processor 1001 is further configured to:
changing the identification bit corresponding to the target service data from an unacquired state to an acquired state to obtain a second identification array;
and updating the state data based on the second identification array.
In some possible embodiments, the user attribute value is a user rank, the user rank is determined by historical behavior information of the user, and the higher the rank of the user rank is, the larger the number of bits of the first identification bit is.
In some possible embodiments, the processor 1001 is further configured to:
when a business data query request submitted by the user based on the terminal is received, determining first business data corresponding to the user, and determining state data corresponding to the first business data;
sending the state data to the terminal so that the terminal determines the acquisition state of each service data in the first service data based on the second state data; and/or the presence of a gas in the gas,
and generating state information based on the state data and sending the state information to the terminal, wherein the state information comprises the acquisition state of each service data in the first service data.
It should be understood that in some possible embodiments, the processor 1001 may be a Central Processing Unit (CPU), and the processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory may include both read-only memory and random access memory, and provides instructions and data to the processor. The portion of memory may also include non-volatile random access memory. For example, the memory may also store device type information.
In a specific implementation, the device 1000 may execute, through each built-in functional module thereof, the implementation manners provided in the steps in fig. 3 and fig. 10, which may be referred to specifically for the implementation manners provided in the steps, and are not described herein again.
In the embodiment of the invention, the acquisition state of the service data is represented based on the identification array, whether each service data is acquired can be quickly determined, and the determination speed of the acquisition state of the service data can be improved. Secondly, the acquisition state of the target service data required to be acquired by the user can be quickly determined based on the user attribute value, and then the target service data is sent to the terminal when the target service data is in the non-acquisition state, so that the waiting time of the user is reduced, the accuracy of determining the target service data is improved, and the user experience is improved. Meanwhile, the acquisition state of each service data is stored into one state data, and then an identification array which is used for marking the acquisition state of each service data and comprises a plurality of identification bits is obtained based on the state data so as to inquire the acquisition state of the service data and determine the target service data, so that the data storage capacity is greatly reduced, the efficiency of acquiring the target service data by a user is improved, and the applicability is high. Moreover, after the target service data is sent to the terminal, the corresponding state data and the corresponding identification data can be updated, so that the situation that the user repeatedly obtains the same service data is avoided, the user can inquire the obtaining state of any service data at any time through an inquiry mechanism, and the user experience is further improved.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and is executed by a processor to implement the methods provided in each step in fig. 3 and fig. 10, which may specifically refer to implementation manners provided in each step, and are not described herein again.
The computer readable storage medium may be an internal storage unit of the task processing device provided in any of the foregoing embodiments, for example, a hard disk or a memory of an electronic device. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, which are provided on the electronic device. The computer readable storage medium may further include a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), and the like. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the electronic device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the electronic device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms "first", "second", and the like in the claims, in the description and in the drawings of the present invention are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments. The term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A method of data processing, the method comprising:
when a service data acquisition request submitted by a user based on a terminal is received, acquiring service identification information and a user identification carried in the service data acquisition request;
determining first service data corresponding to the user based on the service identification information and the user identification, and determining a first identification array corresponding to the first service data, where the first identification array includes multiple identification bits, each identification bit is used to mark an acquisition state of each service data in the first service data, and the acquisition state includes an acquired state and an unacquired state;
acquiring a user attribute value of the user based on the user identification;
determining a first identification bit from each identification bit of the first identification array based on the user attribute value, and determining target service data from the first service data based on the first identification bit, wherein the acquisition state of the target service data is an unacquired state;
and sending the target service data to the terminal.
2. The method of claim 1, wherein the determining the first identification array corresponding to the first service data comprises:
determining state data corresponding to the first service data, and determining the data type of the state data;
processing the state data based on a data processing mode corresponding to the data type to obtain an array with a plurality of identification bits;
and determining the array with the plurality of identification bits as a first identification array corresponding to the first service.
3. The method according to claim 1 or 2, wherein the user attribute value is an integer greater than 0; the determining a first identification bit from the identification bits of the first identification array based on the user attribute value includes:
determining at least one identification bit corresponding to the user attribute value from the identification bits of the first identification array;
and determining the identification bit with the highest bit number in the at least one identification bit as a first identification bit.
4. The method according to claim 3, wherein the service data acquisition request carries a service attribute value; the determining target service data from the first service data based on the first identification bit includes:
if the service attribute value is not greater than the user attribute value, determining an identification bit which corresponds to the service attribute value and is in an unacquired state in each identification bit of the first identification array as a second identification bit;
and determining the service data corresponding to the second identification bit in the first service data as target service data.
5. The method of claim 1, wherein after the sending the target service data to the terminal, the method further comprises:
changing the identification bit corresponding to the target service data from an unacquired state to an acquired state to obtain a second identification array;
updating the state data based on the second identification array.
6. The method according to any one of claims 1 to 5, wherein the user attribute value is a user rating, the user rating is determined by historical behavior information of the user, and the higher the rating of the user is, the larger the number of digits of the first identification digit is.
7. The method of claim 1, further comprising:
when a business data query request submitted by the user based on the terminal is received, determining first business data corresponding to the user, and determining state data corresponding to the first business data;
sending the state data to the terminal so that the terminal determines the acquisition state of each service data in the first service data based on the second state data; and/or the presence of a gas in the gas,
and generating state information based on the state data and sending the state information to the terminal, wherein the state information comprises the acquisition state of each service data in the first service data.
8. A data processing apparatus, characterized in that the data processing apparatus comprises:
the information acquisition module is used for acquiring service identification information and user identification carried in a service data acquisition request when the service data acquisition request submitted by a user based on a terminal is received;
a first determining module, configured to determine first service data corresponding to the user based on the service identification information and the user identification, and determine a first identification array corresponding to the first service data, where the first identification array includes multiple identification bits, each identification bit is used to mark an acquisition state of each service data in the first service data, and the acquisition state includes an acquired state and an unacquired state;
the information acquisition module is used for acquiring the user attribute value of the user based on the user identification;
a second determining module, configured to determine a first identification bit from each identification bit of the first identification array based on the user attribute value, and determine target service data from the first service data based on the first identification bit, where an acquisition state of the target service data is an unacquired state;
and the data sending module is used for sending the target service data to the terminal.
9. A device comprising a processor and a memory, the processor and memory interconnected;
the memory for storing a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method of any one of claims 1 to 7.
CN201911304307.XA 2019-12-17 2019-12-17 Data processing method, device, equipment and storage medium Pending CN111026926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911304307.XA CN111026926A (en) 2019-12-17 2019-12-17 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911304307.XA CN111026926A (en) 2019-12-17 2019-12-17 Data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111026926A true CN111026926A (en) 2020-04-17

Family

ID=70210278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911304307.XA Pending CN111026926A (en) 2019-12-17 2019-12-17 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111026926A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614749A (en) * 2020-05-19 2020-09-01 深圳华锐金融技术股份有限公司 Data transmission method, data transmission device, computer equipment and storage medium
CN113238868A (en) * 2021-05-26 2021-08-10 北京达佳互联信息技术有限公司 Task processing method, device, server, equipment, system and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090271209A1 (en) * 2008-03-03 2009-10-29 At&T Intellectual Property I, L.P. System and Method for Tailoring Privacy in Online Social Networks
CN104379225A (en) * 2012-06-25 2015-02-25 科乐美数码娱乐株式会社 Game control device, game control method, program, recording medium and game system
CN104657481A (en) * 2015-02-26 2015-05-27 华为技术有限公司 Data storage method and device and data query method and device
CN106850345A (en) * 2017-01-21 2017-06-13 厦门天锐科技股份有限公司 A kind of monitoring of network user's state and querying method
CN107977856A (en) * 2017-11-13 2018-05-01 广东欧珀移动通信有限公司 User data processing method, device and server
CN109388635A (en) * 2017-08-03 2019-02-26 广东蓝盾移动互联网信息科技有限公司 A kind of data storage method of the multi-value data based on binary system and dictionary table
CN109977124A (en) * 2019-04-08 2019-07-05 深圳乐信软件技术有限公司 A kind of method, system, equipment and the storage medium of data storage

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090271209A1 (en) * 2008-03-03 2009-10-29 At&T Intellectual Property I, L.P. System and Method for Tailoring Privacy in Online Social Networks
CN104379225A (en) * 2012-06-25 2015-02-25 科乐美数码娱乐株式会社 Game control device, game control method, program, recording medium and game system
CN104657481A (en) * 2015-02-26 2015-05-27 华为技术有限公司 Data storage method and device and data query method and device
CN106850345A (en) * 2017-01-21 2017-06-13 厦门天锐科技股份有限公司 A kind of monitoring of network user's state and querying method
CN109388635A (en) * 2017-08-03 2019-02-26 广东蓝盾移动互联网信息科技有限公司 A kind of data storage method of the multi-value data based on binary system and dictionary table
CN107977856A (en) * 2017-11-13 2018-05-01 广东欧珀移动通信有限公司 User data processing method, device and server
CN109977124A (en) * 2019-04-08 2019-07-05 深圳乐信软件技术有限公司 A kind of method, system, equipment and the storage medium of data storage

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614749A (en) * 2020-05-19 2020-09-01 深圳华锐金融技术股份有限公司 Data transmission method, data transmission device, computer equipment and storage medium
CN113238868A (en) * 2021-05-26 2021-08-10 北京达佳互联信息技术有限公司 Task processing method, device, server, equipment, system and storage medium
CN113238868B (en) * 2021-05-26 2024-01-30 北京达佳互联信息技术有限公司 Task processing method, device, server, equipment, system and storage medium

Similar Documents

Publication Publication Date Title
CN100507907C (en) Methods and apparatus for content protection in a wireless network
US10387856B2 (en) Online payment method, system, and apparatus
JP5399553B2 (en) Method, apparatus and computer program product for invoking an application service for local communication
US8495617B2 (en) Interworking system between user terminal and smart card for executing widget, and method thereof
KR100697174B1 (en) Local and remote access to radio parametric and regulatory data and methods therefor
CN110473104B (en) Transaction processing method and related equipment
CN105357204B (en) Method and device for generating terminal identification information
CN111277635B (en) Method, equipment, device and computer medium for accessing external node to block chain
CN104364779B (en) Service provider system, service computer and terminal
CN110516471B (en) Product promotion method based on information security and related equipment
KR100983240B1 (en) The method for installing application program in cellphone simply and the system thereof
CN111026926A (en) Data processing method, device, equipment and storage medium
CN111259049A (en) Information query method, information query device and terminal equipment
CN112784112A (en) Message checking method and device
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN111176685A (en) Upgrading method and device
US20040122877A1 (en) Permission token managemnet system, permission token management method, program and recording medium
CN114402286A (en) File processing method, file processing device and terminal equipment
CN111371941A (en) Method and device for preventing harassing call, terminal and storage medium
CN111367634A (en) Information processing method, information processing device and terminal equipment
KR101418038B1 (en) Method and apparatus for providing web contents
CN112235784B (en) vSIM-based code number management method, device and equipment
CN108881496B (en) Download management method of application program, telephone watch and mobile phone terminal
CN112783539A (en) Application updating method, system, terminal device and storage medium
KR101265630B1 (en) Mobile terminal and Method for transmitting group message in thereof

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