CN109829118A - User identity code generating method, friend-making matching process, device and computer equipment - Google Patents

User identity code generating method, friend-making matching process, device and computer equipment Download PDF

Info

Publication number
CN109829118A
CN109829118A CN201811584933.4A CN201811584933A CN109829118A CN 109829118 A CN109829118 A CN 109829118A CN 201811584933 A CN201811584933 A CN 201811584933A CN 109829118 A CN109829118 A CN 109829118A
Authority
CN
China
Prior art keywords
user
identity code
personal information
coding
user identity
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
CN201811584933.4A
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 Zhen Ai Jie Yun Information Technology Co Ltd
Original Assignee
Shenzhen Zhen Ai Jie Yun 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 Zhen Ai Jie Yun Information Technology Co Ltd filed Critical Shenzhen Zhen Ai Jie Yun Information Technology Co Ltd
Priority to CN201811584933.4A priority Critical patent/CN109829118A/en
Publication of CN109829118A publication Critical patent/CN109829118A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of user identity code generating method, friend-making matching process, user identity code generating means, friend-making coalignment and computer equipments.The user identity code generating method after the coding is then ordered as coded sequence according to preset sequence, generates the user identity code of the user by distributing corresponding coding to the keyword extracted in individual subscriber data information.The friend-making matching process directly calculates the degree of association between two users by the matching degree of each coding of the coded sequence in two user identity codes.The matching degree between the personal information information of user and user is directly being embodied in user identity code so as to realize, and friend-making matching operation amount is small, matching speed is fast.

Description

