CN110619204A - Invitation code generation method and device, terminal equipment and storage medium - Google Patents

Invitation code generation method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN110619204A
CN110619204A CN201910801655.1A CN201910801655A CN110619204A CN 110619204 A CN110619204 A CN 110619204A CN 201910801655 A CN201910801655 A CN 201910801655A CN 110619204 A CN110619204 A CN 110619204A
Authority
CN
China
Prior art keywords
invitation code
called
invitation
identifier
data table
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
CN201910801655.1A
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.)
Shenzhen Rongyimai Information Technology Co Ltd
Original Assignee
Shenzhen Rongyimai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Rongyimai Information Technology Co Ltd filed Critical Shenzhen Rongyimai Information Technology Co Ltd
Priority to CN201910801655.1A priority Critical patent/CN110619204A/en
Publication of CN110619204A publication Critical patent/CN110619204A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation

Abstract

The application is applicable to the technical field of computers, and provides an invitation code generation method, an invitation code generation device, terminal equipment and a storage medium, wherein the method comprises the following steps: acquiring an invitation code generation request, wherein the invitation code generation request comprises an invitation code identifier; and calling the invitation code corresponding to the invitation code identifier from the invitation code calling data table according to the invitation code identifier, and synchronously and asynchronously generating the invitation code identifier to be called and the corresponding invitation code to be called and storing the invitation code to be called in the invitation code calling data table. The method and the device separate the generation of the invitation code from the calling of the invitation code without waiting, improve the efficiency of obtaining the invitation code and improve the user experience.

Description

