Ticket generation method, device and computer equipment
By randomly selecting and adaptively processing characters from the preset character library, efficient generation of immersive conference tickets is achieved, and the problem of low ticket generation efficiency in the existing technology is solved, the generation efficiency is improved and the dependence on computer resources is reduced. .
Patent Information
- Application Number
- CN202210516248.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-12
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2042-05-12
AI Technical Summary
Currently, the generation efficiency of immersive conference tickets is low, especially when the number of participants is large, the existing technology relies on computer resources and the generation process is inefficient.
By randomly selecting characters from the preset character library, processing each character adaptively until each character bit of the ticket contains characters, ticket generation is realized, and the number of character bits is expanded or the character library is dynamically adjusted to avoid repeated generation when necessary .
It gets rid of the dependence on computer resources, reduces the system interface call time, improves the efficiency of ticket generation, and meets the needs of large-scale conference participants.
Smart Images

Figure CN114861603B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of immersive conferences, and in particular to a method, apparatus and computer device for generating tickets. Background Art
[0002] With the development of technology today, immersive conference experience is gaining more and more attention. As the only certificate for conference participation, the ticket for an immersive conference must be globally unique.
[0003] The inventors have found that the current ticket identifiers, such as uuid, need to rely on computers to generate information such as timestamps and MAC addresses in order to ensure their global uniqueness, so the ticket generation efficiency is low. However, for every immersive conference with a large number of participants, improving the efficiency of ticket generation has become a top priority. Summary of the invention
[0004] The purpose of the present application is to provide a method, apparatus and computer device for ticket generation to alleviate the technical problem of low ticket generation efficiency.
[0005] In a first aspect, an embodiment of the present application provides a method for generating a ticket, the method comprising:
[0006] The character responds to the ticket generation instruction, and obtains corresponding characters from a preset character library for one or more character positions of the ticket to be generated;
[0007] When the corresponding characters are obtained for each character position of the ticket to be generated, the corresponding ticket is generated according to the characters corresponding to each character position;
[0008] Wherein, the preset character library includes characters of preset types.
[0009] In a possible implementation, the step of obtaining corresponding characters from a preset character library for one or more characters of the ticket to be generated includes:
[0010] For one or more character positions of the plurality of tickets to be generated, corresponding characters are simultaneously obtained from a preset character library.
[0011] In a possible implementation, the step of obtaining corresponding characters from a preset character library for one or more characters of the ticket to be generated includes:
[0012] For the first target position of the ticket to be generated, obtaining a preset number of characters from a preset character library;
[0013] The obtained preset number of characters are respectively assigned to the first target position and the second target position of the ticket to be generated. In a possible implementation, the method further includes:
[0014] Determine whether there is a historical ticket that is the same as the generated ticket;
[0015] If so, the number of character digits of the ticket to be generated is expanded, and for the ticket to be generated after the number of character digits is expanded, the character corresponding to each character digit is re-acquired.
[0016] In one possible implementation, the method further includes:
[0017] Determine whether there are multiple generated tickets that are the same as the historical tickets;
[0018] If so, the number of character digits of the ticket to be generated is expanded, and for the ticket to be generated after the number of character digits is expanded, the character corresponding to each character digit is re-acquired.
[0019] In a possible implementation, the determining whether there are multiple generated tickets that are the same as the historical tickets includes:
[0020] Determine whether there is a historical ticket that is the same as the currently generated ticket;
[0021] If it exists, the number of repetitions is recorded, and the corresponding character is obtained again for each character position from the preset character library to generate an updated ticket;
[0022] For the updated ticket, updating the number of repetitions;
[0023] It is determined based on the number of repetitions whether there are a plurality of generated tickets that are identical to the historical ticket.
[0024] In one possible implementation, the method further includes:
[0025] Based on the triggering opportunity in the ticket generation process, the preset types of characters in the preset character library are dynamically increased or decreased. In a possible implementation, the triggering opportunity includes when there is a historical ticket that is the same as the current ticket or when there is a business demand.
[0026] In one possible implementation, the method further includes:
[0027] The preset category is determined according to one or more of the following information: the business type of the immersive scene corresponding to the ticket to be generated, and the business information of the immersive scene corresponding to the ticket to be generated.
[0028] In a possible implementation, the preset character library also includes at least one dynamic sub-library of preset categories; the preset categories include one or more of the following information: personal information, customized personality information and conference information of the holder of the current ticket.
[0029] In a possible implementation, the step of obtaining corresponding characters from a preset character library for one or more characters of the ticket to be generated includes:
[0030] Obtaining corresponding characters from a standard sub-library and / or a dynamic sub-library in a preset character library for one or more character positions of the ticket to be generated;
[0031] The standard sub-library includes characters of preset types.
[0032] In a second aspect, a device for generating a ticket is provided, the device comprising:
[0033] The acquisition module, in response to the ticket generation instruction, acquires corresponding characters from a preset character library for one or more character positions of the ticket to be generated;
[0034] A generation module, when each character position of the ticket to be generated has obtained a corresponding character, generates a corresponding ticket according to the character corresponding to each character position;
[0035] Wherein, the preset character library includes characters of preset types.
[0036] In a third aspect, an embodiment of the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0037] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method described in the first aspect above.
[0038] The embodiments of the present application bring the following beneficial effects:
[0039] The embodiments of the present application provide a method, apparatus and computer device for generating tickets, which can alleviate the problem of low efficiency in generating tickets in the prior art.
[0040] Since the prior art is highly dependent on computer resources, that is, the generation of such tickets requires computer participation in calculations, for example, during the ticket generation process, the corresponding system interface needs to be called to implement the ticket generation calculation, and the ticket generation efficiency is low.
[0041] In this solution, characters randomly selected from a preset character library are adaptively processed as each digit of the ticket until each digit of the ticket contains characters, thereby realizing the generation of the ticket. The ticket generation method of the embodiment of the present invention does not utilize computer resources, nor does it need to call various system interfaces. On the basis of getting rid of the dependence on computer resources, it reduces the time for calling various system interfaces during the ticket generation process, thereby improving the efficiency of ticket generation.
[0042] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 A schematic diagram of an application of a ticket generation method provided in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of a method flow for generating tickets provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of the structure of a ticket generating device provided in an embodiment of the present application;
[0047] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0049] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0050] With the development of technology, immersive experience has attracted more and more attention. For example, immersive performances, immersive games, immersive meetings, etc. are all loved by all kinds of users.
[0051] Among them, the above immersive scene experience often requires users to participate online, and presents an immersive environment through the device so that users can get an immersive experience. Generally speaking, such projects have strong privacy. In order to ensure the safety of users participating in the experience, the corresponding tickets will be verified for the participating users. It can be understood that the ticket is globally unique so that the privacy of the conference users can be guaranteed.
[0052] like Figure 1 As shown, ticket generation for such immersive scenes is achieved through a computer device, such as a server 101, and the ticket is sent to the user's electronic terminal 102 through a network, so that the user can participate in the verification of the immersive scene with the globally unique ticket.
[0053] However, the current immersive scene has a large number of participants, and the ticket generation method relies heavily on computer resources and requires calling system interfaces, which makes the ticket generation efficiency low. At the same time, the length of the ticket and the character content that constitutes the ticket are relatively fixed, and the security and reliability are not high.
[0054] Based on this, an embodiment of the present application provides a method for generating tickets, by which the technical problem of low efficiency in ticket generation can be alleviated.
[0055] The embodiments of the present application are further described below in conjunction with the accompanying drawings.
[0056] Figure 2 A flowchart of a method for generating tickets provided in an embodiment of the present application.
[0057] The method can be applied to intelligent devices such as computer devices and electronic devices. Figure 1 As shown, the method includes:
[0058] Step S102, in response to the ticket generation instruction, obtain corresponding characters from a preset character library for one or more character positions of the ticket to be generated.
[0059] Among them, the current ticket is a character bit with an initial length, and the preset character library includes preset types of characters; the preset character library is a pre-set database including multiple preset types of characters, and the characters may include numbers, letters and symbols. Each ticket can be understood as a character string composed of characters with a certain length (number of bits).
[0060] Step S104, when each character position of the ticket to be generated has obtained the corresponding character, the corresponding ticket is generated according to the character corresponding to each character position. It should be noted that in the embodiment of the present invention, each character position of the ticket can be set with one character, until each character position of the ticket has been set with the corresponding character, at which time the ticket is generated for later verification.
[0061] For example, the initial length of the character position of the ticket in the embodiment of the present invention is four, the preset character library includes 26 English letters A-Z, and four characters are randomly selected from the preset character library as each character, that is, the generated ticket is EDHA.
[0062] It is understandable that each character position of the ticket is determined according to the characters in the preset character library, but it is not limited to the character being equivalent to the character selected from the preset character library. As an optional embodiment, the characters selected from the preset character library are processed by a preset algorithm to obtain the characters corresponding to each character position of the ticket.
[0063] For another example, the initial length of the character position of the ticket in the embodiment of the present invention is four, and the preset character library includes 26 English letters from A to Z. Four characters, EDHA, are randomly extracted from the preset character library, and then converted into each character according to the preset algorithm. Exemplarily, the preset algorithm can be uppercase and lowercase conversion, and the generated ticket is edha.
[0064] In a preferred embodiment of actual application, the ticket is generated by adaptively processing randomly selected characters from a preset character library as each bit of the ticket until each bit of the initial length of the ticket contains the character. The ticket generation method of the embodiment of the present invention does not use computer resources and does not need to call various system interfaces. On the basis of getting rid of the dependence on computer resources, it reduces the time for calling various system interfaces during the ticket generation process, thereby improving the efficiency of ticket generation.
[0065] On the basis of the above-mentioned embodiment, in order to ensure the efficiency and reliability of ticket generation, the above-mentioned method further includes:
[0066] Step 1.1), determine whether there is a historical ticket that is the same as the generated ticket.
[0067] Among them, historical tickets can be understood as tickets that have been generated. It should be noted that the character positions of the historical tickets that have been generated and the tickets currently to be generated have the same initial length, and each character position is composed of characters randomly selected from a preset character library. Therefore, the ticket currently to be generated may be the same as the historical ticket.
[0068] It can be understood that the same in the embodiment of the present invention means that the characters in each character position of the current ticket to be generated are the same as the characters in each character position of the historical ticket. For example, in this step, the current ticket to be generated is EDHA, and the historical ticket has EDHA, then it can be considered that the current ticket to be generated is the same as the historical ticket.
[0069] Step 1.2), if it exists, the number of character digits of the ticket to be generated is expanded, and for the ticket to be generated after the number of character digits is expanded, the character corresponding to each character digit is re-obtained.
[0070] If there is a historical ticket that is the same as the current ticket to be generated, it can be considered that the random characters in the current preset character library are no longer sufficient for generating a globally unique ticket.
[0071] It should be noted that the extension here can be understood as the extension of the character length of the ticket, that is, the original initial length is extended to the initial length + the extended number of bits; the extended number of bits can be determined according to the ticket generation requirements. For example, in this step, there are still a number of A tickets to be generated, so the extended number of bits at this time is determined according to the number A. The extended number of bits can be 1, 2, 3, etc.
[0072] In some embodiments, based on the above steps, the efficiency of ticket generation can be further improved so that the ticket generation speed can meet the needs of a large number of conference participants. Exemplarily, corresponding characters are obtained from a preset character library for one or more character positions of multiple tickets to be generated at the same time. Step S102 of determining each character of the current ticket based on the randomly selected characters from the preset character library is performed in parallel so that multiple current tickets are generated at the same time.
[0073] It is understandable that at the same time, the generation of multiple tickets is processed in parallel, and the method for generating each ticket is executed according to step S102, thereby further improving the efficiency of ticket generation based on the above embodiment.
[0074] In some embodiments, the ticket is generated by determining the content of each character of the ticket, so that the ticket generation steps can be obtained more clearly; illustratively, step S102 can be implemented by the following steps, including:
[0075] Step 2.1), for the first target position of the ticket to be generated, obtain a preset number of characters from a preset character library; and distribute the obtained preset number of characters to the first target position to the second target position of the ticket to be generated respectively.
[0076] Among them, the current character position (first target position) of the ticket to be generated is identified, a character is randomly selected from a preset character library, the character content corresponding to the current character position of the current ticket is determined, and the next position of the current character position (second target position) is used as the new current character position; step 2.1) is repeated until the character content corresponding to each character position of the current ticket to be generated is determined.
[0077] It can be understood that the current character position here refers to the character position of the ticket whose character content has not yet been determined. For example, the initial length of the character position of the ticket is four, and the current ticket to be generated is ED, then the current character position is the third character position of the ticket to be generated, and the third character position is determined based on the randomly selected character H, then the current ticket to be generated is EDH, and at this time the fourth character position of the ticket to be generated is used as the new current character position.
[0078] Among them, it can be seen that the fourth character position is determined based on the randomly selected character A, then the current ticket is EDHA, and the fifth character position is used as the new current character position; at this time, the character content corresponding to each character position of the current ticket to be generated is determined, the loop ends, and the ticket generation is completed.
[0079] In some embodiments, by determining the multi-character content in the ticket at one time, the ticket can be quickly generated, so as to further improve the efficiency of ticket generation based on the above embodiments; illustratively, step S102 can be implemented by the following steps, specifically including:
[0080] Step 3.1), identify the current character position of the ticket to be generated, randomly select a preset number of characters from the preset character library, determine the character content of the current character position and the target character position, and use the next position of the target character position as the new current character position, wherein the target character position is a preset number of character positions starting from the current character position and extending toward the end of the character position of the ticket to be generated.
[0081] It should be noted that each time, a preset number of characters, such as 2, 3 or 4, are selected from the preset character library, and according to the position of the current character position, the character content corresponding to the preset number of ticket character positions is determined at one time to achieve the purpose of rapid ticket generation.
[0082] It can be understood that the number of digits that the target character position extends toward the last digit of the character of the current ticket to be generated includes the current character position. For example, the preset number is 2, the current character position is the first digit of the ticket to be generated, and characters E and D are randomly selected from the preset character library. Then the ticket to be generated at this time is ED, and the target character position at this time is to start from the first character position and extend 2 character positions toward the last digit of the ticket character, that is, the second character position, and the current character position is the next digit of the target character position, that is, the third character position.
[0083] For another example, the preset number is 3, the current character position is the first character position of the ticket to be generated, and characters E, D and H are randomly selected from the preset character library. The ticket at this time is EDH. The target character position at this time is starting from the first character position and extending 3 character positions to the end of the ticket character, namely the second character position and the third character position, and the current character position is the next position of the target character position, namely the fourth character position.
[0084] Step 3.2), repeat the above step 3.1) until the character content corresponding to each character position of the ticket to be generated is determined.
[0085] Among them, taking the preset number of 2 as an example, it can be seen by repeating the above step 3.1) that the current character position and the target character position of the ticket to be generated are determined based on the randomly selected characters H and A, then the current ticket to be generated is EDHA, and the fifth character position is used as the new current character position; at this time, the character content corresponding to each character position of the current ticket to be generated is determined, the loop ends, and the ticket generation is completed.
[0086] It should be noted that the current character position can be understood as the position of the character position where the corresponding character is to be obtained from the preset character library, and the target character position can be understood as the position of the last character position where the character acquisition operation from the preset character library has been completed.
[0087] As an optional embodiment, the reliability of the expansion operation can be ensured to avoid excessive expansion of the length of the ticket. Exemplarily, the method provided in the above embodiment further includes:
[0088] Step 4.1), determine whether there are multiple generated tickets that are the same as the historical tickets.
[0089] Exemplarily, it may be determined whether a plurality of consecutive generated tickets are the same as the historical tickets.
[0090] Among them, it is determined whether there is a historical ticket that is the same as the currently generated ticket A; if so, the number of repetitions + 1 is recorded, an alarm prompt is sent, and the current ticket B is regenerated based on the characters randomly selected from the preset character library; and then the step of determining whether there is a historical ticket that is the same as the current ticket B is performed until there is no historical ticket that is the same as the current ticket B, or the number of repetitions reaches a preset number.
[0091] It should be noted that, if the preset number is 3 times, if there is a historical ticket that is the same as the current ticket B, the number of repetitions + 1 will be recorded, an alarm will be sent, and the current ticket C will be regenerated. It can be understood that the current number of repetitions is two; then determine whether there is a historical ticket that is the same as the current ticket C; if so, record the number of repetitions + 1, send an alarm, and the number of repetitions at this time is three times, reaching the preset number, triggering step 4.2); if not, the generation of the current ticket C is completed.
[0092] Step 4.2), if it exists, the number of character digits of the ticket to be generated is expanded, and for the ticket to be generated after the number of character digits is expanded, the character corresponding to each character digit is re-obtained.
[0093] The initial length of the number of characters in the ticket to be generated is expanded, and the expanded ticket is regenerated.
[0094] In some embodiments, if it is necessary to control the ticket length according to business requirements, that is, firstly, do not use the method of extending the initial length to avoid ticket duplication, the method provided in the above embodiment further includes:
[0095] Step 5.1), based on the triggering time in the ticket generation process, dynamically increase or decrease the preset types of characters in the preset character library. The triggering time includes when there is a historical ticket that is the same as the current ticket or when there is a business demand.
[0096] It should be noted that if a current ticket that is repeated with a historical ticket appears at this time, it can trigger the dynamic addition of character types in the preset character library to avoid duplication in subsequent ticket generation and ensure the global uniqueness of the ticket.
[0097] It is understandable that another opportunity to trigger the addition or deletion of character types in the preset character library is based on current business needs, such as when certain specific character types are not suitable for the current ticket or when specific characters need to be added.
[0098] In some embodiments, the preset types may be determined so that the generation of tickets is more in line with the current application scenario. Exemplarily, the above method further includes:
[0099] Step 6.1), determining the preset category according to one or more of the following information, including: the business type of the immersive scene corresponding to the ticket to be generated, and the business information of the immersive scene corresponding to the ticket to be generated.
[0100] Among them, the corresponding preset type can be determined according to the business type of the immersive scene or the meeting information of the immersive meeting. For example, the meeting time, private business nature, etc. of the immersive meeting can determine the corresponding character type. For example, if the meeting time is 8 am, the preset type can be 8am.
[0101] In some embodiments, the preset character library also includes at least one dynamic sub-library of preset categories; the preset categories include one or more of the following information: personal information of the current ticket holder, customized personality information and conference information.
[0102] Among them, the dynamic sub-library can be understood as a plug-in or software package SDK, which is used to obtain the information of the corresponding preset category. For example, the preset category corresponding to the dynamic sub-library is the personal information of the holder, that is, if the dynamic sub-library is randomly selected from the preset character library, it will automatically obtain the personal information of the current ticket holder and use the personal information as the character corresponding to the current character position of the current ticket to be generated; other preset categories such as custom personality information and conference information are similar, and will not be repeated here.
[0103] In some embodiments, the information obtained from the dynamic sub-library and the randomly selected characters can be used together to generate tickets to ensure that the generation of tickets is more flexible and the reliability of tickets is higher. Exemplarily, the method provided by the embodiment of the present invention also includes:
[0104] Step 7.1) For one or more character positions of the ticket to be generated, corresponding characters are obtained from the standard sub-library and / or the dynamic sub-library in the preset character library.
[0105] Exemplarily, each character position of the ticket to be generated is determined based on characters randomly selected from a standard sub-library and / or a dynamic character library in a preset character library. The standard sub-library includes characters of preset types.
[0106] In the ticket generation process, each character may be directly extracted from a preset character library, or may be corresponding category information obtained from a randomly extracted dynamic sub-library.
[0107] or,
[0108] Step 7.2), based on one or more dynamic sub-libraries randomly selected from the preset character library, determine each character position of the current ticket to be generated.
[0109] As an optional embodiment, the preset character library may also include dynamic sub-libraries of various preset categories, and the character for each character position of the current ticket to be generated is determined based on the information obtained from each randomly selected dynamic sub-library.
[0110] In actual application, illustratively, based on the preset category corresponding to the dynamic sub-library randomly selected from the preset character library, the target information of the holder of the current ticket to be generated is obtained; the character content of the current character position of the current ticket to be generated is determined according to the target information; and the above steps are repeated until the character content corresponding to each character position of the current ticket to be generated is determined.
[0111] The target information corresponds to a preset category of the selected dynamic sub-library.
[0112] The embodiment of the present invention can achieve a safe and reliable ticket generation method by getting rid of the dependence on computer resources and without calling various system interfaces, thereby improving the ticket generation efficiency and meeting application requirements.
[0113] Figure 3 A schematic diagram of the structure of a ticket generating device is provided. The device can be applied to intelligent control devices such as computer equipment. Figure 3 As shown, the ticket generating device 300 includes:
[0114] The acquisition module 301, in response to the ticket generation instruction, acquires corresponding characters from a preset character library for one or more character positions of the ticket to be generated;
[0115] Generating module 302, when each character position of the ticket to be generated has obtained a corresponding character, generating a corresponding ticket according to the character corresponding to each character position;
[0116] Wherein, the preset character library includes characters of preset types.
[0117] In some embodiments, the acquisition module 301 is further specifically used to simultaneously acquire corresponding characters from a preset character library for one or more character positions of the plurality of tickets to be generated.
[0118] In some embodiments, the acquisition module 301 is further specifically used to acquire a preset number of characters from a preset character library for the first target position of the ticket to be generated; and allocate the acquired preset number of characters to the first target position to the second target position of the ticket to be generated respectively.
[0119] In some embodiments, in some embodiments, the acquisition module 301 is also specifically used to determine whether there is a historical ticket that is the same as the generated ticket; if so, the number of character bits of the ticket to be generated is expanded, and for the ticket to be generated after the character bit number is expanded, the character corresponding to each character bit is re-acquired.
[0120] In some embodiments, the acquisition module 301 is further specifically used to determine whether there are multiple tickets generated that are the same as the historical tickets; if so, the number of character digits of the ticket to be generated is expanded, and for the ticket to be generated with the expanded number of character digits, the character corresponding to each character digit is re-acquired.
[0121] In some embodiments, the acquisition module 301 is further specifically used to determine whether there is a historical ticket that is the same as the currently generated ticket; if so, record the number of repetitions, and re-acquire the corresponding character for each character position from the preset character library to generate an updated ticket; for the updated ticket, update the number of repetitions; based on the number of repetitions, determine whether there are multiple generated tickets that are the same as the historical ticket.
[0122] In some embodiments, the generation module 302 is further specifically configured to dynamically increase or decrease the preset types of characters in the preset character library based on triggering timing during the ticket generation process.
[0123] In some embodiments, the triggering opportunity includes when there is a historical ticket identical to the current ticket or when there is a business demand.
[0124] In some embodiments, the generation module 302 is further specifically used to determine the preset category based on one or more of the following information: the business type of the immersive scene corresponding to the ticket to be generated, the business information of the immersive scene corresponding to the ticket to be generated. In some embodiments, the preset character library also includes at least one dynamic sub-library of preset categories; the preset categories include one or more of the following information: personal information, customized personality information and conference information of the holder of the current ticket.
[0125] In some embodiments, the acquisition module 301 is further specifically used to acquire corresponding characters from a standard sub-library and / or a dynamic sub-library in a preset character library for one or more character positions of the ticket to be generated; wherein the standard sub-library includes preset types of characters.
[0126] The ticket generation device provided in the embodiment of the present application has the same technical features as the ticket generation method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0127] like Figure 4As shown, a computer device 400 provided in an embodiment of the present application includes: a memory 401, a processor 402 and a bus, wherein the memory 401 stores machine-readable instructions executable by the processor 402, and when the electronic device is running, the processor 402 communicates with the memory 401 through the bus, and the processor 402 executes the machine-readable instructions to perform the steps of the ticket generation method as described above.
[0128] Specifically, the memory 401 and the processor 402 can be general-purpose memories and processors, which are not specifically limited here. When the processor 402 runs the computer program stored in the memory 401, the ticket generation method can be executed.
[0129] Corresponding to the above-mentioned ticket generation method, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the steps of the above-mentioned ticket generation method.
[0130] The ticket generating device provided in the embodiment of the present application can be specific hardware on the device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in the embodiment of the present application are the same as those of the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the device embodiment can refer to the corresponding contents in the aforementioned method embodiment. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.
[0131] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0132] For another example, the flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0134] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0135] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the ticket generation method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., and other media that can store program codes.
[0136] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0137] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solution of the present application, rather than to limit it. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solution recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiment of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for generating tickets, characterized in that: The method comprises: In response to the ticket generation instruction, obtain corresponding characters from a preset character library for one or more character positions of the ticket to be generated; When the corresponding characters are obtained for each character position of the ticket to be generated, the corresponding ticket is generated according to the characters corresponding to each character position; Wherein, the preset character library includes characters of preset types; The method further comprises: Determine whether there is a historical ticket that is the same as the currently generated ticket; If it exists, the number of repetitions is recorded, and the corresponding character is obtained again for each character position from the preset character library to generate an updated ticket; For the updated ticket, updating the number of repetitions; Determining whether there are a plurality of generated tickets that are identical to the historical tickets based on the number of repetitions; If so, the number of character digits of the ticket to be generated is expanded, and for the ticket to be generated after the number of character digits is expanded, the character corresponding to each character digit is re-acquired.
2. The method according to claim 1, characterized in that The step of obtaining corresponding characters from a preset character library for one or more characters of the ticket to be generated includes: For one or more character positions of the plurality of tickets to be generated, corresponding characters are simultaneously obtained from a preset character library.
3. The method according to claim 1, characterized in that The step of obtaining corresponding characters from a preset character library for one or more characters of the ticket to be generated includes: For the first target position of the ticket to be generated, obtaining a preset number of characters from a preset character library; The obtained preset number of characters are respectively allocated to the first target position and the second target position of the ticket to be generated.
4. The method according to claim 1, characterized in that The method further comprises: Determine whether there is a historical ticket that is the same as the generated ticket; If so, the number of character digits of the ticket to be generated is expanded, and for the ticket to be generated after the number of character digits is expanded, the character corresponding to each character digit is re-acquired.
5. The method according to claim 1, characterized in that The method further comprises: Based on the triggering timing during the ticket generation process, the preset types of characters in the preset character library are dynamically increased or decreased.
6. The method according to claim 5, characterized in that The triggering occasion includes when there is a historical ticket identical to the ticket to be generated or when there is a business demand.
7. The method according to claim 5, characterized in that The method further comprises: The preset category is determined according to one or more of the following information: the business type of the immersive scene corresponding to the ticket to be generated, and the business information of the immersive scene corresponding to the ticket to be generated.
8. The method according to claim 5, characterized in that The preset character library also includes at least one dynamic sub-library of preset categories; the preset categories include one or more of the following information: personal information, customized personality information and conference information of the holder of the ticket to be generated.
9. The method according to claim 8, characterized in that Obtaining corresponding characters from a preset character library for one or more character positions of the ticket to be generated, including: Obtaining corresponding characters from a standard sub-library and / or a dynamic sub-library in a preset character library for one or more character positions of the ticket to be generated; The standard sub-library includes characters of preset types.
10. A device for generating tickets, characterized in that: The device comprises: The acquisition module, in response to the ticket generation instruction, acquires corresponding characters from a preset character library for one or more character positions of the ticket to be generated; A generation module, when each character position of the ticket to be generated has obtained a corresponding character, generates a corresponding ticket according to the character corresponding to each character position; Wherein, the preset character library includes characters of preset types; The device is also used to determine whether there is a historical ticket that is the same as the currently generated ticket; if so, record the number of repetitions, and re-acquire the corresponding character for each character position from the preset character library to generate an updated ticket; for the updated ticket, update the number of repetitions; based on the number of repetitions, determine whether there are multiple generated tickets that are the same as the historical ticket; if so, expand the number of character bits of the ticket to be generated, and re-acquire the character corresponding to each character position for the ticket to be generated after the character bit number is expanded.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method according to any one of claims 1 to 9.