Schema.SObjectType.Account.getRecordTypeInfosByName().get('直接客户').getRecordTypeId();
或
String recordTypeId = Schema.getGlobalDescribe().get('Account').getDescribe().getRecordTypeInfosByName().get('Person Account').getRecordTypeId();
Schema.SObjectType.Account.getRecordTypeInfosByName().get('直接客户').getRecordTypeId();
或
String recordTypeId = Schema.getGlobalDescribe().get('Account').getDescribe().getRecordTypeInfosByName().get('Person Account').getRecordTypeId();