Invitation code generation method and device, terminal equipment and storage medium
Technical Field
The present application belongs to the field of computer technologies, and in particular, to an invitation code generation method, apparatus, terminal device, and storage medium.
Background
In order to establish an invitation relationship between registered users in the system, a unique invitation code corresponding to the user identity needs to be generated. The existing method for generating the invitation code is generally random generation, in order to ensure the uniqueness of the invitation code, after the candidate invitation code is generated, a loop judgment needs to be performed according to the existing invitation code, and only after the loop judgment is passed, the candidate invitation code is taken as an effective invitation code. That is, the existing invitation code generation method may cause unpredictable waiting for the user to perform the invitation operation.
Disclosure of Invention
The embodiment of the application provides an invitation code generation method, an invitation code generation device, terminal equipment and a storage medium, and can solve the problem that a user needs to wait when performing invitation operation.
In a first aspect, an embodiment of the present application provides an invitation code generating method, including:
acquiring an invitation code generation request, wherein the invitation code generation request comprises an invitation code identifier;
and calling an invitation code corresponding to the invitation code identifier from an invitation code calling data table according to the invitation code identifier, and synchronously and asynchronously generating the invitation code identifier to be called and the corresponding invitation code to be called and storing the invitation code to be called in the invitation code calling data table.
In a possible implementation manner, the generating an invitation code identifier to be called and a corresponding invitation code to be called and storing the invitation code to be called in the invitation code calling data table specifically includes:
generating the invitation code identification to be called;
selecting preset characters according to a preset combination rule to combine to obtain an invitation code to be called;
and associating the invitation code identification to be called with the invitation code to be called and storing the association in the invitation code calling data table.
In a possible implementation manner, the creating the identifier of the invitation code to be called specifically includes:
and generating sequence numbers with preset number and sequentially increasing.
In a possible implementation manner, before associating and storing the invitation code identifier to be called and the invitation code to be called in the invitation code calling data table, the method further includes:
and if the invitation code to be called exists in the invitation code calling data table, reselecting preset characters to combine to obtain the invitation code to be called.
In a possible implementation manner, before the obtaining an invite code generation request, the method further includes:
acquiring a user registration request;
and generating a preset serial number according to the user registration request, and using the preset serial number as the invitation code identifier.
In a possible implementation manner, before the invoking an invite code corresponding to the invite code identifier from an invite code invoking data table according to the invite code identifier, the method further includes:
if the invitation code to be called in the invitation code calling data table is empty, generating an initial invitation code and a corresponding invitation code identifier and storing the initial invitation code and the corresponding invitation code identifier in the invitation code calling data table;
correspondingly, the calling the invitation code corresponding to the invitation code identifier from the invitation code calling data table according to the invitation code identifier specifically includes:
and if the invitation code to be called in the invitation code calling data table is not empty, calling the invitation code corresponding to the invitation code identifier from the invitation code calling data table according to the invitation code identifier.
In a second aspect, an embodiment of the present application provides an invitation code generating apparatus, where the apparatus includes:
the obtaining module is used for obtaining an invitation code generating request, and the invitation code generating request comprises an invitation code identifier;
and the calling module calls the invitation code corresponding to the invitation code identifier from an invitation code calling data table according to the invitation code identifier, and synchronously and asynchronously generates the invitation code identifier to be called and the corresponding invitation code to be called and stores the invitation code identifier and the invitation code to be called in the invitation code calling data table.
In a possible implementation manner, the invoking module specifically includes:
the generation module is used for generating the invitation code identification to be called;
the combination module is used for selecting preset characters according to preset combination rules to combine to obtain an invitation code to be called;
and the storage module is used for associating the invitation code identifier to be called with the invitation code to be called and storing the association in the invitation code calling data table.
In a third aspect, an embodiment of the present application provides a terminal device, including: comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the invitation code generation method of any of the first aspects described above when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the invitation code generating method of any of the first aspects.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the invitation code generating method described in any of the first aspects.
Compared with the prior art, the embodiment of the application has the advantages that: acquiring an invitation code corresponding to the invitation code identifier from an invitation code calling data table according to the invitation code identifier; and synchronously and asynchronously generating an invitation code identifier to be called and a corresponding invitation code to be called and storing the invitation code identifier and the corresponding invitation code to be called in an invitation code calling data table. Therefore, the invitation code generation and the invitation code calling are separated, waiting is not needed, the efficiency of obtaining the invitation code is improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart illustrating an invite code generation method according to an embodiment of the present application;
FIG. 2 is a representation of invitation code acquisition data provided in an embodiment of the application;
FIG. 3 is an invitation code invocation data representation intent provided by an embodiment of the present application;
FIG. 4 is a flowchart illustrating sub-steps of an invitation code generation method according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating an invite code generation method according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of an invitation code generating apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The invitation code generation method provided by the embodiment of the application can be applied to terminal equipment such as a mobile terminal, a desktop computer, a notebook computer, a palm computer and a cloud server, and can be specifically realized by running an application program (APP or other systems) in the terminal equipment. Fig. 1 is a flowchart of an invitation code generating method provided in an embodiment of the present application, where the method is applied to a server, by way of example and not limitation, and includes:
step S101: acquiring an invitation code generation request, wherein the invitation code generation request comprises an invitation code identification.
In a possible implementation manner, a user sends a registration request to a server through a mobile terminal, the server generates an invitation code identifier according to the registration request, the invitation code identifier is used for identifying the identity of the user, each user corresponds to one invitation code identifier, for example, the user performs registration by using a mobile phone number, and each mobile phone number corresponds to one invitation code identifier. And when the user needs to acquire the invitation code, sending an invitation code generation request to the server.
By way of example and not limitation, the invitation code identifier is a serial number, the server generates preset serial numbers in an increasing order, and the preset serial numbers are used as the invitation code identifier. For example, every time a user is registered, the server sequentially generates an invitation code identifier from 1, the invitation code identifier of the 13 th user is 13, and when the 14 th user registers, the generated invitation code identifier is 14.
In a possible implementation manner, the server stores an invitation code acquisition data table, and fig. 2 is the invitation code acquisition data table, and fields in the invitation code acquisition data table include an invitation code identifier, a creation time, and an update time. And adding the invitation code identification and the corresponding creation time and update time into the invitation code acquisition data table every time one invitation code identification is generated. For example, the number of current users in the invitation code acquisition data table is 13, the invitation code identifier corresponding to the latest record is 13, when the user registration request is acquired again, a record is newly added in the invitation code acquisition data table according to the registration time, and the invitation code identifier of the newly added record is 14.
Step S102: and calling an invitation code corresponding to the invitation code identifier from an invitation code calling data table according to the invitation code identifier, and synchronously and asynchronously generating the invitation code identifier to be called and the corresponding invitation code to be called and storing the invitation code to be called in the invitation code calling data table.
Specifically, an invitation code calling data table is stored in the server, fig. 3 is the invitation code calling data table, the invitation code calling data table is used for storing the invitation codes to be called, a field in the invitation code calling data table includes an invitation code identifier to be called, the invitation codes to be called, creation time and update time, when an invitation code generation request sent by the mobile terminal is obtained, the invitation code identifier to be called, which is the same as the invitation code identifier sent by the mobile terminal, is searched from the invitation code calling data table, and the invitation codes to be called corresponding to the invitation code identifier to be called are obtained. And synchronously and asynchronously generating an invitation code identifier to be called and a corresponding invitation code to be called for the next calling. For example, if the invitation code identifier generated in the invitation code acquisition data table is 14, the invitation code corresponding to the record with the invitation code identifier 14 to be called is called from the invitation code calling data table, that is, ibp5 fj.
In one possible implementation, as shown in fig. 4, step S102 includes the following steps.
Step S201: generating the invitation code identification to be called;
in a possible implementation manner, sequence numbers with preset number and sequentially increasing number are generated, and the sequence numbers are used as invitation code identifiers to be called and added to an invitation code calling data table. By way of example and not limitation, each time the invitation code is invoked, three more records are added to the invitation code invocation data table in order of increasing invitation code identification. For example, there are 15 records in the current invitation code calling data table, and if the invitation code identifier to be called corresponding to the latest record is 15, then the newly added invitation code identifiers to be called are three records 16, 17, and 18, and the corresponding creation time and update time are updated. Therefore, the invitation code identification newly added in the invitation code acquisition data table is ensured to be always present in the invitation code calling data table.
The steps are 202: and selecting preset characters according to a preset combination rule to combine to obtain the invitation code to be called.
In a possible implementation manner, the preset character is abcdefghijklmnnoprqrstutwxyz 123456789, and 35 characters are selected from the 35 characters, and 6 characters are randomly arranged and combined to obtain the invitation code to be called. By way of example and not limitation, in the php language, the mt _ rand function is called, 6 random numbers between 0 and 34 are sequentially returned, and the corresponding sequence of characters is determined according to the returned random numbers. For example, the returned random number is (13, 2, 1, 7, 24), and 35 characters are arranged in sequence to obtain the correspondence relationship: (13: n, 22: w, 1: b, 7: h, 24: x), then the corresponding invitation code to be invoked is: nwbhx.
Because the randomly generated character combination can have repetition with a certain probability, in order to ensure the uniqueness of the invitation code, when the invitation code to be called is generated, whether the generated invitation code to be called exists in the invitation code calling data table is judged, for example, starting from the 1 st record, the invitation code calling data table is traversed, and whether the repeated invitation code to be called exists is searched. If the invitation code to be called exists in the invitation code calling data table, reselecting the preset characters to combine to obtain the invitation code to be called; if the invite code to be called does not exist in the invite code calling data table, step S203 is executed.
Step S203: and associating the invitation code identification to be called with the invitation code to be called and storing the association in the invitation code calling data table.
Specifically, the generated invitation code to be called and the invitation code identification to be called are correspondingly stored.
In the above embodiment, the invitation code corresponding to the invitation code identifier is called from the invitation code calling data table according to the invitation code identifier in the invitation code request, and the invitation code identifier to be called and the corresponding invitation code to be called are asynchronously generated and stored in the invitation code calling data table, so that the generation of the invitation code and the calling of the invitation code are separated, and a user does not need to wait when acquiring the invitation code, thereby improving the efficiency of acquiring the invitation code and improving the user experience.
As shown in fig. 5, a method for generating an invitation code according to another embodiment of the present application is different from the previous embodiment in that before invoking an invitation code corresponding to an invitation code identifier from an invitation code invocation data table according to the invitation code identifier, the method further includes:
step S301: and judging whether the invitation code to be called in the invitation code calling data table is empty or not.
Specifically, in the initial state, the invitation code to be called in the invitation code calling data table is empty, for example, when the first user registers, the invitation code acquiring data table generates an invitation code identifier of 1, and the invitation code calling data table calls the invitation code identifier to be called in the data table to be empty.
Step S302: and if the invitation code to be called in the invitation code calling data table is empty, generating an initial invitation code and a corresponding invitation code identifier and storing the initial invitation code and the corresponding invitation code identifier in the invitation code calling data table.
Optionally, an initialization link is set, and when the server accesses the initialization link to perform initialization, a plurality of invitation code records to be called are added to the invitation code calling data table. Before receiving user registration, initialization operation is carried out, namely a plurality of invitation code identifications to be called and invitation codes to be called can be generated.
Step S303: and if the invitation code to be called in the invitation code calling data table is not empty, calling the invitation code corresponding to the invitation code identifier from the invitation code calling data table according to the invitation code identifier.
Specifically, if the invitation code calling operation is executed, the invitation code identifier to be called in the invitation code calling data table is more than the invitation code identifier in the invitation code acquisition data table, and the invitation code identifier newly added in the invitation code acquisition data table always exists in the invitation code calling data table, i.e., the invitation code can be directly called from the invitation code calling data table.
In the above embodiment, the initial invitation code and the corresponding invitation code identifier are generated and stored in the invitation code calling database for calling, so that the efficiency of acquiring the invitation code is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Corresponding to the invitation code generating method described in the above embodiments, fig. 6 shows a block diagram of an invitation code generating device provided in the embodiments of the present application, and for convenience of explanation, only the parts related to the embodiments of the present application are shown.
Referring to fig. 6, the apparatus includes:
an obtaining module 10, configured to obtain an invitation code generation request, where the invitation code generation request includes an invitation code identifier;
and the calling module 20 calls the invitation code corresponding to the invitation code identifier from the invitation code calling data table according to the invitation code identifier, and asynchronously generates the invitation code identifier to be called and the corresponding invitation code to be called and stores the invitation code identifier and the invitation code to be called in the invitation code calling data table.
In a possible implementation manner, the invoking module 20 specifically includes:
a generating module 21, configured to generate the invitation code identifier to be called;
the combination module 22 is used for selecting preset characters according to preset combination rules to combine to obtain an invitation code to be called;
the storage module 23 is configured to associate the invitation code identifier to be called with the invitation code to be called and store the association in the invitation code calling data table.
In a possible implementation manner, the invitation code identifier is a serial number, and the generating module 21 is specifically configured to generate serial numbers that are preset in number and sequentially incremented.
In a possible implementation manner, the combining module 22 is further configured to reselect a preset character to combine to obtain the invitation code to be called if the invitation code to be called exists in the invitation code calling data table.
In a possible implementation manner, the obtaining module 10 is further configured to obtain a user registration request; and generating a preset serial number according to the user registration request, and using the preset serial number as the invitation code identifier.
In one possible implementation, the apparatus further includes: the initialization module 30 is configured to generate an initial invitation code and a corresponding invitation code identifier and store the initial invitation code and the corresponding invitation code identifier in the invitation code calling data table if the invitation code to be called in the invitation code calling data table is empty;
correspondingly, the invoking module 20 is specifically configured to invoke, if the invitation code to be invoked in the invitation code invoking data table is not empty, the invitation code corresponding to the invitation code identifier from the invitation code invoking data table according to the invitation code identifier.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/modules, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and reference may be made to the part of the embodiment of the method specifically, and details are not described here.
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application. The terminal device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. As shown in fig. 7, the terminal device of this embodiment includes: at least one processor 51 (only one shown in fig. 7), a memory 52 and a computer program 53 stored in said memory 52 and executable on said at least one processor 51.
The Processor 51 may be a Central Processing Unit (CPU), and the Processor 51 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The processor 51 implements the steps of any of the various invitation code generation method embodiments described above when executing the computer program 53.
The memory 52 may in some embodiments be an internal storage unit of the terminal device, such as a hard disk or a memory of the terminal device. The memory 52 may also be an external storage device of the terminal device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device. Further, the memory 52 may also include both an internal storage unit and an external storage device of the terminal device. The memory 52 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer programs. The memory 52 may also be used to temporarily store data that has been output or is to be output.
Those skilled in the art will appreciate that fig. 7 is merely an example of a terminal device, and does not constitute a limitation of the terminal device, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, etc.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), random-access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for invite code generation, the method comprising:
acquiring an invitation code generation request, wherein the invitation code generation request comprises an invitation code identifier;
and calling an invitation code corresponding to the invitation code identifier from an invitation code calling data table according to the invitation code identifier, and synchronously and asynchronously generating the invitation code identifier to be called and the corresponding invitation code to be called and storing the invitation code to be called in the invitation code calling data table.
2. The method for generating an invitation code according to claim 1, wherein the generating of the invitation code identifier to be called and the corresponding invitation code to be called and storing the same in the invitation code calling data table specifically comprises:
generating the invitation code identification to be called;
selecting preset characters according to a preset combination rule to combine to obtain an invitation code to be called;
and associating the invitation code identification to be called with the invitation code to be called and storing the association in the invitation code calling data table.
3. The method for generating an invitation code according to claim 2, wherein the invitation code identifier is a serial number, and the generating of the invitation code identifier to be called specifically includes:
and generating sequence numbers with preset number and sequentially increasing.
4. The method for generating an invitation code according to claim 2, wherein before associating and storing the invitation code identifier to be called and the invitation code to be called in the invitation code calling data table, the method further comprises:
and if the invitation code to be called exists in the invitation code calling data table, reselecting preset characters to combine to obtain the invitation code to be called.
5. The invitation code generation method of claim 2, wherein, prior to said obtaining an invitation code generation request, said method further comprises:
acquiring a user registration request;
and generating a preset serial number according to the user registration request, and using the preset serial number as the invitation code identifier.
6. The invite code generation method of claim 1, wherein before invoking an invite code corresponding to the invite code identification from an invite code invocation data table according to the invite code identification, the method further comprises:
if the invitation code to be called in the invitation code calling data table is empty, generating an initial invitation code and a corresponding invitation code identifier and storing the initial invitation code and the corresponding invitation code identifier in the invitation code calling data table;
correspondingly, the calling the invitation code corresponding to the invitation code identifier from the invitation code calling data table according to the invitation code identifier specifically includes:
and if the invitation code to be called in the invitation code calling data table is not empty, calling the invitation code corresponding to the invitation code identifier from the invitation code calling data table according to the invitation code identifier.
7. An invitation code generating apparatus, the apparatus comprising:
the obtaining module is used for obtaining an invitation code generating request, and the invitation code generating request comprises an invitation code identifier;
and the calling module calls the invitation code corresponding to the invitation code identifier from an invitation code calling data table according to the invitation code identifier, and synchronously and asynchronously generates the invitation code identifier to be called and the corresponding invitation code to be called and stores the invitation code identifier and the invitation code to be called in the invitation code calling data table.
8. The invitation code generating device according to claim 7, wherein said invoking module specifically comprises:
the generation module is used for generating the invitation code identification to be called;
the combination module is used for selecting preset characters according to preset combination rules to combine to obtain an invitation code to be called;
and the storage module is used for associating the invitation code identifier to be called with the invitation code to be called and storing the association in the invitation code calling data table.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
CN201910801655.1A 2019-08-28 2019-08-28 Invitation code generation method and device, terminal equipment and storage medium Pending CN110619204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910801655.1A CN110619204A (en) 2019-08-28 2019-08-28 Invitation code generation method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910801655.1A CN110619204A (en) 2019-08-28 2019-08-28 Invitation code generation method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110619204A true CN110619204A (en) 2019-12-27