User identity code generating method, friend-making matching process, device and computer equipment
Technical field
The present invention relates to Internet technical field more particularly to a kind of user identity code generating method, it is based on user identity Code friend-making matching process, user identity code generating means, the friend-making coalignment based on user identity code, computer equipment and Computer readable storage medium.
Background technique
Marriage and making friend has been very common at present, and each love and marriage website is that have a large amount of member, and user only needs Registration information is inputted, after being verified, that is, produces user identity code (Identification, ID).In the prior art, usually The generation of User ID is preset sequence or generates at random that system can not be immediately arrived at according to User ID between two users The degree of association.
In existing social platform, what is generallyd use is to match the personal information of two users, according to two use Matching degree or similarity degree between the personal information at family, the degree of association obtained between two users are matched as making friends Judging basis, such matching way, operand are larger.
Summary of the invention
The main purpose of the present invention is to provide a kind of user identity code generating methods, the friend-making based on user identity code Method of completing the square, user identity code generating means, the friend-making coalignment based on user identity code, computer equipment and computer storage Medium can not embody the degree of association between user and existing based on personal money to solve user identity code in the prior art Expect the big technical problem of matched friend-making matching way operand.
To achieve the above object, user identity code generating method provided by the invention, comprising steps of
Obtain the registration request of target user;
The personal information data of the target user are obtained according to the registration request;
The personal information label for meeting preset extraction conditions and the individual are extracted from the personal information data The corresponding keyword of information labels;
Generate coding corresponding with each keyword;
Each coding is ranked up according to preset label sequence, obtains coded sequence;
The user identity code of the target user is generated according to the coded sequence.
Further,
After the registration request for obtaining target user, further comprise the steps of:
Unique temporary identity code is generated according to preset Random Generation according to the registration request;
The step of user identity code that the user is generated according to the coded sequence, comprising:
According to the coded sequence and the temporary identity code, the user identity code of the target user is generated.
Further, described that each coding is ranked up according to preset label sequence, obtain coded sequence Step, comprising:
According to the preset label sequence, arrangement position of each coding in the coded sequence is determined;
According to the corresponding arrangement position of each coding, it is arranged successively the coding generation coded sequence.
Further,
Described extract from the personal information data meets the personal information label of preset extraction conditions and described The step of personal information label corresponding keyword, comprising:
The personal information label for meeting preset extraction conditions is extracted from the personal information data;
When including at least one value of information in the personal information label, it is corresponding to extract the personal information label The keyword;
When not including the value of information in the personal information label, the corresponding key of the personal information label is determined Word is default value.
Further, the step of user identity code that the user is generated according to the coded sequence, comprising: according to After preset Encryption Algorithm encrypts the coded sequence, the user identity code of the target user is obtained.
User identity code generating method provided by the invention, by extract user personal information data in meet it is preset The personal information label of extraction conditions and at least one corresponding keyword;Generate coding corresponding with each keyword;Root Each personal information label is ranked up according to preset collating sequence, obtains coded sequence;User is generated according to coded sequence User identity code.So as to realize the personal information information for directly embodying user in user identity code, so as to system or Person user can judge the personal information information of part, also can be convenient the direct root of system intuitively according to user identity code It can be carried out the matching of the friend-making between user according to user identity code.
The present invention also provides a kind of friend-making matching process based on user identity code, comprising steps of
Obtain the user identity code of the first user and second user;Wherein, the user identity code includes coded sequence, institute State the coding that coded sequence includes preset tactic predetermined number, each personal information number for encoding corresponding user The value of information for the personal information label for including in;
It obtains in each coding in the user identity code of the second user and the user identity code of first user Codes match degree between corresponding each coding;
According to the codes match degree, the matching degree between the second user and first user is calculated;
When the matching degree is higher than preset matching value, determine that the matching that the second user is first user is used Family.
Further, the calculation formula of the matching degree between the second user and first user is as follows:
Wherein, matching degree of the M between the second user and first user, it is described M is the predetermined number of the coding, i ∈ [1, m];The aiFor i-th in the user identity code of the second user The weight coefficient for encoding the corresponding codes match degree, the τiFor in the user identity code of the second user A coding of i and the codes match degree of the corresponding coding in the user identity code of first user.
The present invention also provides a kind of user identity code generating means, comprising:
Registration request obtains module, for obtaining the registration request of target user;
Personal information obtains module, for obtaining the personal information data of the target user according to the registration request;
Keyword obtains module, for extracting the personal letter for meeting preset extraction conditions from the personal information data Cease label and the corresponding keyword of the personal information label;
Generation module is encoded, for generating coding corresponding with each keyword;
Coding and sorting order module obtains code sequence for being ranked up according to preset label sequence to each coding Column;
Identity code generation module, for generating the user identity code of the target user according to the coded sequence.
The present invention also provides a kind of friend-making coalignments based on user identity code, comprising:
Identity code obtains module, for obtaining the user identity code of the first user and second user;Wherein, user's body Part code includes coded sequence, and the coded sequence includes the coding of preset tactic predetermined number, each coding The value of information for the personal information label for including in the personal information data of corresponding user;
Codes match module, each coding and described first in user identity code for obtaining the second user are used Codes match degree in the user identity code at family between corresponding each coding;
Matching degree computing module, for calculating the second user and first user according to the codes match degree Between matching degree;
User's matching module, for determining that the second user is described when the matching degree is higher than preset matching value The matching user of first user.
In friend-making matching process provided by the invention based on user identity code, by directly utilizing the current family of occlusion body The user identity code of personal information information matches each coding in the coded sequence of user identity code, can be direct The degree of association and matching degree between user are obtained, operand is small, and matching speed is fast.
The present invention also provides a kind of computer equipment, including memory, processor and storage are in the memory simultaneously The computer program that can be run on the processor, the processor realize as above any one when executing the computer program The step of described friend-making matching process or user identity code generating method based on user identity code.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with The structure shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the friendly match party of user identity code generating method and friendship based on user identity code in one embodiment of the invention The application scenario diagram of method;
Fig. 2 is the flow diagram of user identity code generating method in one embodiment of the invention;
Fig. 3 is the flow diagram of the step S2 of user identity code generating method in Fig. 2;
Fig. 4 is the flow chart of user identity code generating method in another embodiment of the present invention;
Fig. 5 is the flow chart of the friend-making matching process based on user identity code in one embodiment of the invention;
Fig. 6 is the functional module framework figure of the user identity code generating means in one embodiment of the invention;
Fig. 7 is the functional module framework figure of the friend-making coalignment in one embodiment of the invention;
Fig. 8 is the modular structure schematic diagram of the computer equipment in one embodiment of the invention.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention It is fully disclosed to those skilled in the art.
It is all using equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, directly or It connects and is used in other related technical areas, be included within the scope of the present invention.
User identity code generating method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, Terminal 10 is communicated with background server 20 by network by network.Wherein, different users can pass through respective end The APP installed in end equipment 10 or website are to the initiation registration request of background server 20, and background server 20 is according to the present invention In user identity code generate user identity code corresponding to the user.User is arranged when user identity code and registration can be used Login password can log in the background server 20 of social platform.Background server 20 can also be according to the user of different user Identity code, according to the present invention in friend-making matching process, judge the whether matched user of two users.Wherein, terminal 10 can be with But it is not limited to various personal computers, laptop, smart phone, tablet computer and portable wearable device, backstage Server 20 can be realized with the server cluster of the either multiple server compositions of independent server.
Referring to Fig. 2, in one embodiment, providing a kind of user identity code generating method, it is applied to Fig. 1 in this way In background server 20 for be illustrated, include the following steps:
Step S0 obtains the registration request of target user.
When new user is when social platform or friend-making sites are registered, it will usually initiate registration request, background service Device can obtain and the registration request of corresponding new user, provides information input interface so that new user needs to fill in personal information, and After Verify in System passes through, obtain a user identity code, the user identity code can be used as subsequent login username or Personal ID.
Step S1 obtains the personal information data of target user according to registration request.
In this embodiment, when target user passes through the APP or computer WEB page initiation registration request on mobile terminal When, background server responds the registration request of target user, and the personal information data of target user are obtained according to registration request.Its In that, personal information data can be what target user filled in after initiating registration request.
Step S2 extracts the personal information label for meeting preset extraction conditions and personal letter from personal information data Cease the corresponding keyword of label.
Wherein, personal information label refers to that the personal information label in personal information data, keyword refer to each The word extracted in the value of information in people's information labels.For example, 25 years old age, user in personal information data comprising user Hobby be basketball, user occupation be lawyer, user income be 180,000 annual, user native places be Guangzhou, Guangdong, The educational background of user be undergraduate course, user fixation shelter be date of birth of Shenzhen and user be January 1 nineteen ninety etc..Wherein, Age, hobby, occupation, income, native place, educational background, the fixed projects such as shelter and date of birth are exactly personal information label.And it is every The value extracted in the value of information of item personal information label is then keyword.
For example, 25 years old, then it is the corresponding keyword of personal information label " age ";Basketball is then personal information label " love Corresponding keyword well ";Lawyer is then the corresponding keyword of personal information label " occupation ";180000 is annual, then is personal information The corresponding keyword of label " income ";Guangzhou, Guangdong is then the corresponding keyword of personal information label " native place ";Undergraduate course, It is then personal information label " educational background " corresponding keyword;Shenzhen is then the corresponding key of personal information label " fixed shelter " Word;January 1 nineteen ninety is then the corresponding keyword of personal information label " date of birth ".
Specifically, wherein the extracting mode of keyword can be, the Feature Words of the value of information in personal information label.Example Such as, the digital word in this personal information label of age is characterized word;It is only in the personal information labels such as hobby, occupation, speciality Word is found as Feature Words;In another example in this personal information label of native place with the geographical position in preset geographical information library Setting matched word can be used as Feature Words.
Specifically, in step s 2, preset extraction conditions can be in the last preset multinomial individual of background server Information labels.It is used for instead for example, it may be determined that age, native place, hobby, interest etc. are several relatively common in personal information data The personal information label of the essential information between user is reflected as extraction conditions;All or partial individuals can also be believed Label is ceased as extraction conditions.
Further, please also refer to Fig. 3, step S2 in one embodiment may include:
Step S301 extracts the personal information label for meeting preset extraction conditions from personal information data.
It is corresponding to extract personal information label when in personal information label including at least one value of information by step S302 Keyword.
Step S303 determines the corresponding keyword of personal information label when not including the value of information in personal information label For default value.
Specifically, some personal information tagging users may not filled in for user when filling in personal information data, It is at this time corresponding also just to extract corresponding keyword.
In the present embodiment, in step s 302, it when in personal information label including at least one value of information, that is to say It says, when user at least fills in a relevant information in the value of information of this personal information label, is mentioned according to above-mentioned keyword Mode is taken to extract the corresponding keyword of personal information label;In step S303, when in personal information label do not include the value of information When, in other words, the value of information of this personal information label is sky, i.e., when user does not fill in any relevant information, determines The corresponding keyword of personal information label is default value.For the personal information label of the not value of information, keyword is directly determined Coding corresponding with default value can be directly distributed when subsequent reallocation encodes for default value.
Step S3 generates coding corresponding with each keyword.
Specifically, in the present embodiment, each keyword is corresponding with a unique coding;The corresponding coding is to use The value of information of corresponding personal information label in the personal information data at family.
In one embodiment, step S3 may include: that each keyword is obtained from the code database prestored is corresponding pre- If coding;Coding corresponding with each keyword is generated according to pre-arranged code;Wherein, code database by predetermined keyword and presets volume Code is associated storage.
Wherein, the code database prestored can prestore multiple predetermined keywords, and each predetermined keyword, which corresponds to associated storage, to be had One pre-arranged code.Wherein, the corresponding pre-arranged code of different predetermined keywords can be identical;It is also possible to different default passes The corresponding pre-arranged code of keyword is entirely different.
Further, it is to be understood that if can not be inquired in the code database prestored and the consistent default pass of keyword When keyword, it can be randomly assigned a new pre-arranged code for the keyword that can not be inquired, and will be unable to inquire in code database Keyword and new pre-arranged code as new predetermined keyword and new pre-arranged code be associated storage;Or prompt is used It is newly encoded that family is that the keyword that can not be inquired distributes, and will be unable in code database the keyword of inquiry and newly encoded as new Predetermined keyword and new pre-arranged code be associated storage.
Step S4 is ranked up each coding according to preset label sequence, obtains coded sequence.
The coding of each position has corresponded to the identical personal information label in the personal information of user in coded sequence.? That is indicating the personal money of different users if the different user coding that corresponds to the same position in coded sequence is identical The value of information that this in material information encodes corresponding personal information label is identical.
In one embodiment, step S4 may include: to determine each coding in code sequence according to preset label sequence Arrangement position in column;According to the corresponding arrangement position of each coding, it is arranged successively coding and generates coded sequence.
For example, the personal information label for meeting preset extraction conditions and personal information label that extract in step s 2 Corresponding keyword are as follows:
Personal information label: hobby;Keyword: tourism;
Personal information label: occupation;Keyword: teacher;
Personal information label: native place;Keyword: Shenzhen;
In step s3, it is inquired according to the predetermined keyword and pre-arranged code that are prestored in code database, generates keyword " tourism " is corresponding to be encoded to " 91 ", and keyword " teacher " is corresponding to be encoded to " A1 ", and keyword " Shenzhen " is corresponding to be encoded to "8c";Preset label sequence is hobby, occupation, native place;Then in step s 4, it according to preset label sequence, determines each Encoding the arrangement position in coded sequence is " 91-A1-8c ", encodes corresponding arrangement position " 91-A1-8c " according to each, It is arranged successively coding and generates coded sequence 91A18c.
Step S5 generates the user identity code of user according to coded sequence.
Specifically, in the present embodiment, the algorithm for generating the user identity code of user according to coded sequence is unlimited, it is only necessary to Guarantee that final family identity code can restore coded sequence.For example, can be directly using coded sequence as target user User identity code;User identity code after can also carrying out encryption editor to coded sequence, as target user.
Specifically, in one embodiment, step S5 may include: to be added according to preset Encryption Algorithm to coded sequence After close, the user identity code of target user is obtained.Wherein, Encryption Algorithm can be md5 encryption algorithm, RSA cryptographic algorithms, DES Encryption Algorithm etc..
In the technical scheme of this embodiment, meet preset extraction conditions in the personal information data by extracting user Personal information label and at least one corresponding keyword;Generate coding corresponding with each keyword;According to preset Collating sequence is ranked up each personal information label, obtains coded sequence;User's body of user is generated according to coded sequence Part code, so as to realize the personal information information for directly embodying user in user identity code, so that system or user can Intuitively according to user identity code, to judge the personal information information of part, also can be convenient system directly according to user's body Part code can be carried out the matching of the friend-making between user.
Further, Fig. 4 is please combined together, and in one embodiment, user identity code generating method includes:
Step S40 obtains the registration request of target user.
Step S41 obtains the personal information data of target user according to registration request.
Step S42 extracts personal information label and the individual for meeting preset extraction conditions from personal information data The corresponding keyword of information labels.
Step S43 generates coding corresponding with each keyword.
Step S44 is ranked up each coding according to preset label sequence, obtains coded sequence.
It further, in the present embodiment, further include step S401 after step S40, according to registration request according to default Random Generation generate unique temporary identity code.
Specifically, in the present embodiment, for user when registering in social platform, the background server of social platform is first A unique temporary identity code first is distributed for user, plays the role of temporarily renting and logging in new registration user.Meanwhile facing When identity code can also be used as a part of a subsequent regular user identity code, to guarantee the unique of each user identity code Property.
Further, in the present embodiment, step S45 generates target user according to coded sequence and temporary identity code User identity code.
Specifically, after obtaining coded sequence target user can be generated according to coded sequence and temporary identity code User identity code, both contained the information of coded sequence in user identity code, the personal information information of user can be embodied;Together When contain temporary identity code again, ensure that the uniqueness of each user identity code.
Further, in one embodiment, step S45 may include: to spell coded sequence and temporary identity code It connects, generates the user identity code of user.In other embodiments, coded sequence and temporary identity code can also be added After close or coding, the user identity code of user is generated.
Specifically, in one example, when user initiates to register in social platform, and after having filled in personal information data, Can by following user identity code generating method generate user identity code, user identity code generating method comprising steps of
Step 1 responds the registration request of target user, generates unique interim body according to preset Random Generation Part code.
Step 2 responds the registration request of target user, obtains the personal information data of target user.
Step 3 extracts the personal information label for meeting preset extraction conditions from personal information data.
Step 4 extracts the corresponding keyword of personal information label when in personal information label including any value of information.
Step 5 extracts the corresponding key of personal information label when not including any value of information in personal information label Word is default value.
Step 6 obtains the corresponding pre-arranged code of each keyword from the code database prestored, is generated according to pre-arranged code Coding corresponding with each keyword;Wherein, predetermined keyword and pre-arranged code are associated storage by code database.
Step 7 prompts user when that can not inquire predetermined keyword consistent with keyword in the code database prestored Distributed for the keyword that can not be inquired it is newly encoded, and will be unable in code database inquiry keyword and user's distribution it is newly organized Code is associated storage as new predetermined keyword and new pre-arranged code.
Step 8 determines arrangement position of each coding in coded sequence, according to each according to preset label sequence Corresponding arrangement position is encoded, coding is arranged successively and generates coded sequence.
Step 9 generates the user identity code of target user according to coded sequence and temporary identity code.
Referring to Fig. 5, in one embodiment, a kind of friend-making matching process is provided, after being applied in Fig. 1 in this way It is illustrated, includes the following steps: for platform server 20
Step S10 obtains the user identity code of the first user and second user;Wherein, user identity code includes code sequence Column, coded sequence includes the coding of preset tactic predetermined number, each personal information data for encoding corresponding user In include personal information label the value of information.
Specifically, in the present embodiment, user identity code is the use generated according to user identity code generating mode above-mentioned Family identity code, each user identity code include coded sequence, and coded sequence includes the volume of preset tactic predetermined number Code, each value of information for encoding the personal information label in the personal information data for corresponding to user.Volume in user identity code The generating mode and meaning of code sequence are illustrated by embodiment as the aforementioned, and details are not described herein.
Step S20 is obtained in each coding in the user identity code of second user and the user identity code of the first user Codes match degree between corresponding each coding.
Wherein, two coding between matching degree indicate when two coding between similarity degree.
In the present embodiment, the algorithm of the matching degree between two codings, which can according to need, is configured.Specifically, example Such as, it is identical to can be two codings for the matching degree between two codings, then matching degree is 1, conversely, matching degree is then 0.
In another example encoding can be with the rule of correspondence of keyword, under same big type not in a specific example Identical with first of the corresponding coding of keyword, latter several of the corresponding coding of different keywords under same big type are not Together.For example, be the keyword of native place for the personal information label in userspersonal information's data, it is same to save different ground First of the corresponding coding in grade city is identical, and subsequent several then different;For the personal information in userspersonal information's data Label is the keyword of hobby, and the difference segmented under the hobby of the same big type like corresponding coding first is identical, Subsequent several then different, such as big hobby type: movement, subdivision hobby: basketball, football, night race etc.;Big hobby type: text Subdivision hobby: skill reads, plays the piano, Brush calligraphy etc..In this example, every in the user identity code for calculating second user When a coding is spent with the codes match between corresponding each coding in the user identity code of the first user, if two codings are complete Identical, then matching degree is 1, and first of two codings is identical, and matching degree is then 0.5, and each of two codings is different from, Matching degree is then 0.
Step S30 calculates the matching degree between second user and the first user according to codes match degree.
Step S40 determines that second user is the matching user of the first user when matching degree is higher than preset matching value.
Specifically, in step S30, the use of each coding and the first user in the user identity code for obtaining second user After codes match degree in the identity code of family between corresponding each coding, multiple codes match degree of acquisition can be used flat Equal algorithm, weighting algorithm, priority algorithm etc., to calculate the matching degree between second user and the first user.In step S40, In such a way that threshold value is set, when the matching degree only between second user and the first user is greater than preset matching value, just will The second user is determined as the matching user of the first user.
In one embodiment, in step S30, the calculation formula of the matching degree between second user and the first user is calculated such as Under:Wherein, M be second user and the first user matching degree, m be encode predetermined number, i ∈ [1, m];Ai is the weight coefficient of the corresponding codes match degree of i-th of coding in the user identity code of second user, and τ i is the second use I-th in the user identity code at family coding and the codes match degree of corresponding coding in the user identity code of the first user.
Specifically, the coded sequence in the user identity code of second user includes m coding, according to the user of the first user Corresponding coding in identity code distinguishes each coding in the user identity code of second user and the user identity code of the first user In corresponding coding matching degree τ i;Then basisTo each volume in the user identity code of second user The corresponding matching degree τ i of code does weighted sum calculating, obtains the matching degree M of second user Yu the first user.
In the present embodiment, be by weighting algorithm, to calculate the weighted sum conduct between multiple codes match degree Matching degree between second user and the first user.Wherein the weight coefficient of the corresponding matching degree of each coding can according to need Different weights is set, for example, the first user can according to need setting some or multiple codings weight it is higher, thus The second user for being best suitable for the customized demand of the first user can be matched.
Further, can also include: after step s4 determine second user be the first user matching user after, The information of second user is pushed into the first user.Specific push mode, which can be to the terminal of the first user, pushes second user Personal information, account information etc., be also possible to push to the social platform account of the first user and recommend the addition second user to be The prompt information of good friend.
In the friend-making matching process of the present embodiment, since user identity code contains the personal information information of embodiment user Coded sequence, coding in coded sequence is according to preset tactic, and each coding is to have corresponded to personal information number Therefore the value of information of a personal information label in is compared each coding in the user identity code of two users, It can be obtained by the matching degree of the value of information of a certain item personal information label of two users, so as to obtain of two users The matching degree of people's information.
Specifically, in the technical solution of the present embodiment, by the user identity code for obtaining the first user and second user;Its In, user identity code includes coded sequence, and coded sequence includes the coding of preset tactic predetermined number, each coding The value of information of a personal information label in the personal information data of corresponding user;In the user identity code for obtaining second user It is each to encode and the codes match degree between corresponding each coding in the user identity code of the first user;According to codes match Degree calculates the matching degree between second user and the first user;When matching degree is higher than preset matching value, determine that second user is The matching user of first user, the user identity code of the personal information information by directly utilizing the current family of occlusion body, to user Each coding in the coded sequence of identity code is matched, and the degree of association and matching degree between user can be directly obtained, Operand is small, and matching speed is fast.
Fig. 6 is please combined together, and the present invention also provides a kind of user identity code generating means 600, comprising:
Registration request obtains module 601, for obtaining the registration request of target user.
Personal information obtains module 602, for obtaining the personal information data of target user according to registration request.
Keyword obtains module 603, for extracting the personal letter for meeting preset extraction conditions from personal information data Cease label and the corresponding keyword of personal information label.
Generation module 604 is encoded, for generating coding corresponding with each keyword.
Coding and sorting order module 605 obtains code sequence for being ranked up according to preset label sequence to each coding Column.
Identity code generation module 606, for generating the user identity code of target user according to coded sequence.
Further, in an optional embodiment, keyword obtains module 603 and is also used to mention from personal information data Take the personal information label for meeting preset extraction conditions;When in personal information label including any value of information, extract personal The corresponding keyword of information labels;When not including any value of information in personal information label, it is corresponding to extract personal information label Keyword be default value.
Further, in an optional embodiment, generation module 604 is encoded, is also used to obtain from the code database prestored Take the corresponding pre-arranged code of each keyword;Coding corresponding with each keyword is generated according to pre-arranged code;Wherein, code database Predetermined keyword and pre-arranged code are associated storage;According to preset label sequence, determine each coding in coded sequence In arrangement position;According to the corresponding arrangement position of each coding, it is arranged successively coding and generates coded sequence.
Further, as shown in fig. 6, above-mentioned user identity code generating means 600 further include temporary identity code distribution module 607, for responding the registration request of target user, unique temporary identity code is generated according to preset Random Generation.
Identity code generation module 606 is also used to generate the user of target user according to coded sequence and temporary identity code Identity code.
In a specific embodiment of the present invention, be performed can be with for each functional module of user identity code generating means 600 The step of realizing above-mentioned user identity code generating method, therefore all embodiments of the above method are suitable for the computer and set It is standby, and can reach the same or similar beneficial effect.
Fig. 7 is please combined together, and the present invention also provides a kind of friend-making coalignments 700 based on user identity code, comprising:
Identity code obtains module 701, for obtaining the user identity code of the first user and second user;Wherein, Yong Hushen Part code includes coded sequence, and coded sequence includes the coding of preset tactic predetermined number, the corresponding user of each coding Personal information data in include personal information label the value of information.
Codes match module 702, for calculating the matching between second user and the first user according to codes match degree Degree.
Matching degree computing module 703, each coding in user identity code and the first user for obtaining second user User identity code in codes match degree between corresponding each coding.
User's matching module 704, for the corresponding matching degree of each coding in the user identity code according to second user, Determine whether second user is the matched user of the first user.
Further, in an optional embodiment, the calculating of the matching degree between second user and the first user is calculated Formula is as follows:Wherein, M is the matching degree of second user and the first user, and m is the predetermined number of coding, i ∈ [1, m];aiFor the weight coefficient of the corresponding codes match degree of i-th of coding in the user identity code of second user, τiIt is I-th in the user identity code of two users coding and the codes match of corresponding coding in the user identity code of the first user Degree.
In a specific embodiment of the present invention, each functional module of friend-making coalignment 700, which is performed, may be implemented The step of friend-making matching process stated, therefore all embodiments of the above method are suitable for the computer equipment, and can reach To the same or similar beneficial effect.
As shown in figure 8, computer equipment may include: memory 71, processing the present invention also provides a kind of computer equipment The components such as device 72 and power supply 74.It will be understood by those skilled in the art that structure shown in Fig. 8 is not constituted to computer The restriction of equipment, computer equipment may include perhaps combining certain components or difference than illustrating more or fewer components Component layout;For example, computer equipment further includes communication unit 75 in the example shown in Fig. 8.
Memory 71 can be used for storing software program and various data.In addition, memory 71 may include that high speed is random Access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other Volatile solid-state part.
Processor 72 is the control centre of computer equipment 7, utilizes various interfaces and the entire computer equipment of connection Various pieces, by running or execute the software program and/or module that are stored in memory 71, and call and be stored in Data in reservoir 71 execute the various functions and processing data of computer equipment, to carry out whole prison to computer equipment Control.Processor 72 may include one or more processing units;Preferably, processor 72 can integrate application processor and modulation /demodulation Processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor master Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 72.
In one embodiment, computer equipment further includes the meter that is stored on memory 71 and can run on processor 72 The step of calculation machine program, processor realizes the user identity code generating method of any of the above-described embodiment when executing computer program.
In one embodiment, computer equipment further includes the meter that is stored on memory 71 and can run on processor 72 Calculation machine program, processor realize the friend-making match party based on user identity code of any of the above-described embodiment when executing computer program The step of method.
Wherein, computer equipment can be computer, server, gateway, data processing equipment.
It should be noted that the processor 72 due to computer equipment realizes above-mentioned user's body when executing computer program The step of part code generating method or friend-making matching process, therefore all embodiments of the above method are suitable for the computer and set It is standby, and can reach the same or similar beneficial effect.
In addition, computer-readable medium storage has computer journey the present invention also provides a kind of computer readable storage medium The step of sequence, which realizes the above-mentioned friend-making matching process based on user identity code when being executed by processor.
In addition, computer-readable medium storage has computer journey the present invention also provides a kind of computer readable storage medium The step of sequence, which realizes above-mentioned user identity code generating method when being executed by processor.
It should be noted that the computer program due to computer readable storage medium realized when being executed by processor it is above-mentioned User identity code generating method or friend-making matching process the step of, therefore all embodiments of the above method are suitable for this Computer readable storage medium, and can reach the same or similar beneficial effect.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
By the description of above embodiment, those skilled in the art can be understood that above-described embodiment method Can realize by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases before Person is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially makes tribute to the prior art in other words The part offered can be embodied in the form of software products, which is stored in a storage medium (such as ROM/RAM, magnetic disk, CD) in, including some instructions are used so that a terminal (can be mobile phone, computer, server, sky Adjust device or the network equipment etc.) method that executes each embodiment of the present invention.
The above is only preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all in the application Design under, using equivalent structure transformation made by present specification and accompanying drawing content, or directly/be used in other phases indirectly The technical field of pass is included in the scope of patent protection of the application.

