|
ÈôÔÚAnyChatÖ®ÍâÒѾ½øÐÐÁËÒ»´ÎÓû§Éí·ÝÑéÖ¤£¬Ö»ÊÇÏ£ÍûÓÃAnyChatʵÏÖÁ÷ýÌåͨÐÅ·þÎñ£¬¶øÇÒ²»Ï£ÍûÔÚÒµÎñ·þÎñÆ÷£¨BusinessServer.exe£©ÉÏÉè¼ÆµÃÌ«¸´ÔÓ£¬²»Ï£ÍûÁ¬½ÓÊý¾Ý¿â£¬Ôò¿ÉÒÔͨ¹ýÈçϵķ½Ê½ÇÉÃîµÄ»Ø±ÜAnyChatµÄµÇ¼Á÷³Ì£¬¶øÇÒ»¹¿É±£³ÖuseridÓëµÚÈý·½Æ½Ì¨Ò»Ö¡£
Èç¹ûÔÚµÚÈý·½Æ½Ì¨ÉÏÓû§Éí·ÝÑéÖ¤Ö®ºó£¬»ñµÃµÄuseridΪ108£¬Ôò¿ÉÒÔ½«useridת»»Îª×Ö·û´®¡°108¡±½øÐÐAnyChatƽ̨µÇ¼£¬ÃÜÂë¿ÉÒÔÓÃÈÎÒâ×Ö·û´®´úÌ棬²»Îª¿Õ¼´¿É£¬È磺BRAC_Login("108", "demo", 0)£»
ÔÚÒµÎñ·þÎñÆ÷µÄ¡¾OnVerifyUser¡¿»Øµ÷º¯ÊýÖн«username×Ö·û´®×ª»»ÎªÕûÐÍÖµ£¬´«¸øuserid£¬Í¬Ê±·µ»Ø0¼´¿É¡£- // Óû§Éí·ÝÑéÖ¤»Øµ÷º¯Êý¶¨Òå
- DWORD CALLBACK VerifyUserCallBack(LPCTSTR lpUserName,LPCTSTR lpPassword, LPDWORD lpUserID, LPDWORD lpUserLevel, LPTSTR lpNickName,DWORD dwNCLen, LPVOID lpUserValue)
- {
- *lpUserID = atoi(lpUserName);
- return 0;
- }
¸´ÖÆ´úÂë ÕâÑùÔÚ¿Í»§¶ËµÄµÇ¼ÏûÏ¢¡¾OnLoginSystem(userid=108, errorcode=0)¡¿¾ÍÊǵÚÈý·½Æ½Ì¨µÄuseridÁË¡£ |
|