Code generation method and device for realizing business tasks

A business and task technology, applied in the field of data processing, can solve problems such as large retrieval volume, low verification efficiency, and large memory, and achieve the effects of reducing memory occupation, saving system resources, and improving security

Active Publication Date: 2018-01-09
BEIJING QIHOO TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When there are more codes, the probability of repetition is greater, and the efficiency of generating codes is lower
In addition, whether it is a code generated by a random method or a certain rule, it is necessary to use the code itself to do the index, and then search for the corresponding business. very low test efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code generation method and device for realizing business tasks
  • Code generation method and device for realizing business tasks
  • Code generation method and device for realizing business tasks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0079] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0080] In order to solve the above technical problems, an embodiment of the present invention provides a method for generating a code for implementing a service task. The method can be applied in a terminal, a server, or other devices to generate a code for a service task. The business tasks here may be, as mentioned above, business tasks involved in many scenarios of Internet applications, such as invitation tasks, exchanging game ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a code generation method and device for realizing business tasks. The method includes: acquiring a character string used to generate a code to be generated, extracting a first substring from the character string, and extracting a second substring from the remaining part; acquiring a task identifier of a business, and extracting the task identifier Converted to characters in the first substring, as the action code in the code to be generated; Randomly extract a character string of the first specified length from the second substring as the code in the code to be generated Obfuscate the code, and use the function code and the obfuscation code to generate a verification code for self-verification in the code to be generated; based on the function code, the obfuscation code and the self-verification check code to generate the code to be generated. The embodiment of the present invention ensures that the codes to be generated are not repeated, and solves the problem in the prior art that a deduplication operation is required after the codes are generated, resulting in low efficiency of the generated codes.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a code generation method and device for realizing business tasks. Background technique [0002] In Internet applications, there are many scenarios that require the use of "codes". For example, new products are launched, and "invitation codes" are used to invite registration for beta testing; "gift codes" are used in games to be issued to active players for redemption in the game. Props; use "discount code" in online shopping to reduce shopping fees, bring discounts to users, and so on. [0003] In the prior art, the "code" can be generated by a random method or certain rules. When generated by the random method, the randomly generated string is used as a "code", and there will be repetitions when the number of codes is large. The codes generated in this way need to have steps to remove the codes generated repeatedly, or generate codes Check whether the code is repeated ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/10
Inventor 王成龙
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products