Claims (10)

1. a kind of user identity code generating method, which is characterized in that the method includes the steps:
Obtain the registration request of target user;
The personal information data of the target user are obtained according to the registration request;
The personal information label for meeting preset extraction conditions and the personal information are extracted from the personal information data The corresponding keyword of label;
Generate coding corresponding with each keyword;
Each coding is ranked up according to preset label sequence, obtains coded sequence;
The user identity code of the target user is generated according to the coded sequence.
2. user identity code generating method as described in claim 1, which is characterized in that in the registration for obtaining target user After request, further comprise the steps of:
Unique temporary identity code is generated according to preset Random Generation according to the registration request;
The step of user identity code that the user is generated according to the coded sequence, comprising:
According to the coded sequence and the temporary identity code, the user identity code of the target user is generated.
3. user identity code generating method as described in claim 1, which is characterized in that described right according to preset label sequence The step of each coding is ranked up, obtains coded sequence, comprising:
According to the preset label sequence, arrangement position of each coding in the coded sequence is determined;
According to the corresponding arrangement position of each coding, it is arranged successively the coding generation coded sequence.
4. user identity code generating method as described in claim 1, which is characterized in that described from the personal information data The step of extracting the personal information label for meeting preset extraction conditions and the personal information label corresponding keyword, packet It includes:
The personal information label for meeting preset extraction conditions is extracted from the personal information data;
When including at least one value of information in the personal information label, it is corresponding described to extract the personal information label Keyword;
When not including the value of information in the personal information label, determine that the corresponding keyword of the personal information label is Default value.
5. user identity code generating method as described in claim 1, which is characterized in that described to be generated according to the coded sequence The step of user identity code of the user, comprising: after being encrypted according to preset Encryption Algorithm to the coded sequence, obtain Obtain the user identity code of the target user.
6. a kind of friend-making matching process based on user identity code, which is characterized in that the method includes the steps:
Obtain the user identity code of the first user and second user;Wherein, the user identity code includes coded sequence, the volume Code sequence includes the coding of preset tactic predetermined number, in each personal information data for encoding corresponding user The value of information for the personal information label for including;
The each coding obtained in the user identity code of the second user is corresponding with the user identity code of first user Each coding between codes match degree;
According to the codes match degree, the matching degree between the second user and first user is calculated;
When the matching degree is higher than preset matching value, determine that the second user is the matching user of first user.
7. friend-making matching process according to claim 6, which is characterized in that the second user and first user it Between matching degree calculation formula it is as follows:
Wherein, matching degree of the M between the second user and first user, the m are The predetermined number of the coding, i ∈ [1, m];The aiFor described in i-th in the user identity code of the second user Encode the weight coefficient of the corresponding codes match degree, the τiFor i-th in the user identity code of the second user It is described to encode and the codes match degree of the corresponding coding in the user identity code of first user.
8. a kind of user identity code generating means characterized by comprising
Registration request obtains module, for obtaining the registration request of target user;
Personal information obtains module, for obtaining the personal information data of the target user according to the registration request;
Keyword obtains module, for extracting the personal information mark for meeting preset extraction conditions from the personal information data Label and the corresponding keyword of the personal information label;
Generation module is encoded, for generating coding corresponding with each keyword;
Coding and sorting order module obtains coded sequence for being ranked up according to preset label sequence to each coding;
Identity code generation module, for generating the user identity code of the target user according to the coded sequence.
9. a kind of friend-making coalignment based on user identity code characterized by comprising
Identity code obtains module, for obtaining the user identity code of the first user and second user;Wherein, the user identity code Including coded sequence, the coded sequence includes the coding of preset tactic predetermined number, and each coding corresponds to The value of information for the personal information label for including in the personal information data of user;
Codes match module, each coding in user identity code for obtaining the second user is with first user's Codes match degree in user identity code between corresponding each coding;
Matching degree computing module, for calculating between the second user and first user according to the codes match degree Matching degree;
User's matching module, for when the matching degree is higher than preset matching value, determining that the second user is described first The matching user of user.
10. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to The step of method described in any one of 7.
CN201811584933.4A 2018-12-24 2018-12-24 User identity code generating method, friend-making matching process, device and computer equipment Pending CN109829118A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811584933.4A CN109829118A (en) 2018-12-24 2018-12-24 User identity code generating method, friend-making matching process, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811584933.4A CN109829118A (en) 2018-12-24 2018-12-24 User identity code generating method, friend-making matching process, device and computer equipment