Family

ID=68922124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910801655.1A Pending CN110619204A (en) 2019-08-28 2019-08-28 Invitation code generation method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110619204A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487253A (en) * 2020-11-03 2021-03-12 关爱未来(广东)信息科技有限公司 User invitation code generation method, verification method, device, equipment and storage medium
CN113221009A (en) * 2021-05-26 2021-08-06 东莞市盟大塑化科技有限公司 Invitation code generation method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120009898A1 (en) * 2006-06-29 2012-01-12 Coleman Keith J Abuse-Resistant Method of Providing Invitation Codes for Registering User Accounts with an Online Service
CN103840944A (en) * 2014-03-18 2014-06-04 昆明理工大学 Short message authentication method, server and system
CN109309712A (en) * 2018-09-07 2019-02-05 平安科技(深圳)有限公司 Data transmission method, server and the storage medium called based on interface asynchronous
CN110135144A (en) * 2019-05-20 2019-08-16 北京金山安全软件有限公司 Invitation code generation method, verification method, device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120009898A1 (en) * 2006-06-29 2012-01-12 Coleman Keith J Abuse-Resistant Method of Providing Invitation Codes for Registering User Accounts with an Online Service
CN103840944A (en) * 2014-03-18 2014-06-04 昆明理工大学 Short message authentication method, server and system
CN109309712A (en) * 2018-09-07 2019-02-05 平安科技(深圳)有限公司 Data transmission method, server and the storage medium called based on interface asynchronous
CN110135144A (en) * 2019-05-20 2019-08-16 北京金山安全软件有限公司 Invitation code generation method, verification method, device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487253A (en) * 2020-11-03 2021-03-12 关爱未来(广东)信息科技有限公司 User invitation code generation method, verification method, device, equipment and storage medium
CN112487253B (en) * 2020-11-03 2024-04-05 光蕊科技(深圳)有限公司 User invitation code generation method, verification method, device, equipment and storage medium
CN113221009A (en) * 2021-05-26 2021-08-06 东莞市盟大塑化科技有限公司 Invitation code generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109558748B (en) Data processing method and device, electronic equipment and storage medium
CN109032691B (en) Applet running method and device and storage medium
CN108287708B (en) Data processing method and device, server and computer readable storage medium
CN109462601B (en) Multi-platform access method and device based on eSIM
CN109766148B (en) Method and apparatus for processing interface method calls
CN110007936B (en) Data processing method and device
CN113076153A (en) Interface calling method and device
CN110019444B (en) Operation request processing method, device, equipment and system
CN110619204A (en) Invitation code generation method and device, terminal equipment and storage medium
CN112818654B (en) Message storage method, message generation method, device, electronic equipment and computer readable medium
CN109145589B (en) Application program acquisition method and device
CN108241515B (en) Application shortcut establishing method and terminal
CN110427538B (en) Data query method, data storage method, data query device, data storage device and electronic equipment
CN109842482B (en) Information synchronization method, system and terminal equipment
CN116880990A (en) Task execution method, device, electronic equipment and computer readable storage medium
CN116775167A (en) Service processing method, device, electronic equipment and computer readable medium
CN110020040B (en) Method, device and system for querying data
CN111796865B (en) Byte code file modification method, device, terminal equipment and medium
CN114637969A (en) Target object authentication method and device
CN114461418A (en) Inter-process communication method and device and electronic equipment
CN108804713B (en) Image output method, electronic device, and computer-readable medium
CN113032820A (en) File storage method, access method, device, equipment and storage medium
CN111488286A (en) Method and device for independently developing Android module
CN114070659B (en) Equipment locking method and device and terminal equipment
CN110661792B (en) Service ordered calling method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191227

WD01 Invention patent application deemed withdrawn after publication