Search

CN-122024347-A - Sign-in processing method, device, equipment, medium and program product

CN122024347ACN 122024347 ACN122024347 ACN 122024347ACN-122024347-A

Abstract

The present application relates to a check-in processing method, apparatus, device, medium and program product. The method comprises the steps of responding to a user check-in request initiated by a target user for a target check-in task through an interface layer, determining the validity of the user check-in request according to user information of the target user, task attribute information of the target check-in task and a user check-in identification set in a first cache, generating a user check-in record of the target user according to the user information and the task identification information of the target check-in task under the condition that the user check-in request is valid through the interface layer, pushing the user check-in record of the target user into a message queue, and determining a task completion result of the target user for the target check-in task according to the user check-in record of the target user and a historical check-in record in a check-in database after consuming the user check-in record of the target user in the message queue through a data processing layer. By adopting the method, the processing efficiency of the sign-in task can be improved.

Inventors

  • Lin Mouquan
  • Xie Chuncai

Assignees

  • 深圳小鹅网络技术有限公司

Dates

Publication Date
20260512
Application Date
20260126

Claims (10)

  1. 1. A check-in processing method, the method comprising: Responding to a user sign-in request for a target sign-in task initiated by a target user through an interface layer, and determining the validity of the user sign-in request according to user information of the target user, task attribute information of the target sign-in task and a user sign-in identification set in a first cache corresponding to a sign-in interface for receiving the user sign-in request; generating a user sign-in record of the target user according to the user information and the task identification information of the target sign-in task under the condition that the user sign-in request is effective through the interface layer, and pushing the user sign-in record of the target user into a message queue; and after consuming the user check-in record of the target user in the message queue through a data processing layer, determining a task completion result of the target user for the target check-in task according to the user check-in record of the target user and the historical check-in record in a check-in database.
  2. 2. The method according to claim 1, wherein the determining the validity of the user check-in request according to the user information of the target user, the task attribute information of the target check-in task, and the user check-in identifier set in the first cache corresponding to the check-in interface that receives the user check-in request includes: Determining a task effective period of the target check-in task according to the task attribute information of the target check-in task; under the condition that the current date is in the task effective period, determining whether the target user signs in repeatedly according to the user information of the target user and a user sign-in identification set in a first cache corresponding to a sign-in interface for receiving the user sign-in request; and under the condition that the target user is determined not to repeatedly check in, determining that the user check-in request is valid.
  3. 3. The method of claim 1, wherein pushing the user check-in record of the target user into a message queue comprises: writing the user information of the target user into a user sign-in identification set in the first cache, writing the user sign-in record of the target user into a target record set in the first cache, and Pushing the user check-in records in the target record set to a check-in database message queue, wherein the target record set comprises the user check-in records of checked-in users associated with the target check-in task.
  4. 4. The method of claim 1, wherein the determining the task completion result of the target user for the target check-in task based on the user check-in record of the target user and the historical check-in record in the check-in database comprises: Generating a target sign-in identifier according to the user sign-in record of the target user; And under the condition that the target sign-in identifier does not exist in a second buffer memory corresponding to the sign-in database, determining a task completion result of the target user for the target sign-in task according to task attribute information of the target sign-in task and a historical sign-in record in the sign-in database, wherein the second buffer memory is cached with the sign-in identifier corresponding to the valid sign-in record of the round.
  5. 5. The method according to claim 4, wherein the determining the task completion result of the target user for the target check-in task according to the task attribute information of the target check-in task and the historical check-in record in the check-in database includes: Determining standard sign-in times of the target sign-in task according to task attribute information of the target sign-in task; Under the condition that the standard signing-in times are at least twice, determining the signing-in times of the target user for the target signing-in task according to the user information of the target user, the task identification information of the target signing-in task and the historical signing-in record in the signing-in database; Updating the checked-in times, and determining a task completion result of the target user for the target check-in task according to the standard check-in times and the updated checked-in times.
  6. 6. The method according to claim 5, wherein determining the task completion result of the target user for the check-in task according to the standard check-in number and the updated checked-in number comprises: under the condition that the standard signing times are consistent with the updated signing times, determining that the task completion result of the target user aiming at the target signing task is that the signing task is completed; And under the condition that the standard check-in times are inconsistent with the updated check-in times, determining that the task completion result of the target user aiming at the target check-in task is that the check-in task is not completed.
  7. 7. A check-in processing device, the device comprising: The check-in verification module is used for responding to a user check-in request for a target check-in task initiated by a target user through an interface layer, and determining the validity of the user check-in request according to the user information of the target user, the task attribute information of the target check-in task and a user check-in identification set in a first cache corresponding to a check-in interface for receiving the user check-in request; The record processing module is used for generating a user check-in record of the target user according to the user information and the task identification information of the target check-in task under the condition that the user check-in request is effective through the interface layer, and pushing the user check-in record of the target user into a message queue; And the result determining module is used for determining the task completion result of the target user aiming at the target check-in task according to the user check-in record of the target user and the historical check-in record in the check-in database after consuming the user check-in record of the target user in the message queue through the data processing layer.
  8. 8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
  9. 9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
  10. 10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.