Publications (1)

Publication Number Publication Date
CN109829118A true CN109829118A (en) 2019-05-31

Family

ID=66861202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811584933.4A Pending CN109829118A (en) 2018-12-24 2018-12-24 User identity code generating method, friend-making matching process, device and computer equipment

Country Status (1)

Country Link
CN (1) CN109829118A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161200A (en) * 2015-04-28 2016-11-23 张开平 A kind of instant communication method based on assembly coding
CN106407405A (en) * 2016-09-22 2017-02-15 天津神笔马良网络科技有限公司 A social contact system based on love and marriage matching degree search
CN107038217A (en) * 2017-03-15 2017-08-11 王悕锦 Love and marriage object matching method and device
CN108075957A (en) * 2016-11-07 2018-05-25 刘恰 A kind of instant communication method based on multidimensional coding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161200A (en) * 2015-04-28 2016-11-23 张开平 A kind of instant communication method based on assembly coding
CN106407405A (en) * 2016-09-22 2017-02-15 天津神笔马良网络科技有限公司 A social contact system based on love and marriage matching degree search
CN108075957A (en) * 2016-11-07 2018-05-25 刘恰 A kind of instant communication method based on multidimensional coding
CN107038217A (en) * 2017-03-15 2017-08-11 王悕锦 Love and marriage object matching method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王学东等: "《现代信息检索技术》", 30 July 2008, 哈尔滨工程大学出版社 *

