CN113641656A - Questionnaire answer management method, device, computer equipment and storage medium - Google Patents

Questionnaire answer management method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113641656A
CN113641656A CN202110954917.5A CN202110954917A CN113641656A CN 113641656 A CN113641656 A CN 113641656A CN 202110954917 A CN202110954917 A CN 202110954917A CN 113641656 A CN113641656 A CN 113641656A
Authority
CN
China
Prior art keywords
questionnaire
answer
identity certificate
answered
client
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
CN202110954917.5A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110954917.5A priority Critical patent/CN113641656A/en
Publication of CN113641656A publication Critical patent/CN113641656A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/219Managing data history or versioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method and a device for managing question answering questions, computer equipment and a storage medium, wherein the method comprises the following steps: receiving an answer application request sent by a user through a client; acquiring a first unique identifier distributed for an identity certificate to be generated; based on a first preset rule, generating an identity certificate corresponding to the answer application request according to the unique user identifier, the questionnaire attribute of the questionnaire to be answered and the first unique identifier; returning the identity certificate and questionnaire data of the questionnaire to be answered to the client; receiving an answer result uploading request sent by a client; and analyzing the uploading request of the answer result to acquire and store the answer data of the answered questions in the questionnaire data corresponding to the user. By the method and the system, the situation that the user answers the questionnaire survey repeatedly can be avoided, and the server is highly compatible with different questionnaire requirements in the aspect of storage.

Description

