CN114493672A - Virtual article issuing method and system - Google Patents

Virtual article issuing method and system Download PDF

Info

Publication number
CN114493672A
CN114493672A CN202111658446.XA CN202111658446A CN114493672A CN 114493672 A CN114493672 A CN 114493672A CN 202111658446 A CN202111658446 A CN 202111658446A CN 114493672 A CN114493672 A CN 114493672A
Authority
CN
China
Prior art keywords
issuing
article
task order
target task
module
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
CN202111658446.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.)
Guangzhou Quwan Network Technology Co Ltd
Original Assignee
Guangzhou Quwan Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Quwan Network Technology Co Ltd filed Critical Guangzhou Quwan Network Technology Co Ltd
Priority to CN202111658446.XA priority Critical patent/CN114493672A/en
Publication of CN114493672A publication Critical patent/CN114493672A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0715Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a system implementing multitasking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Software Systems (AREA)
  • Development Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Biomedical Technology (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a system for issuing virtual articles, wherein the method comprises the following steps: the article issuing module acquires at least one unexecuted target task order from a message system accessed to the article issuing module; the article issuing module executes article issuing operation matched with each target task order; the article issuing module detects whether the article issuing operation matched with each target task order is executed or not according to each target task order; and the object issuing module is used for modifying the execution state of each target task order from the non-execution state to the execution state when the object issuing operation matched with the target task order is executed. Therefore, the execution state of the task order can be recorded, the situations that the virtual articles are missed to be issued or the virtual articles are repeatedly issued are reduced, the accuracy and the reliability of issuing the virtual articles are improved, and the use experience of a user is further improved.

Description

Virtual article issuing method and system
Technical Field
The invention relates to the technical field of computer communication, in particular to a virtual article issuing method and system.
Background
With the development of computer and network technologies, there are currently a large number of applications with built-in virtual article issuing functions, and when a user meets preset conditions of the applications through related operations on the applications, a server of the applications needs to issue virtual articles, such as game rewards, corresponding to the user to a user account corresponding to the user in time.
At present, all users meeting preset conditions are screened in batches, and virtual articles of each user are sequentially sent to a user account corresponding to the user to realize the sending of the virtual articles. However, practice shows that when a large number of virtual articles of users are distributed, severe congestion of the server is caused, which results in failure of distribution of virtual articles of some users, and that when the network connection of the user side or the server is not smooth, the failure of distribution of virtual articles of some users is also caused, which further reduces the user experience. Therefore, how to improve the reliability of virtual article distribution and further improve the use experience of the user is very important.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a system for issuing virtual articles, which can reduce the occurrence of failure in issuing virtual articles, and is beneficial to improving the reliability of issuing virtual articles, so as to improve the user experience.
In order to solve the above technical problem, a first aspect of the present invention discloses a method for issuing a virtual article, including:
the article issuing module acquires at least one unexecuted target task order from a message system accessed to the article issuing module;
the article issuing module executes article issuing operation matched with each target task order;
the article issuing module detects whether the article issuing operation matched with the target task order is executed or not according to each target task order;
and the object issuing module is used for modifying the execution state of the object task order from the non-execution state to the execution state when the object issuing operation matched with the object task order is executed.
As an alternative implementation, in the first aspect of the present invention, the method further includes:
when an article issuing instruction triggered by a user is received, an issuing calling module initiates a calling request corresponding to the article issuing instruction to an article issuing module;
when receiving the call request initiated by the release call module, the article release module generates a task order corresponding to the call request, wherein the execution state of the task order corresponding to the call request is an unexecuted state;
the article issuing module sends feedback information corresponding to the calling request to the issuing calling module, wherein the feedback information is used for indicating that the article issuing module receives the calling request and executes an issuing task corresponding to the calling request;
and the article issuing module writes the task order corresponding to the calling request into a message system accessed to the article issuing module.
As an optional implementation manner, in the first aspect of the present invention, after the issuing invoking module initiates the invoking request corresponding to the article issuing instruction to the article issuing module, before the article issuing module generates the task order corresponding to the invoking request, the method further includes:
the issuing and calling module detects whether the calling request is successfully initiated;
when the initiation of the calling request fails, the issuing calling module detects whether the initiation times of the calling request of the current round corresponding to the article issuing instruction are larger than or equal to the determined threshold times;
when the initiation times of the calling request in the current round are smaller than the threshold times, the issuing calling module re-executes the operation of initiating the calling request corresponding to the article issuing instruction to the article issuing module.
As an alternative implementation, in the first aspect of the present invention, the method further includes:
when the number of times of initiating the calling request in the current round is more than or equal to the threshold number of times, the issuing calling module stores the instruction information corresponding to the article issuing instruction to a temporary storage space corresponding to the issuing calling module;
the issuing and calling module determines an initiating failure factor corresponding to the calling request;
the issuing and calling module judges whether the interval duration between the moment of initiating the calling request at the last time and the current moment is greater than or equal to a preset duration or not;
when the judgment result is yes, the issuing and calling module detects whether the initiating failure factor is solved;
and when the detection result is yes, the issuing and calling module acquires the instruction information from the temporary storage space, and re-executes the operation of initiating the calling request corresponding to the article issuing instruction to the article issuing module according to the instruction information.
As an optional implementation manner, in the first aspect of the present invention, the acquiring, by the article issuance module, at least one unexecuted target task order from a message system accessing to the article issuance module includes:
the article issuing module determines the number of idle threads in a virtual article issuing pool, wherein the idle threads comprise threads which are not used for executing any article issuing operation in the virtual article issuing pool;
when the thread number is more than or equal to 1, the article issuing module determines the execution state of a first task order in an information system accessed to the article issuing module, wherein the first task order is a first task order arranged in an order queue of the information system;
when the execution state of the first task order is an executed state, the article issuing module deletes the first task order from the message queue and re-executes the operation of determining the execution state of the first task order of the message system;
when the execution state of the first task order is an unexecuted state, the article issuing module determines the first task order as a target task order and deletes the first task order from the message queue; and the article issuing module judges whether the total quantity of all the determined target task orders is matched with the thread quantity, and when the judgment result is negative, the operation of determining the execution state of the first task order of the message system is executed again.
As an optional implementation manner, in the first aspect of the present invention, the article issuing module performs an article issuing operation matched to each target task order, including:
the article issuing module allocates an idle thread matched with the target task order to each target task order;
the article issuing module determines an issuing object corresponding to each target task order and a virtual article to be issued corresponding to the target task order according to each target task order;
the article issuing module issues the virtual article to be issued corresponding to the target task order to an account of an issuing object corresponding to the target task order based on an idle thread corresponding to the target task order for each target task order;
and the article issuing module detects whether the article issuing operation matched with the target task order is executed or not according to each target task order, and the method comprises the following steps:
and the article issuing module detects whether article received information fed back by an issuing object corresponding to each target task order is received or not according to each target task order, and determines that the article issuing operation matched with the target task order is finished when the detection result is yes.
As an optional implementation manner, in the first aspect of the present invention, the issuing, by the article issuing module, for each target task order, based on an idle thread corresponding to the target task order, the issuing, to an account of an issue object corresponding to the target task order, of a virtual article to be issued corresponding to the target task order includes:
the article issuing module judges whether the virtual article to be issued corresponding to the target task order is a limited article or not according to each target task order, and judges whether the remaining issuable quantity corresponding to the target task order is 0 or not when the virtual article to be issued corresponding to the target task order is the limited article, wherein the remaining issuable quantity corresponding to the target task order is the difference value between the limited issued quantity and the issued quantity corresponding to the virtual article to be issued corresponding to the target task order; when the remaining issuable quantity corresponding to the target task order is not 0, judging whether the to-be-issued quantity corresponding to the target task order is smaller than the remaining issuable quantity corresponding to the target task order; when the to-be-released quantity corresponding to the target task order is less than or equal to the remaining releasable quantity corresponding to the target task order, releasing to-be-released virtual articles corresponding to the target task order in the to-be-released quantity corresponding to the target task order to an account of a release object corresponding to the target task order; and when the to-be-released quantity corresponding to the target task order is larger than the remaining releasable quantity corresponding to the target task order, releasing the to-be-released virtual articles corresponding to the target task order with the remaining releasable quantity corresponding to the target task order into an account of a release object corresponding to the target task order.
The invention discloses a virtual article issuing system in a second aspect, which at least comprises an article issuing module;
wherein the article dispensing module comprises:
the first acquisition submodule is used for acquiring at least one unexecuted target task order from a message system accessed to the article issuing module;
the issuing submodule is used for executing the article issuing operation matched with each target task order;
the first detection sub-module is used for detecting whether the object issuing operation matched with the target task order is executed or not according to each target task order;
and the state modification submodule is used for modifying the execution state of each target task order from the unexecuted state to the executed state when the object issuing operation matched with the target task order is executed.
As an optional implementation manner, in the second aspect of the present invention, the system further includes an issue calling module;
wherein, the issuing and calling module comprises:
the calling initiating submodule is used for initiating a calling request corresponding to the article issuing instruction to the article issuing module when receiving the article issuing instruction triggered by a user;
and, the article dispensing module further comprises:
the generating submodule is used for generating a task order corresponding to the calling request when the calling request initiated by the issuing calling module is received, wherein the execution state of the task order corresponding to the calling request is an unexecuted state;
the communication submodule is used for sending feedback information corresponding to the calling request to the issuing calling module, and the feedback information is used for indicating that the article issuing module receives the calling request and executing an issuing task corresponding to the calling request;
and the writing sub-module is used for writing the task order corresponding to the calling request into a message system accessed to the article issuing module.
As an optional implementation manner, in the second aspect of the present invention, the issue calling module further includes:
the second detection submodule is used for detecting whether the calling request is successfully initiated or not after the calling initiation submodule initiates the calling request corresponding to the article issuing instruction to the article issuing module; when the initiation of the calling request fails, detecting whether the initiation times of the calling request of the current round corresponding to the article issuing instruction are larger than or equal to the determined threshold times; and when the initiation times of the current round of call requests are smaller than the threshold times, triggering the call initiation sub-module to re-execute the operation of initiating the call request corresponding to the article issuing instruction to the article issuing module.
As an optional implementation manner, in the second aspect of the present invention, the issue calling module further includes:
the storage sub-module is used for storing the instruction information corresponding to the article issuing instruction to the temporary storage space corresponding to the issuing and calling module when the second detection sub-module detects that the number of times of initiating the current round of calling requests is greater than or equal to the threshold number of times;
the determining submodule is used for determining an initiation failure factor corresponding to the calling request;
the second detection submodule is also used for detecting whether the interval duration between the moment of initiating the call request at the last time and the current moment is greater than or equal to the preset duration; when the interval duration is greater than or equal to the preset duration, detecting whether the initiating failure factor is solved;
and the second obtaining sub-module is used for obtaining the instruction information from the temporary storage space and triggering the call initiating sub-module to re-execute the operation of initiating the call request corresponding to the article issuing instruction to the article issuing module according to the instruction information when the detection result of the second detecting sub-module shows that the initiating failure factor is solved completely.
As an optional implementation manner, in the second aspect of the present invention, a specific manner of acquiring, by the first acquiring sub-module, the at least one unexecuted target task order from the message system accessing the article issuing module includes:
determining the number of idle threads in a virtual article issuing pool, wherein the idle threads comprise threads which are not used for executing any article issuing operation in the virtual article issuing pool;
when the number of the threads is more than or equal to 1, determining the execution state of a first task order in a message system accessed to the article issuing module, wherein the first task order is a first task order in an order queue of the message system;
when the execution state of the first task order is an executed state, deleting the first task order from the message queue, and re-executing the operation for determining the execution state of the first task order of the message system;
when the execution state of the first task order is an unexecuted state, determining the first task order as a target task order, and deleting the first task order from the message queue; and the article issuing module judges whether the total quantity of all the determined target task orders is matched with the thread quantity, and when the judgment result is negative, the operation of determining the execution state of the first task order of the message system is executed again.
As an optional implementation manner, in the second aspect of the present invention, a specific manner of performing, by the issuing sub-module, an article issuing operation matched with each target task order includes:
distributing an idle thread matched with the target task order to each target task order;
according to each target task order, determining a release object corresponding to the target task order and a to-be-released virtual article corresponding to the target task order;
aiming at each target task order, based on an idle thread corresponding to the target task order, issuing the virtual article to be issued corresponding to the target task order to an account of an issuing object corresponding to the target task order;
and the specific way that the first detection sub-module detects whether the execution of the article issuing operation matched with each target task order is finished comprises the following specific ways:
and detecting whether the received information of the article fed back by the issuing object corresponding to the target task order is received or not aiming at each target task order, and determining that the article issuing operation matched with the target task order is executed completely when the detection result is yes.
As an optional implementation manner, in the second aspect of the present invention, a specific manner in which, for each target task order, the issuing sub-module issues, based on an idle thread corresponding to the target task order, a to-be-issued virtual article corresponding to the target task order to an account of an issuing object corresponding to the target task order includes:
judging whether the virtual article to be released corresponding to the target task order is a limited article or not according to each target task order, and judging whether the residual releasable quantity corresponding to the target task order is 0 or not when the virtual article to be released corresponding to the target task order is the limited article, wherein the residual releasable quantity corresponding to the target task order is the difference value between the limited released quantity corresponding to the virtual article to be released corresponding to the target task order and the released quantity; when the remaining issuable quantity corresponding to the target task order is not 0, judging whether the to-be-issued quantity corresponding to the target task order is smaller than the remaining issuable quantity corresponding to the target task order; when the to-be-released quantity corresponding to the target task order is less than or equal to the remaining releasable quantity corresponding to the target task order, releasing to-be-released virtual articles corresponding to the target task order in the to-be-released quantity corresponding to the target task order to an account of a release object corresponding to the target task order; and when the to-be-released quantity corresponding to the target task order is larger than the remaining releasable quantity corresponding to the target task order, releasing the to-be-released virtual articles corresponding to the target task order with the remaining releasable quantity corresponding to the target task order into an account of a release object corresponding to the target task order.
In a third aspect, the present invention discloses another virtual article issuing system, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the virtual article issuing method disclosed by the first aspect of the invention.
The fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions, and when the computer instructions are called, the computer storage medium is used for executing the issuing method of the virtual article disclosed in the first aspect of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, an article issuing module acquires at least one unexecuted target task order from a message system accessed to the article issuing module; the article issuing module executes article issuing operation matched with each target task order; the article issuing module detects whether the article issuing operation matched with each target task order is executed or not according to each target task order; and the object issuing module is used for modifying the execution state of each target task order from the non-execution state to the execution state when the object issuing operation matched with the target task order is executed. Therefore, the execution state of the task order can be recorded, and the execution state of the task order is modified into the executed state when the completion of the execution of the article issuing operation corresponding to the task order is ensured, so that the virtual article which is failed to be issued is conveniently reissued, the occurrence of the situation that the virtual article is missed to be issued or the virtual article is repeatedly issued is reduced, the accuracy and the reliability of issuing the virtual article are improved, and the use experience of a user 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 description of the embodiments will be briefly introduced 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 to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for issuing a virtual article according to an embodiment of the present invention;
FIG. 2 is a flow chart of another virtual article issuing method disclosed in the embodiment of the invention;
FIG. 3 is a schematic structural diagram of a virtual article issuing system according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another virtual article issuing system disclosed in the embodiment of the invention;
fig. 5 is a schematic structural diagram of another virtual article issuing system disclosed in the embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings 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 article 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 article.
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 invention discloses a virtual article issuing method and a virtual article issuing system, which can record the execution state of a task order, and modify the execution state of the task order into the executed state when the completion of the execution of an article issuing operation corresponding to the task order is ensured, so that virtual articles which are failed to be issued can be conveniently reissued, the occurrence of virtual article missing issue or virtual article repeated issue is reduced, the accuracy and reliability of virtual article issuing are improved, and the use experience of a user is further improved. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for issuing a virtual article according to an embodiment of the present invention. The method for issuing a virtual item described in fig. 1 may be applied to any cloud server or local server that needs to issue a virtual item, such as a game server, and the embodiment of the present invention is not limited thereto. As shown in fig. 1, the issuing method of the virtual article may include the following operations:
101. the article issuance module obtains the at least one target task order that was not executed from the messaging system that accesses the article issuance module.
In this embodiment of the present invention, the message system may be a built-in message system of the article issuing module, or may be an external message system of the article issuing module, which is not limited in this embodiment of the present invention. Optionally, the message system may include a plurality of message libraries, the article issuance module corresponds to at least one message library in the message system, and the unexecuted target task order is stored in the message library corresponding to the article issuance module, where the unexecuted target task order indicates that the article issuance operation corresponding to the target task order is not yet executed. Preferably, the messaging system may comprise a distributed publish-subscribe messaging system, such as the kafka system.
As an alternative embodiment, the obtaining, by the article issuance module, the unexecuted at least one target task order from the message system accessing the article issuance module may include:
the article issuing module determines the number of idle threads in the virtual article issuing pool, wherein the idle threads comprise threads which are not used for executing any article issuing operation in the current virtual article issuing pool;
when the number of the threads is more than or equal to 1, the article issuing module determines the execution state of a first task order in an information system accessed to the article issuing module, wherein the first task order is a first task order in an order queue of the information system;
when the execution state of the first task order is the executed state, the article issuing module deletes the first task order from the message queue and executes the operation for determining the execution state of the first task order of the message system again;
when the execution state of the first task order is an unexecuted state, the article issuing module determines the first task order as a target task order and deletes the first task order from the message queue; and the article issuing module judges whether the total number of all the determined target task orders is matched with the number of the threads, and when the judgment result is negative, the operation for determining the execution state of the first task order of the message system is executed again.
Therefore, by implementing the optional implementation mode, task orders with a front ranking can be processed preferentially, the situations of missing sending of virtual articles or delayed sending of virtual articles caused by disordered processing sequences are reduced, the number of task orders which are processed simultaneously is limited according to the number of idle threads, the situations of system congestion or system crash can be reduced, the reliability and the safety of virtual article sending are improved, unnecessary storage occupation can be reduced by deleting executed task orders, the efficiency of screening the unexecuted task orders is improved, and the virtual article sending efficiency is improved.
102. And the article issuing module executes article issuing operation matched with each target task order.
In the embodiment of the present invention, the article issuing module may execute article issuing operations matched with a plurality of target task orders simultaneously, or may execute article issuing operations matched with target task orders one by one, which is not limited in the embodiment of the present invention. Preferably, when the article issuing module synchronously executes article issuing operations matched with a plurality of target task orders, the number of target task orders that the article issuing module can synchronously execute may be dynamically increased or dynamically decreased according to actual needs.
As an alternative embodiment, the article issuing module performing the article issuing operation matched with each target task order may include:
the article issuing module allocates an idle thread matched with each target task order to each target task order;
the article issuing module determines an issuing object corresponding to each target task order and a virtual article to be issued corresponding to the target task order according to each target task order;
and the article issuing module issues the virtual article to be issued corresponding to the target task order to an account of an issuing object corresponding to the target task order based on an idle thread corresponding to the target task order for each target task order.
Therefore, by implementing the optional embodiment, idle threads can be used for processing issuing tasks corresponding to a plurality of task orders in parallel, the phenomenon that the server is jammed due to excessive accumulation of the to-be-processed task orders is reduced, and the efficiency and the reliability of issuing virtual articles are improved.
In this optional implementation manner, optionally, for each target task order, the article issuing module issues the to-be-issued virtual article corresponding to the target task order to the account of the issue object corresponding to the target task order based on the idle thread corresponding to the target task order, which may include:
the article issuing module judges whether the virtual article to be issued corresponding to the target task order is a limited article or not according to each target task order, and judges whether the remaining issuable quantity corresponding to the target task order is 0 or not when the virtual article to be issued corresponding to the target task order is the limited article, wherein the remaining issuable quantity corresponding to the target task order is the difference value between the limited issuing quantity and the issued quantity corresponding to the virtual article to be issued corresponding to the target task order; when the remaining issuable quantity corresponding to the target task order is not 0, judging whether the to-be-issued quantity corresponding to the target task order is smaller than the remaining issuable quantity corresponding to the target task order; when the to-be-released quantity corresponding to the target task order is less than or equal to the remaining releasable quantity corresponding to the target task order, releasing to-be-released virtual articles corresponding to the target task order in the to-be-released quantity corresponding to the target task order to an account of a release object corresponding to the target task order; and when the to-be-released quantity corresponding to the target task order is larger than the remaining releasable quantity corresponding to the target task order, releasing the to-be-released virtual articles corresponding to the target task order with the remaining releasable quantity corresponding to the target task order into an account of a release object corresponding to the target task order.
Therefore, the optional implementation mode can also reduce the situation that the total number of the dispensed virtual articles exceeds the limit value, and improve the accuracy and reliability of virtual article dispensing.
103. And the article issuing module detects whether the article issuing operation matched with the target task order is executed or not according to each target task order.
In the embodiment of the present invention, optionally, each target task order is generated, and the execution state of the target task order is monitored by the state monitoring sub-module corresponding to the article issuing module until the article issuing module detects that the article issuing operation matched with the target task order is executed.
As an optional implementation manner, the detecting, by the article issuing module, for each target task order, whether the article issuing operation matched with the target task order is completed or not may include:
and the article issuing module detects whether article received information fed back by an issuing object corresponding to each target task order is received or not according to each target task order, and determines that the article issuing operation matched with the target task order is finished when the detection result is yes.
Therefore, whether the virtual article is successfully issued or not can be detected by interacting with the issuing object in the optional implementation mode, the accuracy and the reliability of detecting whether the virtual article is successfully issued or not are improved, the occurrence of the condition that the virtual article is missed or repeatedly issued is favorably reduced, and the accuracy and the reliability of issuing the virtual article are improved.
104. And the object issuing module is used for modifying the execution state of each target task order from the non-execution state to the execution state when the object issuing operation matched with the target task order is executed.
Therefore, by implementing the embodiment of the invention, the execution state of the task order can be recorded, and the execution state of the task order is modified into the executed state when the completion of the execution of the article issuing operation corresponding to the task order is ensured, so that the virtual article which is failed to be issued can be conveniently reissued, the occurrence of the situation that the virtual article is missed to be issued or the virtual article is repeatedly issued is reduced, the accuracy and the reliability of issuing the virtual article are improved, and the use experience of a user is further improved.
In an optional embodiment, the method may further comprise:
and aiming at each target task order, when detecting that the article issuing operation matched with the target task order is not completely executed, determining an order mark corresponding to the target task order, judging whether a task order matched with the order mark exists in the message system, and writing the target task order into the message system when the judgment result is negative.
Therefore, by implementing the optional embodiment, the task order can be rewritten into the message system when the task order is not completely executed and the message system does not have the task order, so that the occurrence of missed issuing or repeated issuing of the virtual article is reduced, the accuracy and reliability of virtual article issuing are improved, and the use experience of the user is improved.
In another optional embodiment, the method may further comprise:
the article issuing module detects whether an abnormal task order with a corresponding execution state as an unexecuted state and execution times not less than threshold times exists in the message system;
when the detection result is yes, the article issuing module analyzes an issuing process corresponding to each issuing operation aiming at the abnormal task order to obtain an issuing failure reason corresponding to each issuing operation;
judging whether the corresponding issuing failure reasons of each issuing operation are the same;
when the judgment result is yes, determining the issuing failure reason corresponding to any issuing operation as the execution failure reason corresponding to the abnormal task order;
when the judgment result is negative, determining the reason of the largest number of issuing failure in the reasons of issuing failure corresponding to all issuing operations as the reason of executing failure corresponding to the abnormal task order;
when the execution failure reason is related to the article issuing module, determining a failure sub-module corresponding to the article issuing module according to the execution failure reason, and repairing the failure sub-module based on the related parameters corresponding to the abnormal task order;
and when the execution failure reason is related to the release object corresponding to the abnormal task order, outputting the execution failure reason to the release object corresponding to the abnormal task order.
Therefore, the optional embodiment can be implemented to execute the matched operation according to the failure reason when the number of times of the failure of the task order issuance is excessive, so that the time consumed by the excessive number of times of the invalid execution of the task order is saved, and the issuing efficiency and the issuing accuracy of the virtual article are improved.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another virtual article issuing method according to an embodiment of the present invention. The method for issuing a virtual item described in fig. 2 may be applied to any cloud server or local server that needs to issue a virtual item, such as a game server, and the embodiment of the present invention is not limited thereto. As shown in fig. 2, the issuing method of the virtual article may include the following operations:
201. the issuing calling module receives an article issuing instruction triggered by a user.
In the embodiment of the present invention, the issuing and calling module may correspond to one article issuing module or to a plurality of article issuing modules, and the article issuing module may correspond to one more issuing and calling module or to a plurality of issuing and calling modules, and the article issuing module and the issuing and calling module may belong to the same system or may belong to different systems, which is not limited in the embodiment of the present invention. The article issuing instruction may be actively triggered by a user, for example, the user actively triggers the article issuing instruction by claiming a virtual article, or may be passively triggered by the user, for example, when a registration age of the user on the platform meets a preset age condition, the article issuing instruction is automatically triggered, which is not limited in the embodiment of the present invention. It should be noted that, in other embodiments, the article issuing instruction may not be triggered by the user, for example, a backend manager may trigger the article issuing instruction corresponding to the user.
202. The issuing calling module sends a calling request corresponding to the article issuing instruction to the article issuing module.
The calling request corresponding to the article issuing instruction is used for requesting the article issuing module to execute the article issuing operation corresponding to the article issuing instruction. The issuing calling module may immediately initiate a calling request corresponding to the article issuing instruction to the article issuing module when receiving the article issuing instruction triggered by the user, or may initiate calling requests corresponding to all article issuing instructions received within a period of time to the article issuing module at intervals according to a preset calling frequency, which is not limited in the embodiment of the present invention.
203. When receiving a call request initiated by a release call module, the article release module generates a task order corresponding to the call request, wherein the execution state of the task order corresponding to the call request is an unexecuted state.
In the embodiment of the present invention, the order information of the task order corresponding to the call request at least includes a virtual article to be issued and an issuing object corresponding to the call request, where the virtual article to be issued may correspond to a real article, such as electronic money, or may not correspond to the real article, such as game credits.
204. And the article issuing module sends feedback information corresponding to the calling request to the issuing calling module, wherein the feedback information is used for indicating that the article issuing module receives the calling request and executes an issuing task corresponding to the calling request.
205. And the article issuing module writes the task order corresponding to the calling request into a message system accessed to the article issuing module.
In the embodiment of the present invention, the article issuing module may determine, according to the parameter corresponding to the call request, an arrangement order of the task order corresponding to the call request in the message system, where the parameter corresponding to the call request may include a time parameter, a weight parameter, and the like, and the embodiment of the present invention is not limited.
As an optional implementation manner, the writing, by the article issuing module, the task order corresponding to the call request into the message system accessing the article issuing module includes:
the article issuing module determines an issuing type corresponding to the calling request, wherein the issuing type comprises an immediate issuing type or a preset issuing type;
when the issuing type is the immediate issuing type, the article issuing module determines the corresponding arrangement sequence of the task order corresponding to the calling request according to the initiating time corresponding to the calling request;
when the issuing type is a preset issuing type, the article issuing module determines the corresponding arrangement sequence of the task order corresponding to the calling request according to the preset issuing time corresponding to the calling request;
and the article issuing module writes the task order corresponding to the calling request into a message queue of a message system corresponding to the article issuing module according to the sequence corresponding to the task order corresponding to the calling request.
Therefore, by implementing the optional implementation method, the task orders can be written into the message system according to the corresponding arrangement sequence of the task orders, the accuracy and the order of writing the task orders are improved, the occurrence of the situation that the task orders are executed in queue or in a lagging mode is reduced, and the use experience of a user is improved.
206. The article issuance module obtains the at least one target task order that was not executed from the messaging system that accesses the article issuance module.
207. And the article issuing module executes article issuing operation matched with each target task order.
208. And the article issuing module detects whether the article issuing operation matched with the target task order is executed or not according to each target task order.
209. And the object issuing module is used for modifying the execution state of each target task order from the non-execution state to the execution state when the object issuing operation matched with the target task order is executed.
In the embodiment of the present invention, for other descriptions of steps 206 to 209, please refer to the detailed description of steps 101 to 104 in the first embodiment, which is not repeated herein.
It should be noted that, in other embodiments, the issue call module may separately execute the steps executed by the issue call module described in the second embodiment.
Therefore, by implementing the embodiment of the invention, the task order can be generated and the received task order can be fed back when the article issuing request is received, so that the time cost consumed by the user due to the fact that other operations cannot be performed due to waiting for article issuing is reduced, the use experience of the user is improved, and the execution state of the task order is modified into the executed state by recording the execution state of the task order and ensuring that the article issuing operation corresponding to the task order is executed completely, so that the virtual article which is failed to be issued can be re-issued, the situations of missed virtual article issuing or repeated virtual article issuing are reduced, the accuracy and reliability of virtual article issuing are improved, and the use experience of the user is further improved.
In an optional embodiment, after the issuing invoking module initiates the invocation request corresponding to the article issuing instruction to the article issuing module, before the article issuing module generates the task order corresponding to the invocation request, the method may further include:
the issuing and calling module detects whether the calling request is successfully initiated;
when the initiation of the calling request fails, the issuing calling module detects whether the initiation times of the calling request of the current round corresponding to the article issuing instruction are larger than or equal to the determined threshold times;
when the initiation times of the calling request in the current round are less than the threshold times, the issuing calling module re-executes the operation of initiating the calling request corresponding to the article issuing instruction to the article issuing module.
Therefore, the optional embodiment can reinitiate the call request when the call request fails to be initiated, thereby being beneficial to reducing the occurrence of virtual article missing and improving the use experience of the user.
In this optional embodiment, as an optional implementation, the method may further include:
when the initiation times of the calling request in the current round are more than or equal to the threshold times, the issuing calling module stores the instruction information corresponding to the article issuing instruction to a temporary storage space corresponding to the issuing calling module;
the issuing and calling module determines an initiation failure factor corresponding to the calling request;
the issuing and calling module detects whether the interval duration between the time of initiating the calling request last time and the current time is greater than or equal to the preset duration;
when the interval duration is greater than or equal to the preset duration, the issuing and calling module detects whether the initiating failure factor is solved;
when the initiating failure factor is solved, the issuing and calling module acquires the instruction information from the temporary storage space, and re-executes the operation of initiating the calling request corresponding to the article issuing instruction to the article issuing module according to the instruction information.
Therefore, the optional implementation method can reinitiate the call request when the failure factor is solved when the call request is initiated for too many times, reduces the running memory and time cost consumed by ineffective initiation of the call request, and is beneficial to improving the reliability of virtual article release.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a virtual article issuing system according to an embodiment of the present invention. The issuing system of the virtual article described in fig. 3 may be applied to any cloud server or local server that needs to issue the virtual article, such as a game server, and the embodiment of the present invention is not limited thereto. As shown in fig. 3, the virtual article issuing system includes at least an article issuing module 301;
wherein the article dispensing module 301 comprises:
the first obtaining sub-module 3011 is configured to obtain at least one unexecuted target task order from a message system accessing the article issuing module;
the issuing sub-module 3012 is configured to perform an article issuing operation matched with each target task order;
the first detection sub-module 3013 is configured to detect, for each target task order, whether an article issuing operation matched with the target task order is completed;
and the state modifying sub-module 3014 is configured to modify, for each target task order, the execution state of the target task order from the unexecuted state to the executed state when the object issuing operation matched with the target task order is completed.
It can be seen that the system described in the implementation of fig. 3 can record the execution state of the task order, and modify the execution state of the task order into the executed state only when it is ensured that the article issuing operation corresponding to the task order is completed, so as to re-issue the virtual article that fails to be issued, reduce the occurrence of missed issuing of the virtual article or repeated issuing of the virtual article, improve the accuracy and reliability of issuing of the virtual article, and further improve the use experience of the user.
In an alternative embodiment, as shown in FIG. 4, the system further includes an issue call module 302;
the issuing and calling module 302 includes:
the call initiating submodule 3021 is configured to, when an article issuing instruction triggered by a user is received, initiate a call request corresponding to the article issuing instruction to the article issuing module 301;
and, the article dispensing module 301 further includes:
the generating submodule 3015 is configured to generate a task order corresponding to the call request when receiving the call request initiated by the issuing and calling module 302, where an execution state of the task order corresponding to the call request is an unexecuted state;
the communication sub-module 3016 is configured to send feedback information corresponding to the call request to the issuance call module 302, where the feedback information is used to indicate that the article issuance module has received the call request and is executing an issuance task corresponding to the call request;
the writing sub-module 3017 is configured to write the task order corresponding to the call request into the message system of the access item issuing module 301.
Therefore, the system described by implementing fig. 4 can generate the task order and feed back the received task order when receiving the article issuing request, so that the time cost consumed by the user due to the fact that other operations cannot be performed due to waiting for the article issuing is reduced, and the use experience of the user is improved.
In another alternative embodiment, as shown in fig. 4, the issue call module 302 further includes:
the second detection submodule 3022 is configured to detect whether the invocation request is initiated successfully after the invocation initiation submodule 3021 initiates the invocation request corresponding to the article issuance instruction to the article issuance module 301; when the initiation of the calling request fails, detecting whether the initiation times of the calling request of the current round corresponding to the article issuing instruction are larger than or equal to the determined threshold times; when the number of times of initiating the call request in the current round is less than the threshold number of times, the call initiating sub-module 3021 is triggered to re-execute the operation of initiating the call request corresponding to the article issuance instruction to the article issuance module 301.
In yet another alternative embodiment, as shown in fig. 4, the issue call module 302 further includes:
the storage submodule 3023 is configured to, when the second detection submodule 3022 detects that the number of times the call request is initiated in the current round is greater than or equal to the threshold number of times, store instruction information corresponding to the article issuance instruction to a temporary storage space corresponding to the issuance call module;
a determining submodule 3024, configured to determine an initiation failure factor corresponding to the call request;
the second detection submodule 3022 is further configured to detect whether an interval duration between a time at which the call request was last initiated and the current time is greater than or equal to a preset duration; when the interval duration is greater than or equal to the preset duration, detecting whether the initiation failure factor is solved;
the second obtaining sub-module 3025 is configured to, when the failure factor is completely resolved since the detection result of the second detecting sub-module 3022 is started, obtain instruction information from the temporary storage space, and trigger the call initiating sub-module 3021 to re-execute the operation of initiating the call request corresponding to the article issuing instruction to the article issuing module according to the instruction information.
It can be seen that the system described in fig. 4 can also reinitiate the call request when the call request fails to be initiated, which is beneficial to reducing the occurrence of virtual article missed sending and improving the user experience, and reinitiate the call request when the failure factor is solved when the number of times of initiating the call request fails is too many, thereby reducing the running memory and time cost consumed by invalidating the initiated call request, and being beneficial to improving the reliability of virtual article sending.
In yet another alternative embodiment, as shown in fig. 4, the specific manner of the first obtaining sub-module 3011 obtaining the at least one unexecuted target task order from the message system accessing the article issuing module includes:
determining the number of idle threads in the virtual article issuing pool, wherein the idle threads comprise threads which are not used for executing any article issuing operation in the current virtual article issuing pool;
when the number of the threads is more than or equal to 1, determining the execution state of a first task order in a message system accessed to the article issuing module, wherein the first task order is a first task order in an order queue of the message system;
when the execution state of the first task order is the executed state, deleting the first task order from the message queue, and re-executing the operation for determining the execution state of the first task order of the message system;
when the execution state of the first task order is an unexecuted state, determining the first task order as a target task order, and deleting the first task order from the message queue; and the article issuing module judges whether the total number of all the determined target task orders is matched with the number of the threads, and when the judgment result is negative, the operation for determining the execution state of the first task order of the message system is executed again.
It can be seen that, by implementing the system described in fig. 4, task orders with a front ranking can be preferentially processed, situations of missed issuing of virtual articles or delayed issuing of virtual articles caused by disordered processing sequences can be reduced, the number of task orders being processed simultaneously is limited according to the number of idle threads, situations of system congestion or system crash can be reduced, reliability and safety of issuing of virtual articles can be improved, unnecessary memory occupation can be reduced by deleting executed task orders, efficiency of screening unexecuted task orders can be improved, and efficiency of issuing virtual articles can be improved.
In yet another alternative embodiment, as shown in fig. 4, the specific manner in which the issuing sub-module 3012 performs the item issuing operation matched with each target task order includes:
distributing an idle thread matched with each target task order to each target task order;
according to each target task order, determining a release object corresponding to the target task order and a to-be-released virtual article corresponding to the target task order;
aiming at each target task order, based on an idle thread corresponding to the target task order, issuing the virtual article to be issued corresponding to the target task order to an account of an issuing object corresponding to the target task order;
and for each target task order, the specific way of detecting whether the object issuing operation matched with the target task order is executed by the first detection sub-module 3013 includes:
and detecting whether the received article information fed back by the release object corresponding to the target task order is received or not for each target task order, and determining that the release operation of the article matched with the target task order is finished when the detection result is yes.
Therefore, the system described in fig. 4 can also utilize idle threads to process the issuing tasks corresponding to a plurality of task orders in parallel, reduce the phenomenon of server congestion caused by excessive accumulation of the task orders to be processed, improve the issuing efficiency and reliability of the virtual articles, detect whether the virtual articles are successfully issued or not through interaction with the issuing objects, improve the accuracy and reliability of detecting whether the virtual articles are successfully issued or not, and be beneficial to reducing the occurrence of missed issuing or repeated issuing of the virtual articles, thereby improving the accuracy and reliability of issuing the virtual articles.
In yet another optional embodiment, as shown in fig. 4, for each target task order, a specific manner of the issuing sub-module 3012 issuing the to-be-issued virtual article corresponding to the target task order to the account of the issue object corresponding to the target task order based on the idle thread corresponding to the target task order includes:
judging whether a virtual article to be released corresponding to each target task order is a limited article or not, and judging whether the remaining releasable quantity corresponding to the target task order is 0 or not when the virtual article to be released corresponding to the target task order is the limited article, wherein the remaining releasable quantity corresponding to the target task order is the difference value between the limited release quantity and the released quantity corresponding to the virtual article to be released corresponding to the target task order; when the remaining issuable quantity corresponding to the target task order is not 0, judging whether the to-be-issued quantity corresponding to the target task order is smaller than the remaining issuable quantity corresponding to the target task order; when the to-be-released quantity corresponding to the target task order is less than or equal to the remaining releasable quantity corresponding to the target task order, releasing to-be-released virtual articles corresponding to the target task order in the to-be-released quantity corresponding to the target task order to an account of a release object corresponding to the target task order; and when the to-be-released quantity corresponding to the target task order is larger than the remaining releasable quantity corresponding to the target task order, releasing the to-be-released virtual articles corresponding to the target task order with the remaining releasable quantity corresponding to the target task order into an account of a release object corresponding to the target task order.
Therefore, the system described in fig. 4 can also provide a method for issuing a limited amount of virtual articles, reduce the occurrence of the situation that the total number of issued virtual articles exceeds the limited value, and improve the accuracy and reliability of issuing the virtual articles.
Example four
Referring to fig. 5, fig. 5 is a schematic structural diagram of another virtual article issuing system according to an embodiment of the present invention. As shown in fig. 5, the virtual article issuing system may include:
a memory 401 storing executable program code;
a processor 402 coupled with the memory 401;
the processor 402 calls the executable program code stored in the memory 401 to execute the steps in the method for issuing a virtual article described in the first embodiment or the second embodiment of the present invention.
EXAMPLE five
The embodiment of the invention discloses a computer storage medium, which stores computer instructions, and the computer instructions are used for executing the steps in the virtual article issuing method described in the first embodiment or the second embodiment of the invention when being called.
EXAMPLE six
The embodiment of the invention discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, wherein the computer program is operable to make a computer execute the steps of the virtual article issuing method described in the first embodiment or the second embodiment.
The above-described system embodiments are only illustrative, and the modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, where the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM), or other disk memories, CD-ROMs, or other magnetic disks, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
Finally, it should be noted that: the method and system for issuing virtual articles disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used for illustrating the technical solutions of the present invention, rather than for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for issuing a virtual item, the method comprising:
the article issuing module acquires at least one unexecuted target task order from a message system accessed to the article issuing module;
the article issuing module executes article issuing operation matched with each target task order;
the article issuing module detects whether the article issuing operation matched with the target task order is executed or not according to each target task order;
and the object issuing module is used for modifying the execution state of the object task order from the non-execution state to the execution state when the object issuing operation matched with the object task order is executed.
2. The method of issuing virtual items according to claim 1, wherein the method further comprises:
when an article issuing instruction triggered by a user is received, an issuing calling module initiates a calling request corresponding to the article issuing instruction to an article issuing module;
when receiving the call request initiated by the release call module, the article release module generates a task order corresponding to the call request, wherein the execution state of the task order corresponding to the call request is an unexecuted state;
the article issuing module sends feedback information corresponding to the calling request to the issuing calling module, wherein the feedback information is used for indicating that the article issuing module receives the calling request and executes an issuing task corresponding to the calling request;
and the article issuing module writes the task order corresponding to the calling request into a message system accessed to the article issuing module.
3. The method for issuing the virtual article according to claim 2, wherein after the issuing calling module issues the calling request corresponding to the article issuing instruction to the article issuing module, and before the article issuing module generates the task order corresponding to the calling request, the method further includes:
the issuing and calling module detects whether the calling request is successfully initiated;
when the initiation of the calling request fails, the issuing calling module detects whether the initiation times of the calling request of the current round corresponding to the article issuing instruction are larger than or equal to the determined threshold times;
when the initiation times of the calling request in the current round are smaller than the threshold times, the issuing calling module re-executes the operation of initiating the calling request corresponding to the article issuing instruction to the article issuing module.
4. The virtual article issuance method according to claim 3, wherein the method further comprises:
when the number of times of initiating the current round of calling requests is greater than or equal to the threshold number of times, the issuing calling module stores the instruction information corresponding to the article issuing instruction to the temporary storage space corresponding to the issuing calling module;
the issuing and calling module determines an initiating failure factor corresponding to the calling request;
the issuing and calling module detects whether the interval duration between the moment of initiating the calling request last time and the current moment is greater than or equal to a preset duration;
when the interval duration is greater than or equal to the preset duration, the issuing and calling module detects whether the initiating failure factor is solved or not;
and when the initiating failure factor is solved, the issuing and calling module acquires the instruction information from the temporary storage space, and re-executes the operation of issuing the calling request corresponding to the article issuing instruction to the article issuing module according to the instruction information.
5. The virtual article issuance method according to any one of claims 1 to 4, wherein the article issuance module obtains the at least one unexecuted target task order from a messaging system accessing the article issuance module, and includes:
the article issuing module determines the number of idle threads in a virtual article issuing pool, wherein the idle threads comprise threads which are not used for executing any article issuing operation in the virtual article issuing pool;
when the thread number is more than or equal to 1, the article issuing module determines the execution state of a first task order in an information system accessed to the article issuing module, wherein the first task order is a first task order arranged in an order queue of the information system;
when the execution state of the first task order is an executed state, the article issuing module deletes the first task order from the message queue and re-executes the operation of determining the execution state of the first task order of the message system;
when the execution state of the first task order is an unexecuted state, the article issuing module determines the first task order as a target task order and deletes the first task order from the message queue; and the article issuing module judges whether the total quantity of all the determined target task orders is matched with the thread quantity, and when the judgment result is negative, the operation of determining the execution state of the first task order of the message system is executed again.
6. The virtual article issuance method according to claim 5, wherein the article issuance module performs the article issuance operation matched to each target task order, and includes:
the article issuing module allocates an idle thread matched with the target task order to each target task order;
the article issuing module determines an issuing object corresponding to each target task order and a virtual article to be issued corresponding to the target task order according to each target task order;
the article issuing module issues the virtual article to be issued corresponding to the target task order to an account of an issuing object corresponding to the target task order based on an idle thread corresponding to the target task order for each target task order;
and the article issuing module detects whether the article issuing operation matched with the target task order is executed or not according to each target task order, and the method comprises the following steps:
and the article issuing module detects whether article received information fed back by an issuing object corresponding to each target task order is received or not according to each target task order, and determines that the article issuing operation matched with the target task order is finished when the detection result is yes.
7. The virtual article release method according to claim 6, wherein the article release module, for each target task order, based on an idle thread corresponding to the target task order, releases the to-be-released virtual article corresponding to the target task order to an account of a release object corresponding to the target task order, and the method includes:
the article issuing module judges whether the virtual article to be issued corresponding to the target task order is a limited article or not according to each target task order, and judges whether the remaining issuable quantity corresponding to the target task order is 0 or not when the virtual article to be issued corresponding to the target task order is the limited article, wherein the remaining issuable quantity corresponding to the target task order is the difference value between the limited issued quantity and the issued quantity corresponding to the virtual article to be issued corresponding to the target task order; when the remaining issuable quantity corresponding to the target task order is not 0, judging whether the to-be-issued quantity corresponding to the target task order is smaller than the remaining issuable quantity corresponding to the target task order; when the to-be-released quantity corresponding to the target task order is less than or equal to the remaining releasable quantity corresponding to the target task order, releasing to-be-released virtual articles corresponding to the target task order in the to-be-released quantity corresponding to the target task order to an account of a release object corresponding to the target task order; and when the to-be-released quantity corresponding to the target task order is larger than the remaining releasable quantity corresponding to the target task order, releasing the to-be-released virtual articles corresponding to the target task order with the remaining releasable quantity corresponding to the target task order into an account of a release object corresponding to the target task order.
8. A virtual article dispensing system, characterized in that it comprises at least an article dispensing module;
wherein the article dispensing module comprises:
the first acquisition submodule is used for acquiring at least one unexecuted target task order from a message system accessed to the article issuing module;
the issuing submodule is used for executing the article issuing operation matched with each target task order;
the first detection sub-module is used for detecting whether the object issuing operation matched with the target task order is executed or not according to each target task order;
and the state modification submodule is used for modifying the execution state of each target task order from the unexecuted state to the executed state when the object issuing operation matched with the target task order is executed.
9. A virtual article dispensing system, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the virtual article issuance method according to any one of claims 1 to 7.
10. A computer storage medium storing computer instructions which, when invoked, perform a method of issuing a virtual item according to any one of claims 1 to 7.
CN202111658446.XA 2021-12-30 2021-12-30 Virtual article issuing method and system Pending CN114493672A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111658446.XA CN114493672A (en) 2021-12-30 2021-12-30 Virtual article issuing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111658446.XA CN114493672A (en) 2021-12-30 2021-12-30 Virtual article issuing method and system