Description

Sign-in processing method, device, equipment, medium and program product Technical Field The present application relates to the field of computer technologies, and in particular, to a check-in processing method, apparatus, device, medium, and program product. Background With the continuous development of the computer field, various applications generally initiate a check-in task to encourage users to use in order to increase the viscosity of the users. In the existing sign-in task processing method, after receiving a user sign-in request, the validity of the user sign-in request is verified according to a historical sign-in record, so that a task completion result is obtained. However, in a high concurrency scenario, by adopting the method, the check-in record of the user is checked in the data processing layer, and the check-in result of the user is determined, so that the calculation performance bottleneck is easy to occur, and the efficiency of the check-in task processing is reduced. Disclosure of Invention In view of the foregoing, it is desirable to provide a check-in processing method, apparatus, device, medium, and program product that can improve the efficiency of check-in task processing. In a first aspect, the present application provides a sign-in processing method, including: Responding to a user sign-in request for a target sign-in task initiated by a target user through an interface layer, and determining the validity of the user sign-in request according to user information of the target user, task attribute information of the target sign-in task and a user sign-in identification set in a first cache corresponding to a sign-in interface for receiving the user sign-in request; Generating a user sign-in record of the target user according to the user information and task identification information of the target sign-in task under the condition that the user sign-in request is effective through an interface layer, and pushing the user sign-in record of the target user into a message queue; And after the user check-in record of the target user in the consumption message queue is processed through the data processing layer, determining a task completion result of the target user for the target check-in task according to the user check-in record of the target user and the historical check-in record in the check-in database. In one embodiment, determining the validity of the user check-in request according to the user information of the target user, the task attribute information of the target check-in task, and the user check-in identifier set in the first cache corresponding to the check-in interface that receives the user check-in request includes: determining a task effective period of the target sign-in task according to task attribute information of the target sign-in task; Under the condition that the current date is in the task effective period, determining whether the target user signs in repeatedly according to the user information of the target user and a user sign-in identification set in a first cache corresponding to a sign-in interface for receiving a user sign-in request; and under the condition that the target user is determined not to repeatedly check in, determining that the user check-in request is valid. In one embodiment, pushing the user check-in record of the target user to the message queue includes: writing the user information of the target user into a user sign-in identification set in the first cache, writing the user sign-in record of the target user into a target record set in the first cache, and And pushing the user check-in records in the target record set to a check-in database message queue, wherein the target record set comprises user check-in records of checked-in users associated with the target check-in task. In one embodiment, determining a task completion result of the target user for the target check-in task according to the user check-in record of the target user and the historical check-in record in the check-in database includes: generating a target sign-in identifier according to a user sign-in record of the target user; And under the condition that the target sign-in identifier does not exist in a second buffer memory corresponding to the sign-in database, determining a task completion result of the target user for the target sign-in task according to task attribute information of the target sign-in task and a historical sign-in record in the sign-in database, wherein the second buffer memory is cached with the sign-in identifier corresponding to the valid sign-in record of the round. In one embodiment, determining a task completion result of the target user for the target check-in task according to task attribute information of the target check-in task and a historical check-in record in a check-in database includes: Determining standard sign-in times of the target sign-in task according to task attribute information of the target sign-in task; Under