Questionnaire answer management method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of data analysis technologies, and in particular, to a method and an apparatus for managing questionnaire answers, a computer device, and a storage medium.
Background
Web questionnaires are a survey method for inviting users to answer questionnaires via the web to obtain market information. However, in the prior art, the questionnaire survey needs to be submitted after the user finishes all questions, if the user quits the answers midway, the user needs to answer from the beginning when answering the questionnaire survey again next time, the complicated and repeated interaction process causes certain inconvenience to the user and easily eliminates the answering patience of the user, and the negative effects are brought to the user experience and the answering efficiency and quality.
In the prior art, answer data is cached at a local end generally aiming at the problem that a user answers the question again after exiting in the midway when answering a questionnaire survey, and although repeated answer can be avoided in the mode, the user can only call the cached answer progress by limiting to answer on the same equipment continuously. If the user changes one device, the same questionnaire survey needs to be re-filled, and the aim of continuously answering questions without repetition cannot be achieved.
In the prior art, answer data is cached in a server, but the server generally caches some solidified data, such as a user ID, a questionnaire ID, and a questionnaire answered progress of triple data, which corresponds to three fields in a data table of the server, and subsequently, if an update is required to be changed and more information needs to be cached, such as newly added questionnaire type data, the server needs to modify the data table to add the fields, which directly results in that the server needs to make version compatibility continuously when the server needs to update.
Disclosure of Invention
The method and the device solve the technical problem that in the prior art, a user can only avoid filling in questionnaire survey repeatedly at the same local end, or a server needs to make version compatibility continuously due to the diversity of questionnaire survey data of the user. The application provides a questionnaire answer management method, a device, computer equipment and a storage medium, and mainly aims to avoid the trouble that a user answers questionnaire questions again, save the time of the user, realize high compatibility of a server and facilitate caching of various questionnaire data.
In order to achieve the above object, the present application provides a method for managing questionnaire answers, comprising:
receiving an answer application request sent by a user through a client, wherein the answer application request comprises a user unique identifier and a questionnaire attribute of a questionnaire to be answered;
acquiring a first unique identifier distributed for an identity certificate to be generated;
based on a first preset rule, generating an identity certificate corresponding to the answer application request according to the unique user identifier, the questionnaire attribute of the questionnaire to be answered and the first unique identifier;
returning the identity certificate and questionnaire data of a questionnaire to be answered to the client, wherein the questionnaire data comprises at least one question to be answered;
receiving an answer result uploading request sent by a client, wherein the answer result uploading request is generated after the client monitors answer data of one question answered by a user, and the answer result uploading request carries an identity certificate, a question ID and corresponding answer data;
and analyzing the uploading request of the answer result to acquire and store the answer data of the answered questions in the questionnaire data corresponding to the user.
In addition, in order to achieve the above object, the present application also provides a questionnaire answer management device, the device comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving an answer application request sent by a user through a client, and the answer application request comprises a unique user identifier and a questionnaire attribute of a questionnaire to be answered;
the identification generation module is used for acquiring a first unique identification distributed for the identity certificate to be generated;
the certificate generation module is used for generating an identity certificate corresponding to the answer application request according to the unique user identifier, the questionnaire attribute of the questionnaire to be answered and the first unique identifier based on a first preset rule;
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for returning an identity certificate and questionnaire data of a questionnaire to be answered to a client, and the questionnaire data comprises at least one question to be answered;
the second receiving module is used for receiving an answer result uploading request sent by the client, wherein the answer result uploading request is generated after the client monitors answer data of one question answered by the user, and the answer result uploading request carries an identity certificate, a question ID and corresponding answer data;
and the analysis and storage module is used for analyzing the uploading request of the answer result so as to obtain and store the answer data of the answered questions in the questionnaire data corresponding to the user.
To achieve the above object, the present application further provides a computer device comprising a memory, a processor and computer readable instructions stored on the memory and executable on the processor, wherein the processor executes the computer readable instructions to perform the steps of the method for managing question and answer according to any one of the preceding claims.
To achieve the above object, the present application further provides a computer readable storage medium having stored thereon computer readable instructions, which, when executed by a processor, cause the processor to execute the steps of the questionnaire answering question management method according to any one of the preceding claims.
The method, the device, the computer equipment and the storage medium for managing the answer questions of the questionnaire have the advantages that:
the method and the device uniquely position or bind the questionnaire answer data of the user by designing the identity certificate, upload request records and store each answer result of the user according to the answer result returned by each answer of the user, conveniently and timely record and store the answer nodes in the midway of the user and the answers of the answered questions, conveniently and directly position the node of the latest unanswered question when the user answers again next time after quitting the answer in the midway, or synchronize the answer results of the questions answered before the user, conveniently and the user can consult the previous answer again, and automatically modify or continuously answer the next unanswered question. The method and the device effectively avoid the trouble that the user answers the question of the questionnaire repeatedly, save the time of the user, reduce the trouble and fatigue of repeated answering brought to the user, improve the experience of the user on the questionnaire answering, also help the user to have more positive attitude to continue answering other questions, and improve the humanization and the effectiveness of the questionnaire answering.
In addition, the method and the device distribute an identity certificate for each questionnaire survey answered by each user, the questionnaire data and answer data corresponding to different questionnaire surveys of each user can be cached at the server end by using the user ID and the questionnaire attributes of the questionnaire surveys, no matter how the identity certificate version changes, for the server end, the server end only needs to use fixed fields all the time, and the caching of the questionnaire data and the answer data corresponding to the identity certificates of different versions can be realized without modifying the fields of a data table, so that the high compatibility is realized.
Drawings
Fig. 1 is an application scenario diagram of a method for managing question answering in an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating a method for managing answers to a questionnaire in an embodiment of the present application;
FIG. 3 is a block diagram illustrating an embodiment of a device for managing answers to questionnaires;
fig. 4 is a block diagram of an internal structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for managing question and answer may be applied to the application environment shown in fig. 1, wherein the terminal device 110 communicates with the server 120 through a network. The terminal device 110 may be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server 120 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers. The server 120 receives an answer application request sent by the user through the terminal device 110; acquiring a first unique identifier of an identity certificate to be generated; based on a first preset rule, generating an identity certificate corresponding to the answer application request according to the unique user identifier in the answer application request, the questionnaire attribute of the questionnaire to be answered and the first unique identifier of the identity certificate to be generated; returning the identity certificate and questionnaire data of the questionnaire to be answered to terminal equipment 110; receiving an answer result uploading request sent by the terminal device 110, wherein the answer result uploading request is generated after the terminal device 110 monitors answer data of one question answered by a user, and the answer result uploading request carries an identity certificate, a question ID and corresponding answer data; and analyzing the uploading request of the answer result to acquire and store the answer data of the answered questions in the questionnaire data corresponding to the user.
Fig. 2 is a flowchart illustrating a method for managing answers to a questionnaire in an embodiment of the present application. Referring to fig. 2, the method is illustrated as applied to the server in fig. 1. The method for managing the answer questions of the questionnaire comprises the following steps S100-S600:
s100: and receiving an answer application request sent by a user through a client, wherein the answer application request comprises a unique user identifier and a questionnaire attribute of a questionnaire to be answered.
Specifically, the answer application request is generated and sent to the server by the client after detecting an answer starting instruction of the user. The client is an application program installed in the terminal device, or an APP or applet. The answer application request carries the unique user identifier of the user and the questionnaire attributes of the questionnaire to be answered, wherein the questionnaire attributes comprise at least one of the service identifier of the service to which the user belongs, the scene identifier of the scene to which the user belongs, and the questionnaire ID, and of course, the questionnaire attributes can also comprise the scene type and the like. The answer application request is an http request.
More specifically, the user enters a questionnaire answering page on the client, an answer starting button is arranged on the page, and after the button is pressed, the client generates and sends an answer application request.
S200: and acquiring a first unique identifier distributed for the identity certificate to be generated.
Specifically, the user may answer various questionnaires through the client, and different users may all answer the same questionnaire. Thus, each questionnaire answered by each user needs to be assigned an identity credential. The first unique identification of the identity certificate to be generated is used for distinguishing different identity certificates and preventing the identity certificates from being repeated.
S300: and based on a first preset rule, generating an identity certificate corresponding to the answer application request according to the unique user identifier, the questionnaire attribute of the questionnaire to be answered and the first unique identifier.
Specifically, the purpose of the answer application request is to apply for an identity certificate corresponding to a to-be-answered question paper for a user. The identity certificate is ticket, which is a login certificate issued for the user. A user answers a questionnaire survey and is distributed with a corresponding identity certificate, the same user answers different questionnaire surveys and is distributed with different identity certificates, and the questionnaire surveys answered by the user correspondingly can be tracked and recorded according to the identity certificates. The user unique identifier is used to distinguish different users.
The first preset rule may be a field splicing rule, and the unique user identifier, each questionnaire attribute of the questionnaire to be answered, the first unique identifier of the identity credential to be generated, and other filled fields are spliced according to the preset field splicing rule to generate the identity credential. The field splicing rule is used for defining the fields required for splicing and the splicing sequence among the fields.
S400: and returning the identity certificate and questionnaire data of the questionnaire to be answered to the client, wherein the questionnaire data comprises at least one question to be answered.
Specifically, the server searches corresponding questionnaire data according to the questionnaire attributes of the questionnaire to be answered, binds the questionnaire data and the identity certificate, and returns the bound questionnaire data and the identity certificate to the client. The client receives and displays the questionnaire data on a visual interface for the user to view and answer.
S500: receiving an answer result uploading request sent by a client, wherein the answer result uploading request is generated after the client monitors answer data of one question answered by a user, and the answer result uploading request carries an identity certificate, a question ID and corresponding answer data.
Specifically, after a user answers a question, the client generates an answer result uploading request, which is generated according to the identity certificate, the question ID and the corresponding answer data. And the client uploads the answer data of one answered question of the user to the server for storage through the answer result uploading request.
S600: and analyzing the uploading request of the answer result to acquire and store the answer data of the answered questions in the questionnaire data corresponding to the user.
Specifically, the server side extracts the identity certificate to be verified, the question ID and the corresponding answer data from the received answer result uploading request. And identifying and verifying the identity certificate to be verified according to a first preset rule, and binding the question ID, the corresponding answer data, the unique user identifier and the corresponding questionnaire data if the identity certificate to be verified is successfully verified. More specifically, the server constructs a mapping relation among the unique user identifier, questionnaire data and/or questionnaire attributes, the subject ID of the answered question in the questionnaire data, and the corresponding answer data. One user unique identifier may correspond to a plurality of different questionnaire data or questionnaire data, one questionnaire attribute corresponds to one questionnaire data, and each questionnaire data corresponds to a plurality of topic IDs and corresponding answer data.
The answer result uploading requests of the same questionnaire answered by the same user carry the same identity voucher, so that each question and corresponding answer data can be associated with corresponding questionnaire data.
The method comprises the steps of uniquely positioning or binding each questionnaire data of a user by designing an identity certificate, verifying and identifying the identity of the user according to the identity certificate, preventing counterfeit answers or hacking attacks, uploading request records according to an answer result returned by each question answered by the user, storing each answer result of the user, conveniently and timely recording and storing answer nodes in midway of the user and answers of answered questions, conveniently and directly positioning to a node of a latest unanswered question when the user answers again next time after quitting the answer in midway, or synchronizing the answer results of the questions answered before the user, and conveniently and revising the previous answer by the user to automatically modify or continuously answer the next unanswered question. Moreover, the user can log in the client side in any terminal equipment, and the effect of avoiding repeated answering can be achieved. The method and the device effectively avoid the trouble that the user answers the question of the questionnaire repeatedly, save the time of the user, reduce the trouble and fatigue of repeated answering brought to the user, improve the experience of the user on the questionnaire answering, also help the user to have more positive attitude to continue answering other questions, and improve the humanization and the effectiveness of the questionnaire answering.
In addition, the application allocates an identity certificate to each questionnaire survey answered by each user, the questionnaire data corresponding to different questionnaire surveys of each user and the corresponding answer data can be correspondingly cached by using the unique user identifier and the questionnaire data of the questionnaire survey at the server end, no matter how the identity certificate version changes, for the server end, only fixed fields are needed to be used at the server end, the caching of the questionnaire data and the answer data corresponding to the identity certificates of different versions can be realized without modifying the fields of the data table, and the high compatibility of the server for the management of the questionnaire survey data of the users is realized.
In one embodiment, the method further comprises the steps of:
if a continuous answer application request sent by a client after detecting a continuous answer instruction of a user is received, extracting a first identity certificate to be verified corresponding to a questionnaire to be continuously answered by the user from the continuous answer application request;
verifying the first identity certificate to be verified according to a corresponding first preset rule;
if the first identity certificate to be verified conforms to the first preset rule, corresponding questionnaire data and answer data of the answered questions are determined according to the unique user identification in the first identity certificate to be verified, the questionnaire attributes of the questionnaires to be answered continuously and the first unique identification, and the answer data of the answered questions are filled into the questionnaire data and returned to the client.
Specifically, the continuous answering application request carries the first identity certificate to be verified and the continuous answering request. The server side extracts a first identity certificate to be verified. In order to verify the authenticity of the first identity certificate to be verified, the validity of the first identity certificate to be verified needs to be verified according to a corresponding first preset rule, so as to prevent hacker attacks. If the verification is successful, the unique identification of the user and the questionnaire attribute of the questionnaire to be answered are obtained from the first identity certificate to be verified, and then the questionnaire data to be answered by the user continuously and the questions answered by the user in the last answering and the answer data corresponding to the answered questions can be obtained. And the questionnaire data containing partial answer results are returned to the client, so that the user can continuously check the answer results of the answered questions and continuously answer other unanswered questions.
In one embodiment, step S300 specifically includes the following steps:
acquiring the version of the identity certificate to be generated, and acquiring a first preset rule for generating the identity certificate according to the version of the identity certificate to be generated;
based on a first preset rule, splicing the version of the identity certificate to be generated, a first unique identifier, a user unique identifier of a user and the questionnaire attribute of the questionnaire to be answered to obtain the identity certificate;
wherein the header of the identity certificate is the version of the identity certificate to be generated.
Specifically, the developer may modify the identity certificate ticket to adapt to the service, for example, a field of a service scene exists in the ticket at the beginning, and subsequently in the service flow, the field is not used any more and is not necessary to be placed in the ticket, which increases the amount of request data, so that the field of the service scene in the ticket is deleted, and the version of the ticket changes. The components of the ticket in different versions may be different, so that the version is added to judge the components of the ticket, and with the version, it is possible to know the components of each part of the ticket and how to resolve the components.
The first preset rule is used to determine which fields are spliced and the order of splicing, such as which field is located in the head of the identity credential. The embodiment specifically splices a field corresponding to the version of the identity credential to be generated, a field corresponding to the first unique identifier, a field corresponding to the user unique identifier of the user, and a field corresponding to the questionnaire attribute of the questionnaire to be answered to obtain the identity credential. The obtained identity credential is composed of a plurality of fields according to a certain sequence.
In this embodiment, the Version is placed at the top to facilitate parsing, and the corresponding first preset rule is obtained according to the Version first, and the sequence of subsequent components can be spliced at will, so long as the client and the server agree what kind of component sequence the Version number corresponds to, i.e. the first preset rule, and thus, the assembly or parsing can be performed in the code according to the sequence corresponding to the Version number. The separator for splicing the fields can be customized, and can be a colon, a comma, a dot code or the like.
The following illustrates the generation policy of the identity credential ticket:
first, the version of the current ticket is obtained, and the composition format of the current ticket can be known through the version. And generating snowflakes through a snowflake algorithm to be used as a first unique identifier of the identity certificate, so that ticket repetition is prevented. Then all the corresponding fields are spliced, and the following steps are used in the middle: the separation is carried out. For example, an identity credential: 1: 123: 111: 1: 2: 43523412348234. from left to right the first 1 represents the version of the identity certificate ticket, 123 represents the service identifier, 111 represents the unique user identifier, the second 1 represents the scene identifier, 2 represents the scene type, and 43523412348234 represents the first unique identity of the identity certificate ticket. The identity certificate is composed as follows:
Ticket
Version BusinessID UserID SceneID SceneType Snowflakes
wherein Version is a Version, BusinessID is a service identifier, UserID is a user unique table, SceneID is a scene identifier, SceneType is a scene type, and Snowflies is a first unique identifier of the identity certificate.
In one embodiment, between step S300 and step S400, the method further comprises the steps of:
and carrying out conversion processing on the identity certificate.
Specifically, the conversion process may be at least one of an encryption process and an encoding process. For example, the identity credential is encrypted. Or, the identity certificate is coded. Or, the identity certificate is encrypted and then encoded.
The encryption is to ensure the data security in the network transmission process and prevent the network request from being hijacked by illegal attackers to cause the data to be forged.
The encryption mode is also the encryption mode agreed by the client and the server, and the encryption mode can be one of DES, AES and RSA. The identity certificate is encrypted by, for example, a DES method to obtain an encrypted identity certificate encrypt _ ticket.
The encrypted identity voucher is encoded by base64 to generate base64_ encrypt _ ticket, namely the encrypted identity voucher. The base64 encoding process is performed because the encoded data after the data is uniformly encoded is suitable for network transmission.
Step S400 specifically includes: and returning the converted identity certificate and questionnaire data of the questionnaire to be answered to the client.
The answer result uploading request in step S500 carries the converted identity certificate, the question ID, and the corresponding answer data.
In an embodiment, the verifying the first identity credential to be verified according to the corresponding first preset rule includes:
carrying out reverse conversion processing on the first identity certificate to be verified;
extracting the version in the first identity certificate to be verified after the reverse conversion processing, and acquiring a first preset rule corresponding to the version;
and verifying whether the splicing composition of the first identity certificate to be verified after the reverse conversion processing meets a first preset rule corresponding to the version.
Specifically, the request for continuously answering the question received by the server may be forged by a network attacker or actually sent by the user, so that it cannot be guaranteed that the identity certificate carried in the request for continuously answering the question is correct, and verification is required. In this embodiment, the first identity credential to be verified is subjected to inverse transformation processing, and a first preset rule corresponding to the version is obtained according to the version field in the first identity credential to be verified after the inverse transformation processing, that is, a rule is generated, and whether the splicing sequence of the splicing field in the first identity credential to be verified after the inverse transformation processing is correct or not can be further verified according to the first preset rule corresponding to the version. Wherein, the inverse conversion processing is specifically the inverse operation of the conversion processing; for example, the inverse transform process of encryption is decryption, and the inverse transform process of encoding is decoding. In the embodiment, the continuous answer request sent by the user is verified by multiple means, so that counterfeit answer or hacking attack is prevented as much as possible, and the authenticity of answer is ensured to a certain extent.
If the splicing composition of the first identity certificate to be verified after the reverse conversion process meets a first preset rule corresponding to the version, corresponding questionnaire data and answered data of the answered questions are determined according to the unique user identification in the first identity certificate to be verified after the reverse conversion process, the questionnaire attributes of the questionnaires to be answered continuously and the first unique identification, and the answered data of the answered questions are filled into the questionnaire data and returned to the client.
In one embodiment, step S600 specifically includes the following steps:
extracting a second identity certificate to be verified corresponding to a questionnaire of which the answer result is to be uploaded by the user from the answer result uploading request;
verifying the second identity certificate to be verified according to the corresponding first preset rule;
if the second identity certificate to be verified conforms to the corresponding first preset rule, extracting the question ID and the corresponding answer data from the answer result uploading request;
and extracting the questionnaire attribute corresponding to the questionnaire from the second identity certificate to be verified, and binding the question ID and the corresponding answer data with the questionnaire data corresponding to the questionnaire attribute.
Specifically, extracting a version in the second identity certificate to be verified, and acquiring a first preset rule corresponding to the version; and verifying whether the splicing composition of the second identity certificate to be verified conforms to a first preset rule corresponding to the version.
If the splicing composition of the second identity certificate to be verified conforms to the first preset rule corresponding to the version, the corresponding questionnaire data is found according to the unique user identifier and the questionnaire attribute in the second identity certificate to be verified, and the question ID in the answer result uploading request, the corresponding answer data and the corresponding questionnaire data are bound, so that the answering data of the answered question in the questionnaire data corresponding to the user are saved.
The following describes the implementation process of this embodiment with a specific application scenario:
the user logs in to an applet or APP through which the user can answer questionnaires. If the questionnaire survey is carried out through the application small program, the user can log in the application small program through a third-party platform such as WeChat in an authorized mode, and the unique user identification at the moment is the user on the third-party platform such as a WeChat micro signal or a mobile phone number. If questionnaire survey is carried out through the APP, the questionnaire survey is logged in the APP in a user account login mode, and the unique user identification is the user account in the APP at the moment, such as mailbox or mobile phone number and the like without limitation.
The user can select the questionnaire to be answered through the application applet or the APP, the application applet or the APP generates an answer application request according to the selection of the user and sends the answer application request to the server, and the answer application request carries at least one of the user unique identification of the user, such as a micro-signal, a mobile phone number and a mailbox, and also carries the questionnaire attribute of the questionnaire to be answered. Since there are multiple questionnaires in an applet or APP that a user can answer, the questionnaire attributes are used to distinguish between different kinds of questionnaires.
The server generates an identity certificate corresponding to the answer application request according to the answer application request. The identity document is used to uniquely identify the questionnaire to be answered by the user. The method and the device can generate an identity certificate for each questionnaire answered by each user, namely, the same user answers different questionnaires and corresponds to different identity certificates. Different identity credentials may also be generated for the same questionnaire as the different users answer. The first identity credential has a mapping relationship with the corresponding user and the questionnaire.
In order to distinguish different first identity certificates corresponding to different questionnaires answered by the same user, or to distinguish different identity certificates corresponding to different questionnaires answered by different users, before the identity certificates are not generated, the server allocates a first unique identifier to each identity certificate to be generated, wherein the first unique identifier is used for distinguishing the identity certificates.
After the first unique identifier is generated, the server generates the identity certificate corresponding to the answer application request according to the user unique identifier, the questionnaire attribute of the questionnaire to be answered and the first unique identifier based on a first preset rule for generating the identity certificate. The generated identity certificate comprises the unique identification of the user, the attribute of the questionnaire to be answered and the first unique identification.
The identity certificate is generated by a field, and in order to keep secret or be suitable for network data transmission, the identity certificate needs to be encrypted and encoded, so that the data format of the identity certificate after encryption and encoding is a universal data format suitable for network data transmission and has certain confidentiality.
The server finds corresponding questionnaire data according to the questionnaire attributes of the questionnaire to be answered, and returns the identity certificate and the questionnaire data which are subjected to encryption coding to the application applet or APP.
The applet or APP presents the questionnaire data to the user, while the user can answer each topic in the questionnaire data on the applet or APP. When the user finishes answering one question, the application applet or APP generates an answer result uploading request.
The answer result uploading request uploaded by the legal user carries the identity certificate, the question ID and the corresponding answer data. However, if the answer result uploading request is uploaded by an illegal user such as a hacker, the data carried in the answer result uploading request may be tampered data. Therefore, the server legally verifies the received request for uploading the answer result. Since the server cannot temporarily determine whether the answer result uploading request is sent by a legal user through a legal means, the server extracts the second to-be-verified identity certificate from the answer result uploading request, and the second to-be-verified identity certificate may be the identity certificate subjected to the conversion processing or not.
Because the identity certificate needs to be subjected to encryption and coding conversion processing, the second identity certificate to be verified needs to be subjected to inverse conversion processing, namely decoding and decryption processing, so that the second identity certificate to be verified after the inverse conversion processing is obtained. And if the second identity certificate to be verified after the reverse conversion processing is the identity certificate, the second identity certificate to be verified after the reverse conversion processing comprises the unique user identifier, the questionnaire attribute, the first unique identifier and the version. The first preset rule for generating the identity certificate can be acquired according to the version, whether the second identity certificate to be verified after the reverse conversion processing accords with the first preset rule or not can be verified according to the first preset rule, and if the second identity certificate to be verified after the reverse conversion processing accords with the first preset rule, the second identity certificate to be verified is determined to be the identity certificate indeed. And extracting the question ID and the corresponding answer data from the answer result uploading request, extracting the questionnaire attribute corresponding to the questionnaire from the second identity certificate to be verified after the reverse conversion processing, and binding the question ID and the corresponding answer data with the questionnaire data corresponding to the questionnaire attribute, namely synchronously uploading the answer data of the questionnaire to a server for storage.
And if the answer result uploading request does not have at least one of the second identity certificate to be verified, the decoding and/or decryption failure of the second identity certificate to be verified, and the composition field in the second identity certificate to be verified does not conform to the corresponding first preset rule, the server refuses the answer result uploading request of the user and returns an error prompt to the applet or the APP.
And when the questions of the questionnaire are not completely answered and the user quits midway, and the user needs to continue answering next time, logging in the application applet or APP again, clicking a continuous answering button, and generating a continuous answering application request by the application applet or the APP and sending the request to the server.
The identity certificate is carried in the request for continuously answering the question uploaded by the legal user. However, if the request is a follow-up application request uploaded by an illegal user such as a hacker, the data carried in the follow-up application request may be tampered data. Therefore, the server can carry out legal verification on the received request for continuously answering the question. Because the server cannot judge whether the request for continuously answering the question is sent by the legal user through the legal means temporarily, the server extracts the first identity certificate to be verified from the request for continuously answering the question, and the first identity certificate to be verified may be the identity certificate after conversion processing or not.
Because the identity certificate needs to be subjected to encryption and coding conversion processing, the first identity certificate to be verified needs to be subjected to inverse conversion processing, namely decoding and decryption processing, so that the first identity certificate to be verified after the inverse conversion processing is obtained. And if the first identity certificate to be verified after the reverse conversion processing is the identity certificate, the first identity certificate to be verified after the reverse conversion processing comprises the unique user identifier, the questionnaire attribute, the first unique identifier and the version. The method comprises the steps of obtaining a first preset rule for generating the identity certificate according to the version, verifying whether the first identity certificate to be verified after reverse conversion meets the first preset rule or not according to the first preset rule, and determining that the first identity certificate to be verified after reverse conversion is indeed the identity certificate if the first identity certificate to be verified after reverse conversion meets the first preset rule. Extracting the questionnaire attribute, the user unique identifier and the first unique identifier of the questionnaire to be continuously answered from the first identity voucher to be verified after the inverse conversion processing, determining the questionnaire data to be continuously answered and the answer data of the answered questions according to the user unique identifier, the questionnaire attribute and the first unique identifier, and returning the questionnaire data and the answer data of the answered questions to the application applet or APP by the server. The answer data of each question and the answered question are displayed on the application applet or the APP or displayed on the node of the current to-be-answered question, and the answered question or other unanswered questions can be viewed through page turning.
And if the answer result uploading request does not have at least one of the first identity certificate to be verified, the decoding and/or decryption failure of the first identity certificate to be verified, and the composition field in the first identity certificate to be verified does not conform to the corresponding first preset rule, the server refuses the user to continue answer application and returns an error prompt to the applet or the APP.
In one embodiment, the method further comprises the steps of:
and if the analysis of the current uploading request of an answer result sent by the client fails, returning an error prompt to the client and interrupting the question answering.
Specifically, the reason for the failure of the analysis may include at least one of that the second to-be-verified identity credential cannot be extracted from an answer result upload request sent by the client, that the reverse conversion fails when the second to-be-verified identity credential extracted from an answer result upload request sent by the client is subjected to reverse conversion at present, that a spliced composition of the second to-be-verified identity credential subjected to the reverse conversion does not conform to a first preset rule corresponding to the corresponding version, and that a user unique identifier in the second to-be-verified identity credential subjected to the reverse conversion is not consistent with a user unique identifier in the answer upload request.
If the server end fails to analyze in the analysis process after receiving a certain answer result uploading request, the server end returns an error prompt to the client end, interrupts the question answering operation of the user and forbids continuing answering. The embodiment is used for timely finding out errors so as to prevent a user from making invalid answer operation in the subsequent process. And after the server side detects and repairs the error, allowing the answer to be continuously answered.
In an embodiment, if the analysis of the current answer result upload request sent to the client fails, an error prompt is returned to the client, and the answer to the questionnaire is interrupted, where the error prompt includes at least one of the following:
if the decoding fails when the second identity certificate to be verified extracted from an answer result uploading request sent by the client is decoded, returning a first error prompt to the client and interrupting the question answering;
if the decryption fails after the second to-be-verified identity certificate extracted from an answer result uploading request sent by the client is successfully decoded, returning a second error prompt to the client and interrupting the question answering;
if the second identity voucher to be verified, which is extracted from an answer result uploading request sent by the client, is successfully decoded and decrypted at present, and if the decoded and decrypted second identity voucher to be verified is spliced to form a first preset rule which does not accord with the corresponding version, a third error prompt is returned to the client, and the answer to the questionnaire is interrupted;
and if the unique user identifier in the decoded and decrypted second identity certificate to be verified is not consistent with the unique user identifier in the answer uploading request, returning a fourth error prompt to the client and interrupting the answer of the questionnaire.
Specifically, after receiving the answer result uploading request, the server first extracts the second identity certificate to be verified from the answer result uploading request, and if the second identity certificate to be verified, i.e., base64_ encrypt _ ticket, does not exist in the answer result uploading request, directly returns a failure prompt to the client, and interrupts the questionnaire answering of the questionnaire to be answered.
And if the answer result uploading request contains a second identity certificate to be verified, decoding the second identity certificate to be verified, and if the decoding fails, returning a first error prompt to the client and interrupting the questionnaire answer of the questionnaire to be answered. The first error prompt can be a pop-up error prompt in a pop-up frame form, and can also be broadcasted in a voice form.
If the decoding is successful, the second identity certificate Base64_ encrypt _ ticket to be verified is subjected to Base64 decoding and is restored into an encrypted identity certificate encrypt _ ticket.
If the decoding is successful, the encrypted identity certificate encrypt _ ticket is further decrypted, and if the decryption is successful, a second identity certificate to be verified which is decoded and decrypted is obtained. And if the decryption fails, the server returns a second error prompt to the client and interrupts the questionnaire answer of the questionnaire to be answered. The second error prompt can be a pop-up error prompt in a pop-up frame form, and can also be broadcasted in a voice form.
Theoretically, the splicing fields and the splicing sequence of the fields in the decoded and decrypted second identity certificate to be verified accord with a first preset rule. But if the answer result uploading request is forged by hackers, the format of the decoded and decrypted second identity certificate to be verified does not necessarily conform to the first preset rule. And if the version cannot be extracted from the decoded and decrypted second identity certificate to be verified, the second identity certificate to be verified does not conform to the first preset rule. If the version is extracted from the decoded and decrypted second identity certificate to be verified, the corresponding first preset rule is obtained according to the version, but any one of the fields and the splicing sequence among the fields contained in the decoded and decrypted second identity certificate to be verified does not accord with the corresponding first preset rule, the question answering result uploading request is also legal and possibly forged. The server returns a third error prompt to the client and interrupts the questionnaire answer of the questionnaire to be answered. The third error prompt can be a pop-up error prompt in a bullet frame form, and can also be broadcasted in a voice form.
And if the decoded and decrypted second to-be-verified identity certificate conforms to the corresponding first preset rule, extracting a user unique identifier from the decoded and decrypted second to-be-verified identity certificate, and matching the user unique identifier extracted from the decoded and decrypted second to-be-verified identity certificate with the user unique identifier carried by the answer result uploading request. If the answer is not consistent with the question, the server returns a fourth error prompt to the client and interrupts the question answering of the question book to be answered. The fourth error prompt can be a pop-up error prompt in a pop-up frame form, and can also be broadcasted in a voice form.
In one embodiment, step S200 specifically includes the following steps:
and generating snowflakes through a snowflake algorithm to serve as a first unique identifier of the identity certificate to be generated.
Specifically, the snowflow algorithm is a Twitter open-source distributed ID generation algorithm, which generates a 64-bit number as a unique ID, and each ID is composed of the following 4 parts in sequence:
1. the fixed bit occupies 1bit, and its value is always 0, with no practical effect.
2. The timestamp bits take up to 41 bits, accurate to milliseconds.
3. The working machine id bit occupies 10 bits.
4. The sequence number bit occupies 12 bits, and each node starts to accumulate continuously every millisecond 0, and can accumulate to 4095 (namely the maximum number which can be represented by 12 bits) at most.
The generated snowflakes is used as the first unique identifier of the identity certificate.
The algorithm runs as follows:
setting a working machine ID (a value of 10 bits can be confirmed by a developer), recording a time stamp when an algorithm is executed by the server, generating 1 serial number by the server, starting generation from 0, increasing 1 for each generation compared with the last generated value, if the value of the generated serial number exceeds 4095 in the same millisecond-level time stamp, starting generation from 0 again after waiting for 1 millisecond (the last recorded time stamp is different after waiting for 1 millisecond), and splicing the data of the previous 3 steps into a complete ID according to the ID composition sequence, namely the snowflakes.
The questionnaire scene can be effectively expanded by designing a general identity certificate, whether the identity certificate is a forged request or not can be judged by analyzing the identity certificate, errors or malicious submission is effectively avoided, the pressure on a database is reduced, multiple answers are associated through the same first unique identifier, and subsequent inquiry is facilitated.
Fig. 3 is a block diagram illustrating a structure of a device for managing answers to questionnaires in an embodiment of the present application, and referring to fig. 3, the device includes:
a first receiving module 100, configured to receive an answer application request sent by a user through a client, where the answer application request includes a unique user identifier and a questionnaire attribute of a questionnaire to be answered;
the identifier generating module 200 is configured to obtain a first unique identifier allocated to an identity credential to be generated;
the certificate generation module 300 is configured to generate an identity certificate corresponding to the answer application request according to the unique user identifier, the questionnaire attribute of the questionnaire to be answered, and the first unique identifier based on a first preset rule;
a sending module 400, configured to return the identity credential and questionnaire data of a questionnaire to be answered to the client, where the questionnaire data includes at least one question to be answered;
a second receiving module 500, configured to receive an answer result uploading request sent by a client, where the answer result uploading request is generated after the client monitors answer data of each question answered by a user, and the answer result uploading request carries an identity certificate, a question ID, and corresponding answer data;
the analysis and storage module 600 is configured to analyze the request for uploading the answer result to obtain and store the answer data of the answered question in the questionnaire data corresponding to the user.
In one embodiment, the apparatus further comprises:
the first extraction module is used for extracting a first identity certificate to be verified corresponding to a questionnaire to be answered continuously by the user from the continuous answer application request if the continuous answer application request sent by the client after detecting the continuous answer instruction of the user is received;
the first verification module is used for verifying the first identity certificate to be verified according to a corresponding first preset rule;
the sending module 400 is further configured to, if the first to-be-verified identity credential conforms to the first preset rule, determine corresponding questionnaire data and answer data of the answered question according to the user unique identifier in the first to-be-verified identity credential, the questionnaire attribute of the questionnaire to be answered continuously, and the first unique identifier, fill the answer data of the answered question into the questionnaire data, and return the questionnaire data to the client.
In one embodiment, the credential generating module 300 specifically includes:
the rule obtaining module is used for obtaining the version of the identity certificate to be generated and obtaining a first preset rule for generating the identity certificate according to the version of the identity certificate to be generated;
the splicing module is used for splicing the version and the first unique identifier of the identity certificate to be generated, the user unique identifier of the user and the questionnaire attribute of the questionnaire to be answered based on a first preset rule to obtain the identity certificate; wherein the header of the identity certificate is the version of the identity certificate to be generated.
In one embodiment, the apparatus further comprises:
and the conversion module is used for carrying out conversion processing on the identity certificate.
The sending module is specifically configured to: returning the converted identity voucher and questionnaire data of the questionnaire to be answered to the client;
the answer result uploading request carries the converted identity certificate, the question ID and the corresponding answer data.
In one embodiment, the first verification module specifically includes:
the analysis unit is used for carrying out inverse conversion processing on the first identity certificate to be verified;
the rule matching unit is used for extracting the version in the first identity certificate to be verified after the reverse conversion processing, and acquiring a first preset rule corresponding to the version;
and the first verification unit is used for verifying whether the splicing composition of the first identity certificate to be verified after the reverse conversion processing meets a first preset rule corresponding to the version.
In one embodiment, the apparatus further comprises:
and the interruption module is used for returning an error prompt to the client and interrupting the answer of the questionnaire if the analysis of the current answer result uploading request sent by the client fails.
In an embodiment, the conversion module is specifically configured to perform encryption processing and encoding processing on the identity credential.
The interrupt module includes at least one of:
the first sub-interruption module is used for returning a first error prompt to the client and interrupting the question answering of the questionnaire if the decoding fails when the decoding is carried out on a second identity certificate to be checked, which is extracted from an answer result uploading request sent by the client at present;
the second sub-interruption module is used for returning a second error prompt to the client and interrupting the question answering of the questionnaire if the decryption fails after the second identity certificate to be verified extracted from the answer result uploading request sent by the client is successfully decoded;
the third sub-interrupt module is used for successfully decoding and decrypting a second identity certificate to be verified extracted from an answer result uploading request sent by the client at present, if the decoded and decrypted second identity certificate to be verified is spliced to form a second preset rule which does not accord with the first preset rule corresponding to the corresponding version, returning a third error prompt to the client and interrupting the question answering;
and the fourth sub-interruption module is used for successfully decoding and decrypting the second to-be-verified identity certificate extracted from the answer result uploading request sent by the client at present, and if the unique user identifier in the decoded and decrypted second to-be-verified identity certificate is not consistent with the unique user identifier in the answer uploading request, returning a fourth error prompt to the client and interrupting the question answering of the questionnaire.
Wherein the meaning of "first" and "second" in the above modules/units is only to distinguish different modules/units, and is not used to define which module/unit has higher priority or other defining meaning. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to such process, method, article, or apparatus, and such that a division of modules presented in this application is merely a logical division and may be implemented in a practical application in a further manner.
For specific limitations of the device for managing question answering questions, reference may be made to the above limitations of the method for managing question answering questions, which are not described herein again. The modules in the above-mentioned questionnaire answering question management device can be wholly or partially realized by software, hardware and their combination. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 4 is a block diagram of an internal structure of a computer device according to an embodiment of the present application. The computer device may specifically be the server in fig. 1. As shown in fig. 4, the computer apparatus includes a processor, a memory, a network interface, an input device, a display screen, and a database connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory includes a storage medium and an internal memory. The storage medium may be a nonvolatile storage medium or a volatile storage medium. The storage medium stores an operating system and may further store computer-readable instructions, which, when executed by the processor, may cause the processor to implement a method of managing questionnaire answers. The internal memory provides an environment for the operating system and execution of computer readable instructions in the storage medium. The internal memory may also have computer readable instructions stored thereon, which, when executed by the processor, may cause the processor to perform a method for question answering management. The network interface of the computer device is used for communicating with an external server through a network connection. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like. The database of the computer device is used to store data in the form of a database.
In one embodiment, a computer device is provided, which includes a memory, a processor, and computer readable instructions (e.g., a computer program) stored on the memory and executable on the processor, wherein the processor executes the computer readable instructions to implement the steps of the method for managing question answering questions in the above embodiments, such as the steps S100 to S600 shown in fig. 2 and other extensions of the method and related steps. Alternatively, the processor, when executing the computer readable instructions, implements the functions of the modules/units of the questionnaire answering device in the above-described embodiment, such as the functions of modules 100 to 600 shown in fig. 3. To avoid repetition, further description is omitted here.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the computer device and the various interfaces and lines connecting the various parts of the overall computer device.
The memory may be used to store computer readable instructions and/or modules, and the processor may implement various functions of the computer apparatus by executing or executing the computer readable instructions and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc.
The memory may be integrated in the processor or may be provided separately from the processor.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer-readable storage medium is provided, on which computer-readable instructions are stored, which when executed by a processor implement the steps of the method for managing question answering questions in the above-described embodiments, such as the steps S100 to S600 shown in fig. 2 and extensions of other extensions and related steps of the method. Alternatively, the computer readable instructions, when executed by the processor, implement the functions of the modules/units of the questionnaire answering device in the above-described embodiments, such as the functions of modules 100 to 600 shown in fig. 3. To avoid repetition, further description is omitted here.
It will be understood by those of ordinary skill in the art that all or part of the processes of the methods of the embodiments described above may be implemented by instructing associated hardware to implement computer readable instructions, which may be stored in a computer readable storage medium, and when executed, may include processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present application may be substantially or partially embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A method for managing question answering, the method comprising:
receiving an answer application request sent by a user through a client, wherein the answer application request comprises a user unique identifier and a questionnaire attribute of a questionnaire to be answered;
acquiring a first unique identifier distributed for an identity certificate to be generated;
based on a first preset rule, generating an identity certificate corresponding to the answer application request according to the unique user identifier, the questionnaire attribute of the questionnaire to be answered and the first unique identifier;
returning the identity voucher and questionnaire data of the questionnaire to be answered to the client, wherein the questionnaire data comprises at least one question to be answered;
receiving an answer result uploading request sent by the client, wherein the answer result uploading request is generated after the client monitors answer data of one question answered by the user, and the answer result uploading request carries the identity certificate, the question ID and the corresponding answer data;
and analyzing the request for uploading the answer results to acquire and store answer data of the answered questions in the questionnaire data corresponding to the user.
2. The method of claim 1, further comprising:
if a request for continuously answering questions sent by the client is received, extracting a first identity certificate to be verified corresponding to a questionnaire to be continuously answered by the user from the request for continuously answering questions;
verifying the first identity certificate to be verified according to a corresponding first preset rule;
if the first to-be-verified identity certificate conforms to the first preset rule, corresponding questionnaire data and answered data of the answered questions are determined according to the unique user identifier in the first to-be-verified identity certificate, the questionnaire attributes of the questionnaires to be answered continuously and the first unique identifier, and the answered data of the answered questions are filled into the questionnaire data and returned to the client.
3. The method according to claim 1 or 2, wherein the generating an identity certificate corresponding to the answer application request according to the unique user identifier, the questionnaire attributes of the questionnaire to be answered, and the first unique identifier based on a first preset rule comprises:
acquiring a version of an identity certificate to be generated, and acquiring a first preset rule for generating the identity certificate according to the version of the identity certificate to be generated;
based on the first preset rule, splicing the version and the first unique identifier of the identity certificate to be generated, the user unique identifier of the user and the questionnaire attribute of the questionnaire to be answered to obtain the identity certificate;
wherein the header of the identity certificate is the version of the identity certificate to be generated.
4. The method according to claim 3, wherein before returning the identity credential and questionnaire data for the questionnaire to be answered to the client, the method further comprises:
carrying out conversion processing on the identity certificate;
the returning the identity voucher and the questionnaire data of the questionnaire to be answered to the client comprises: returning the identity voucher subjected to the conversion processing and the questionnaire data of the questionnaire to be answered to the client;
and the answer result uploading request carries the converted identity certificate, the subject ID and the corresponding answer data.
5. The method according to claim 4, wherein the verifying the first identity credential to be verified according to the corresponding first preset rule comprises:
carrying out reverse conversion processing on the first identity certificate to be verified;
extracting the version in the first identity certificate to be verified after the reverse conversion processing, and acquiring a first preset rule corresponding to the version;
and verifying whether the splicing composition of the first identity certificate to be verified after the reverse conversion processing meets a first preset rule corresponding to the version.
6. The method of claim 4, further comprising:
and if the current uploading request of the answer result sent by the client fails to be analyzed, returning an error prompt to the client and interrupting the answer of the questionnaire.
7. The method of claim 6, wherein the transforming the identity credential comprises: carrying out encryption processing and coding processing on the identity certificate;
if the analysis of the current uploading request of an answer result sent by the client fails, an error prompt is returned to the client, and the answer of the questionnaire is interrupted, wherein the analysis comprises at least one of the following steps:
if the decoding fails when the second identity certificate to be verified extracted from the uploading request of the answer result sent by the client is decoded, a first error prompt is returned to the client, and the answer of the questionnaire is interrupted,
if the decryption fails after the second to-be-verified identity certificate extracted from the answer result uploading request sent by the client is successfully decoded, a second error prompt is returned to the client, the question answer is interrupted,
if the second identity voucher to be verified extracted from the answer result uploading request sent by the client is successfully decoded and decrypted at present, and if the decoded and decrypted second identity voucher to be verified is spliced to form a first preset rule which does not conform to the corresponding version, a third error prompt is returned to the client, and the answer to the questionnaire is interrupted,
and if the unique user identifier in the decoded and decrypted second identity certificate to be verified is not consistent with the unique user identifier in the answer uploading request, returning a fourth error prompt to the client and interrupting the answer of the questionnaire.
8. A device for managing question answering, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving an answer application request sent by a user through a client, and the answer application request comprises a unique user identifier and a questionnaire attribute of a questionnaire to be answered;
the identification generation module is used for acquiring a first unique identification distributed for the identity certificate to be generated;
the certificate generation module is used for generating an identity certificate corresponding to the answer application request according to the unique user identifier, the questionnaire attribute of the questionnaire to be answered and the first unique identifier based on a first preset rule;
a sending module, configured to return the identity credential and questionnaire data of the questionnaire to be answered to the client, where the questionnaire data includes at least one question to be answered;
the second receiving module is used for receiving an answer result uploading request sent by the client, wherein the answer result uploading request is generated after the client monitors answer data of one question answered by the user, and the answer result uploading request carries the identity certificate, the question ID and the corresponding answer data;
and the analysis and storage module is used for analyzing the answer result uploading request so as to obtain and store answer data of the answered questions in the questionnaire data corresponding to the user.
9. A computer device comprising a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, wherein the processor when executing the computer readable instructions performs the steps of the method of any one of claims 1-7.
10. A computer readable storage medium having computer readable instructions stored thereon, which, when executed by a processor, cause the processor to perform the steps of the method of any one of claims 1-7.
CN202110954917.5A 2021-08-19 2021-08-19 Questionnaire answer management method, device, computer equipment and storage medium Pending CN113641656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110954917.5A CN113641656A (en) 2021-08-19 2021-08-19 Questionnaire answer management method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110954917.5A CN113641656A (en) 2021-08-19 2021-08-19 Questionnaire answer management method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113641656A true CN113641656A (en) 2021-11-12