Publications (1)

Publication Number Publication Date
CN114493672A true CN114493672A (en) 2022-05-13

Family

ID=81508305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111658446.XA Pending CN114493672A (en) 2021-12-30 2021-12-30 Virtual article issuing method and system

Country Status (1)

Country Link
CN (1) CN114493672A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396681A (en) * 2022-07-06 2022-11-25 苏州达家迎信息技术有限公司 Account management method and device, storage medium and electronic equipment
CN116137002A (en) * 2023-04-12 2023-05-19 深圳乐娱游网络科技有限公司 Virtual rewarding issuing method and related equipment

Citations (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10207956A (en) * 1997-01-27 1998-08-07 Hironori Wakayama Electronic settlement system
KR20020096353A (en) * 2001-06-19 2002-12-31 한국모바일페이먼트서비스(주) One-time Virtual Card Service System and A Method Thereof
WO2005124608A1 (en) * 2004-06-18 2005-12-29 Huawei Technologies Co., Ltd. A data processing method for game virtual article, game platform system and game system
JP2006044828A (en) * 2004-07-30 2006-02-16 Kokuyo Co Ltd Article management system
CN101192287A (en) * 2006-11-23 2008-06-04 阿里巴巴公司 Method and system for automatically sending dummy resource
US20120136757A1 (en) * 2010-11-26 2012-05-31 Taranbir Singh Chopra Methods and Systems for Operating a Virtual World
US8473316B1 (en) * 2010-06-04 2013-06-25 Amazon Technologies, Inc. System and method for order processing state management
CN104252613A (en) * 2014-09-10 2014-12-31 腾讯科技(深圳)有限公司 Method, device and terminal for obtaining virtual object
CN106097057A (en) * 2016-06-07 2016-11-09 腾讯科技(深圳)有限公司 A kind of virtual objects distribution method and device
CN106302122A (en) * 2016-08-16 2017-01-04 腾讯科技(深圳)有限公司 Virtual objects management method and device
WO2017016265A1 (en) * 2015-07-30 2017-02-02 广州交易猫信息技术有限公司 Virtual item transaction assistance method and apparatus, and virtual item transaction system
WO2017041556A1 (en) * 2015-09-11 2017-03-16 中兴通讯股份有限公司 Virtual resource scheduling method
CN106709705A (en) * 2016-12-30 2017-05-24 腾讯科技(深圳)有限公司 Virtual goods packet sending method, receiving method, devices and system
US20180103079A1 (en) * 2016-10-10 2018-04-12 Google Inc. Customizing media items for playback on alternative playback devices paired with a user device
WO2018108035A1 (en) * 2016-12-13 2018-06-21 腾讯科技(深圳)有限公司 Information processing and virtual resource exchange method, apparatus, and device
WO2018184494A1 (en) * 2017-04-05 2018-10-11 腾讯科技(深圳)有限公司 Information processing method and device and storage medium
CN109146446A (en) * 2018-06-21 2019-01-04 腾讯科技(深圳)有限公司 A kind of virtual objects distribution method, apparatus and system
CN109829703A (en) * 2019-01-29 2019-05-31 腾讯科技(深圳)有限公司 Virtual objects distribution method and device
CN110152307A (en) * 2018-07-17 2019-08-23 腾讯科技(深圳)有限公司 Virtual objects distribution method, device and storage medium
CN110324156A (en) * 2019-07-24 2019-10-11 广州趣丸网络科技有限公司 Virtual room information exchange method, device, equipment and system
WO2019228346A1 (en) * 2018-05-31 2019-12-05 杭州海康威视数字技术股份有限公司 Method and apparatus for executing task by scheduling device
CN110711390A (en) * 2019-09-29 2020-01-21 北京乐我无限科技有限责任公司 Virtual article issuing method and device and server
US20200082459A1 (en) * 2014-09-30 2020-03-12 Square, Inc. Persistent virtual shopping cart
CN111144860A (en) * 2019-12-31 2020-05-12 广州酷狗计算机科技有限公司 Order processing method, device, server and storage medium
CN111970575A (en) * 2020-07-24 2020-11-20 网易(杭州)网络有限公司 Virtual gift processing method, storage medium, processor and electronic equipment
WO2021056475A1 (en) * 2019-09-27 2021-04-01 小米通讯技术有限公司 Contention window size adjustment method and apparatus, and communication device and storage medium
CN112616091A (en) * 2020-12-18 2021-04-06 北京达佳互联信息技术有限公司 Virtual article sending method and device, computer equipment and storage medium
CN112749956A (en) * 2020-07-20 2021-05-04 腾讯科技(深圳)有限公司 Information processing method, device and equipment
CN113191820A (en) * 2021-05-20 2021-07-30 腾讯科技(深圳)有限公司 Reward issuing method and device based on live broadcast, electronic equipment and storage medium

Patent Citations (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10207956A (en) * 1997-01-27 1998-08-07 Hironori Wakayama Electronic settlement system
KR20020096353A (en) * 2001-06-19 2002-12-31 한국모바일페이먼트서비스(주) One-time Virtual Card Service System and A Method Thereof
WO2005124608A1 (en) * 2004-06-18 2005-12-29 Huawei Technologies Co., Ltd. A data processing method for game virtual article, game platform system and game system
JP2006044828A (en) * 2004-07-30 2006-02-16 Kokuyo Co Ltd Article management system
CN101192287A (en) * 2006-11-23 2008-06-04 阿里巴巴公司 Method and system for automatically sending dummy resource
US8473316B1 (en) * 2010-06-04 2013-06-25 Amazon Technologies, Inc. System and method for order processing state management
US20120136757A1 (en) * 2010-11-26 2012-05-31 Taranbir Singh Chopra Methods and Systems for Operating a Virtual World
CN104252613A (en) * 2014-09-10 2014-12-31 腾讯科技(深圳)有限公司 Method, device and terminal for obtaining virtual object
US20200082459A1 (en) * 2014-09-30 2020-03-12 Square, Inc. Persistent virtual shopping cart
WO2017016265A1 (en) * 2015-07-30 2017-02-02 广州交易猫信息技术有限公司 Virtual item transaction assistance method and apparatus, and virtual item transaction system
WO2017041556A1 (en) * 2015-09-11 2017-03-16 中兴通讯股份有限公司 Virtual resource scheduling method
CN106097057A (en) * 2016-06-07 2016-11-09 腾讯科技(深圳)有限公司 A kind of virtual objects distribution method and device
CN106302122A (en) * 2016-08-16 2017-01-04 腾讯科技(深圳)有限公司 Virtual objects management method and device
US20180103079A1 (en) * 2016-10-10 2018-04-12 Google Inc. Customizing media items for playback on alternative playback devices paired with a user device
WO2018108035A1 (en) * 2016-12-13 2018-06-21 腾讯科技(深圳)有限公司 Information processing and virtual resource exchange method, apparatus, and device
CN106709705A (en) * 2016-12-30 2017-05-24 腾讯科技(深圳)有限公司 Virtual goods packet sending method, receiving method, devices and system
WO2018184494A1 (en) * 2017-04-05 2018-10-11 腾讯科技(深圳)有限公司 Information processing method and device and storage medium
WO2019228346A1 (en) * 2018-05-31 2019-12-05 杭州海康威视数字技术股份有限公司 Method and apparatus for executing task by scheduling device
CN109146446A (en) * 2018-06-21 2019-01-04 腾讯科技(深圳)有限公司 A kind of virtual objects distribution method, apparatus and system
CN110152307A (en) * 2018-07-17 2019-08-23 腾讯科技(深圳)有限公司 Virtual objects distribution method, device and storage medium
CN109829703A (en) * 2019-01-29 2019-05-31 腾讯科技(深圳)有限公司 Virtual objects distribution method and device
CN110324156A (en) * 2019-07-24 2019-10-11 广州趣丸网络科技有限公司 Virtual room information exchange method, device, equipment and system
WO2021056475A1 (en) * 2019-09-27 2021-04-01 小米通讯技术有限公司 Contention window size adjustment method and apparatus, and communication device and storage medium
CN110711390A (en) * 2019-09-29 2020-01-21 北京乐我无限科技有限责任公司 Virtual article issuing method and device and server
CN111144860A (en) * 2019-12-31 2020-05-12 广州酷狗计算机科技有限公司 Order processing method, device, server and storage medium
CN112749956A (en) * 2020-07-20 2021-05-04 腾讯科技(深圳)有限公司 Information processing method, device and equipment
CN111970575A (en) * 2020-07-24 2020-11-20 网易(杭州)网络有限公司 Virtual gift processing method, storage medium, processor and electronic equipment
CN112616091A (en) * 2020-12-18 2021-04-06 北京达佳互联信息技术有限公司 Virtual article sending method and device, computer equipment and storage medium
CN113191820A (en) * 2021-05-20 2021-07-30 腾讯科技(深圳)有限公司 Reward issuing method and device based on live broadcast, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周志明: "凤凰架构:构建可靠的大型分布式系统", 30 June 2021, 机械工业出版社, pages: 201 - 202 *
杨金民等: "数据库技术与应用", 31 January 2021, 机械工业出版社, pages: 158 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396681A (en) * 2022-07-06 2022-11-25 苏州达家迎信息技术有限公司 Account management method and device, storage medium and electronic equipment
CN115396681B (en) * 2022-07-06 2024-03-15 苏州达家迎信息技术有限公司 Account management method and device, storage medium and electronic equipment
CN116137002A (en) * 2023-04-12 2023-05-19 深圳乐娱游网络科技有限公司 Virtual rewarding issuing method and related equipment

Similar Documents

Publication Publication Date Title
CN114493672A (en) Virtual article issuing method and system
CN109614377B (en) File deletion method, device, equipment and storage medium of distributed file system
EP3008592B1 (en) Pre-fetching content for service-connected applications
US20190333011A1 (en) Order processing system, method, and device
US7788435B2 (en) Interrupt redirection with coalescing
CN108334396B (en) Data processing method and device, and resource group creation method and device
US9858101B2 (en) Virtual machine input/output thread management
CN108958975B (en) Method, device and equipment for controlling data recovery speed
EP3879477A1 (en) Electronic certificate-based interaction method and apparatus, and electronic device
US10884667B2 (en) Storage controller and IO request processing method
WO2019140739A1 (en) Method for determining return visits to client, and electronic apparatus and computer-readable storage medium
CN112286595A (en) Asynchronous processing method and device of Lua language, computer equipment and storage medium
CN112579263A (en) Task execution method and device, storage medium and electronic equipment
WO2017193964A1 (en) Component upgrade method, apparatus and system
CN111083062A (en) Weight mechanism-based current limiting method and device, computer equipment and storage medium
US20100191712A1 (en) Commit rate management with decoupled commit operations
US20180203743A1 (en) Maintaining the responsiveness of a user interface while performing a synchronous operation
CN113986502A (en) Thread pool management method and device, computer terminal and storage medium
CN114327894A (en) Resource allocation method, device, electronic equipment and storage medium
CN115408117A (en) Coroutine operation method and device, computer equipment and storage medium
CN111679945A (en) Processor detection method and device and computer readable storage medium
EP3691765A1 (en) Method and system for game data processing, server and computer readable storage medium
CN110688203A (en) Task execution method and device
US20050081216A1 (en) Method, system, and program for calling a target object from a caller object
CN110515553B (en) Volume deleting method and device

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