A method for processing a service, the method comprising: receiving a digital object identifier, DOI, display request on a first terminal device; determining a service type corresponding to the display request; obtaining basic user information of a first user; receiving identity type information entered by the first user, the identity type information corresponding and applicable to the service type and being obtained based on the determined service type, wherein the basic user information is a user ID or an account name of the first user, and the identity type information is identity-related information of the first user that represents an occupation type, an account type, or an age type of the first user; pre-authenticating the identity type information, comprising receiving identity type information to be checked that is entered by the first user, and sending the identity type information to be checked to a server having a verification function for authentication; generating (S104, S402) a DOI of the first user based on the basic user information and the pre-authenticated identity type information; displaying the DOI to a second terminal device for scanning by the second terminal; and performing service processing by the second terminal device based on the basic user information and the identity type information comprised in the displayed DOI, comprising, before performing the service processing, checking the identity type information and determining that the identity type information matches a type of the service to be processed, wherein performing the service processing includes identifying, according to a predetermined service processing rule, a service processing method that matches the identity type information, and performing the service processing based on the identified service processing method. receiving a digital object identifier, DOI, display request on a first terminal device; determining a service type corresponding to the display request; obtaining basic user information of a first user; receiving identity type information entered by the first user, the identity type information corresponding and applicable to the service type and being obtained based on the determined service type, wherein the basic user information is a user ID or an account name of the first user, and the identity type information is identity-related information of the first user that represents an occupation type, an account type, or an age type of the first user; pre-authenticating the identity type information, comprising receiving identity type information to be checked that is entered by the first user, and sending the identity type information to be checked to a server having a verification function for authentication; generating (S104, S402) a DOI of the first user based on the basic user information and the pre-authenticated identity type information; displaying the DOI to a second terminal device for scanning by the second terminal; and performing service processing by the second terminal device based on the basic user information and the identity type information comprised in the displayed DOI, comprising, before performing the service processing, checking the identity type information and determining that the identity type information matches a type of the service to be processed, wherein performing the service processing includes identifying, according to a predetermined service processing rule, a service processing method that matches the identity type information, and performing the service processing based on the identified service processing method.