A method for processing a service, the method comprising: receiving (S101) a digital object identifier, DOI, display request on a first terminal device; determining (S102) a service type corresponding to the display request; obtaining (S103) basic user information of a first user; receiving (S103) 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 (S104) the DOI to a second terminal device for scanning by the second terminal; and performing service processing (S403) 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 (S403) 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 (S101) a digital object identifier, DOI, display request on a first terminal device; determining (S102) a service type corresponding to the display request; obtaining (S103) basic user information of a first user; receiving (S103) 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 (S104) the DOI to a second terminal device for scanning by the second terminal; and performing service processing (S403) 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 (S403) 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. <EOS>