Similar Documents

Publication Publication Date Title
CN105302809B (en) Group user level association method and system
CN111310436B (en) Text processing method and device based on artificial intelligence and electronic equipment
CN112508118B (en) Target object behavior prediction method aiming at data offset and related equipment thereof
CN105045799A (en) Searchable index
CN103544623A (en) Web service recommendation method based on user preference feature modeling
KR20170117481A (en) Method and apparatus for processing text address
CN103118043A (en) Identification method and equipment of user account
CN111369313A (en) Processing method and device for house-ordering failure order, computer equipment and storage medium
CN104899499A (en) Internet image search based Web verification code generation method
CN103631946A (en) Content pushing system based on geographic positions
CN111581623B (en) Intelligent data interaction method and device, electronic equipment and storage medium
CN111460290A (en) Information recommendation method, device, equipment and storage medium
CN109816543A (en) A kind of image lookup method and device
CN112395391A (en) Concept graph construction method and device, computer equipment and storage medium
CN116405712A (en) OTT video-based multimedia pushing method, device, equipment and storage medium
CN112100491A (en) Information recommendation method, device and equipment based on user data and storage medium
CN114358023B (en) Intelligent question-answer recall method, intelligent question-answer recall device, computer equipment and storage medium
CN111741009A (en) Business data management method, system, server and storage medium
CN109829118A (en) User identity code generating method, friend-making matching process, device and computer equipment
CN109783058A (en) User identity code generating method, device, computer equipment and storage medium
CN112182107B (en) List data acquisition method, device, computer equipment and storage medium
CN114741608A (en) News recommendation method, device, equipment and storage medium based on user portrait
CN102567355A (en) Method for pushing specific content to specific users
CN107895335B (en) Rights and interests protection method and application server
CN113987328A (en) Topic recommendation method, equipment, server 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190531