Family

ID=78422872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110954917.5A Pending CN113641656A (en) 2021-08-19 2021-08-19 Questionnaire answer management method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113641656A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010079859A (en) * 2008-09-29 2010-04-08 Hitachi Software Eng Co Ltd Questionnaire management system
JP2010262368A (en) * 2009-04-30 2010-11-18 Konica Minolta Business Technologies Inc Image forming system, device and program for managing questionnaire
CN103870939A (en) * 2014-04-01 2014-06-18 北京中电普华信息技术有限公司 Object name generating method and system
CN106412349A (en) * 2015-07-16 2017-02-15 中兴通讯股份有限公司 Method and system of realizing outbound call system questionnaire flows
CN109933574A (en) * 2019-02-27 2019-06-25 常州猛犸电动科技有限公司 A kind of unique key generation method, device and terminal device
CN112019493A (en) * 2019-05-31 2020-12-01 北京京东尚科信息技术有限公司 Identity authentication method, identity authentication device, computer device, and medium
CN113204634A (en) * 2021-06-04 2021-08-03 腾讯科技(深圳)有限公司 Test paper processing method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010079859A (en) * 2008-09-29 2010-04-08 Hitachi Software Eng Co Ltd Questionnaire management system
JP2010262368A (en) * 2009-04-30 2010-11-18 Konica Minolta Business Technologies Inc Image forming system, device and program for managing questionnaire
CN103870939A (en) * 2014-04-01 2014-06-18 北京中电普华信息技术有限公司 Object name generating method and system
CN106412349A (en) * 2015-07-16 2017-02-15 中兴通讯股份有限公司 Method and system of realizing outbound call system questionnaire flows
CN109933574A (en) * 2019-02-27 2019-06-25 常州猛犸电动科技有限公司 A kind of unique key generation method, device and terminal device
CN112019493A (en) * 2019-05-31 2020-12-01 北京京东尚科信息技术有限公司 Identity authentication method, identity authentication device, computer device, and medium
CN113204634A (en) * 2021-06-04 2021-08-03 腾讯科技(深圳)有限公司 Test paper processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111949953B (en) Identity authentication method, system and device based on block chain and computer equipment
US8369835B2 (en) Web server constituting single sign-on system, method of controlling operation of same, and recording medium storing program for controlling operation of same
US9769654B2 (en) Method of implementing a right over a content
WO2022142629A1 (en) User data processing method and apparatus, computer device, and storage medium
CN113765906B (en) Method, equipment and system for one-key login of terminal application program
CN111241555B (en) Access method and device for simulating user login, computer equipment and storage medium
KR20150131239A (en) Advertising download verification
US20110093705A1 (en) Method, device, and system for registering user generated content
CN109657170B (en) Webpage loading method and device, computer equipment and storage medium
CN110753257A (en) Data display method, display terminal, server, display system, and storage medium
CN113329004B (en) Authentication method, system and device
CN108235067B (en) Authentication method and device for video stream address
CN113312576A (en) Page jump method, system and device
CN111382451A (en) Security level identification method and device, electronic equipment and storage medium
CN113641656A (en) Questionnaire answer management method, device, computer equipment and storage medium
CN112583602B (en) Information code data transmission method, device, system, computer device and medium
CN111245600B (en) Authentication method and system based on block chain technology
CN115935379A (en) Service processing method, device, equipment and computer readable storage medium
CN112260997A (en) Data access method and device, computer equipment and storage medium
JP7098065B1 (en) Preventing data manipulation and protecting user privacy in telecommunications network measurements
CN116112167B (en) Key management system, method and device
CN112702389B (en) Data rights management method, device, equipment and storage medium
CN112822020B (en) Network request method, device, computer equipment and storage medium
CN112966197B (en) Method, device, equipment and storage medium for displaying page electronic signature
CN117997519A (en) Data processing method, apparatus, program product, computer device, and 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