ÉèΪÊ×Ò³Êղر¾Õ¾

AnyChat¼¼ÊõÖ§³ÖÂÛ̳

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á

QQ怬

Ö»ÐèÒ»²½£¬¿ìËÙ¿ªÊ¼

ËÑË÷
²é¿´: 43886|»Ø¸´: 12
´òÓ¡ ÉÏÒ»Ö÷Ìâ ÏÂÒ»Ö÷Ìâ

ÓйØAnyChatƽ̨Óû§Éí·ÝÑéÖ¤ÓëµÚÈý·½Æ½Ì¨¼¯³ÉµÄÎÊÌâ

[¸´ÖÆÁ´½Ó]

249

Ö÷Ìâ

2967

Ìû×Ó

9108

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
9108
Ìøתµ½Ö¸¶¨Â¥²ã
Â¥Ö÷
AnyChat²ÉÓöÀÁ¢ÒµÎñÂß¼­·þÎñÆ÷À´´¦ÀíÓйØÒµÎñÏà¹ØµÄÊÂÎñ£¬ÆäÖÐÓû§Éí·ÝÑéÖ¤¾ÍÊôÓÚÆäÖÐÒ»¸öÒµÎñÂß¼­µÄ´¦Àí¡£Ê×ÏÈ¿´Ò»ÏÂAnyChatƽ̨ҵÎñÂß¼­´¦ÀíµÄ×ÜÌå¿ò¼Ü£¬ÈçÏÂͼËùʾ£º

ÆäÖУ¬BusinessServer.exeÊÇÒ»¸ö¶ÀÁ¢µÄÓ¦ÓóÌÐò£¬µ÷ÓÃAnyChat Server SDKËùÌṩµÄAPI½Ó¿Ú£¬AnyChat Server SDKÄÚ²¿»á²ÉÓÃIPCµÄ·½Ê½ÓëºËÐÄ·þÎñÆ÷½¨Á¢ÁªÏµ£¬¼´£ºÔÚ´¦ÀíÒµÎñÂß¼­Ê±£¬²»ÐèÒªÓëºËÐÄ·þÎñÆ÷£¨AnyChatCoreServer.exe£©½¨Á¢Ö±½ÓµÄÁªÏµ£¬ºËÐÄ·þÎñÆ÷Ò²²»ÌṩÈκÎAPI½Ó¿Ú¹©µ÷Óá£
Óû§ÔÚAnyChatƽ̨µÇ¼ʱ£¬·ÖÁ½ÖÖÇé¿ö£ºÓοͷ½Ê½£¨Ö»ÓÐÓû§Ãû£¬ÃÜÂëΪ¿Õ£©ºÍÕý³£·½Ê½£¨Óû§Ãû¡¢ÃÜÂë¾ù²»Îª¿Õ£©£¬ÏÂÃæ·Ö±ð¶ÔÕâÁ½ÖÖ·½Ê½µÄÒµÎñÁ÷³Ì½øÐÐÏêϸÃèÊö£º

a£©Óοͷ½Ê½£ºÔÚµ÷Óÿͻ§¶ËAPI½Ó¿Ú¡¾BRAC_Login¡¿Ê±Ö»´«ÈëÓû§Ãû£¬ÃÜÂëΪ¿Õ£¬ÔòºËÐÄ·þÎñÆ÷£¨AnyChatCoreServer.exe)½«·ÖÅäÒ»¸öuserid£¬Îª¸ºÊý£¬´Ó-2¿ªÊ¼ÒÀ´Î¼Ó1£¬Í¬Ê±´¥·¢ÒµÎñ·þÎñÆ÷µÄ»Øµ÷ʼþ¡¾OnUserLoginAction¡¿£¬ÈçÏÂͼËùʾ£º

¿ÉÒÔÔÚºËÐÄ·þÎñÆ÷µÄÅäÖÃÎļþ£¨AnyChatCoreServer.ini£©ÖнøÐÐÅäÖ㬿ªÆô£¨Ä¬ÈÏ£©»ò¹Ø±ÕÓο͵Ǽģʽ¡£


b£©Õý³£·½Ê½£ºÔÚµ÷Óÿͻ§¶ËAPI½Ó¿Ú¡¾BRAC_Login¡¿Ê±´«ÈëÓû§ÃûºÍÃÜÂ룬¾ù²»Îª¿Õ£¬ÔòºËÐÄ·þÎñÆ÷£¨AnyChatCoreServer.exe)½«²»´¦ÀíuseridµÄ·ÖÅäÂß¼­£¬½«»á´¥·¢ÒµÎñ·þÎñÆ÷µÄ»Øµ÷ʼþ¡¾OnVerifyUser¡¿£¬ÓÉÒµÎñ·þÎñÆ÷Ôڸûص÷ʼþÖнøÐÐÓû§Éí·ÝÑéÖ¤£¬·ÖÅäuserid£¬È»ºó½«Óû§Éí·ÝÑéÖ¤½á¹û£¨ÊÇ·ñµÇ¼³É¹¦£©·µ»Ø¸ø¿Í»§¶Ë£¬ÈôÓû§Éí·ÝÑéÖ¤³É¹¦£¬Ôò»¹½«´¥·¢ÒµÎñ·þÎñÆ÷µÄ»Øµ÷ʼþ¡¾OnUserLoginAction¡¿£¬ÈçÏÂͼËùʾ£º


ÔÚÒµÎñ·þÎñÆ÷¡¾OnVerifyUser¡¿»Øµ÷º¯ÊýÖУ¬Ëù·ÖÅäµÄuserid£¬·µ»ØµÄerrorcode£¬½«ÌåÏÖÔÚ¿Í»§¶ËµÄʼþ¡¾OnLoginSystem(userid, errorcode)¡¿²ÎÊýÖУ¬ËùÒÔÒµÎñ·þÎñÆ÷¿ÉÒÔ×Ô¶¨ÒåerrorcodeÀ´±íʾÓû§Éí·ÝÑé֤ʧ°ÜµÄÔ­Òò¡£


¹ØÓÚÊý¾Ý¿âÁ¬½Ó£ººËÐÄ·þÎñÆ÷£¨AnyChatCoreServer.exe£©ÊDz»ÐèÒªÁ¬½ÓÊý¾Ý¿âµÄ£¬Á¬½ÓÊý¾Ý¿âÔÚÒµÎñ²ã´¦Àí£¬¼´ÓÉÒµÎñ·þÎñÆ÷×Ô¼ºÁ¬½ÓÊý¾Ý¿â£¬ÔÚ¡¾OnVerifyUser¡¿»Øµ÷º¯ÊýÖвéѯÊý¾Ý¿âµÄÐÅÏ¢£¬¶ÔÓû§Éí·Ý½øÐÐÑéÖ¤£¬ËùÒÔ²»ÂÛÉϲãÓ¦ÓÃÊÇÁ¬½ÓµÄMSSQL¡¢MySQL¡¢DB2¡¢Oracle»òÊÇNoSQL£¬¶ÔAnyChatƽ̨À´Ëµ£¬¶¼ÊÇ͸Ã÷µÄ¡£

³£¼ûÎÊÌâ·ÖÎö£º
1¡¢Óû§µÇ¼ʱ²»ÄÜ´¥·¢ÒµÎñ·þÎñÆ÷µÄ¡¾OnVerifyUser¡¿»Øµ÷º¯Êý£¿
´ð£ºÊÇ·ñÔڵǼʱÊäÈëµÄÃÜÂëΪ¿Õ£¿

2¡¢Óû§µÇ¼ʱ²»ÄÜ´¥·¢ÒµÎñ·þÎñÆ÷µÄ¡¾OnUserLoginAction¡¿»Øµ÷º¯Êý£¿
´ð£ºÊÇ·ñÕýÈ·²¿ÊðÁËÒµÎñ·þÎñÆ÷£¬ÒµÎñ·þÎñÆ÷ÊÇ·ñÓëºËÐÄ·þÎñÆ÷½¨Á¢ÁËÕý³£µÄͨÐÅÁªÏµ£¿²Î¿¼£ºAnyChatʹÓù¥ÂÔÖ®¶ÀÁ¢²¿ÊðWindowsÊÓƵ·þÎñÆ÷

3¡¢Óû§µÇ¼ʱÊäÈëÁËÓû§Ãû¡¢ÃÜÂ룬Ϊʲô·µ»ØµÄuserid»¹ÊǸºÊý£¬»¹ÊÇÓοÍģʽµÇ¼£¿
´ð£ºÕâÊǺËÐÄ·þÎñÆ÷ÄÚÖõÄÒµÎñÂß¼­£¬µ±ÒµÎñ·þÎñÆ÷ûÓÐÆô¶¯£¬»òÊÇÒµÎñ·þÎñÆ÷²¿Êð²»Õýȷʱ½«Ä¬ÈÏÒÔÓοͷ½Ê½µÇ¼ϵͳ£¬²Î¿¼£ºAnyChatºËÐÄ·þÎñÆ÷ÄÚÖÃÓû§µÇ¼ҵÎñÂß¼­




·ÖÏíµ½:  QQºÃÓѺÍȺQQºÃÓѺÍȺ QQ¿Õ¼äQQ¿Õ¼ä ÌÚѶ΢²©ÌÚѶ΢²© ÌÚѶÅóÓÑÌÚѶÅóÓÑ
ÊÕ²ØÊÕ²Ø2
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

249

Ö÷Ìâ

2967

Ìû×Ó

9108

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
9108
ɳ·¢
 Â¥Ö÷| ·¢±íÓÚ 2013-6-21 11:41:52 | Ö»¿´¸Ã×÷Õß
³ýÁ˲ÉÓöÀÁ¢½ø³ÌµÄÒµÎñ·þÎñÆ÷£¨BusinessServer.exe£©À´ÊµÏÖÒµÎñÂß¼­´¦Àí£¬AnyChat»¹Ö§³ÖÒ»ÖÖ¸ü¼ò½àµÄ¡°SDK Filter Plus¡±¹¤×÷ģʽ£¬ÈçÏÂͼËùʾ£º


½«ÒµÎñÂß¼­·â×°ÔÚÒ»¸ö¶¯Ì¬¿âÖй©ºËÐÄ·þÎñÆ÷£¨AnyChatCoreServer.exe£©µ÷Óá£ÓйØSDKFilterPlusµÄʾÀýÔ´´úÂë¿ÉÒÔÔÚAnyChat for Windows SDKµÄ¡¾src\server\c++\SDKFilterPlus¡¿Ä¿Â¼ÏÂÕÒµ½¡£
±àÒëºÃ¶¯Ì¬¿âÖ®ºó£¬ÔÚºËÐÄ·þÎñÆ÷ÅäÖÃÎļþ£¨AnyChatCoreServer.ini£©ÖнøÐÐÅäÖãº
  1. [Function Settings]
  2. SDKFilterPlus=SDKFilterPlus.dll
¸´ÖÆ´úÂë
È»ºó±£´æÅäÖÃÎļþ£¬½«±àÒëºÃµÄ¶¯Ì¬¿â£¨SDKFilterPlus.dll£¬LinuxÏÂΪ£ºSDKFilterPlus.so£©¿½±´µ½·þÎñÆ÷³ÌÐòËùÔڵĵ±Ç°Ä¿Â¼Ï£¬×îºóÖØÆôºËÐÄ·þÎñÆ÷³ÌÐò¼´¿É£¬»áÔÚºËÐÄ·þÎñÆ÷µÄÈÕÖ¾Îļþ£¨AnyChatCoreServer.log£©ÖÐÊä³öÏà¹ØµÄ¼ÓÔØÐÅÏ¢¡£


249

Ö÷Ìâ

2967

Ìû×Ó

9108

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
9108
°åµÊ
 Â¥Ö÷| ·¢±íÓÚ 2013-6-21 12:02:12 | Ö»¿´¸Ã×÷Õß
ÈôÔÚAnyChatÖ®ÍâÒѾ­½øÐÐÁËÒ»´ÎÓû§Éí·ÝÑéÖ¤£¬Ö»ÊÇÏ£ÍûÓÃAnyChatʵÏÖÁ÷ýÌåͨÐÅ·þÎñ£¬¶øÇÒ²»Ï£ÍûÔÚÒµÎñ·þÎñÆ÷£¨BusinessServer.exe£©ÉÏÉè¼ÆµÃÌ«¸´ÔÓ£¬²»Ï£ÍûÁ¬½ÓÊý¾Ý¿â£¬Ôò¿ÉÒÔͨ¹ýÈçϵķ½Ê½ÇÉÃîµÄ»Ø±ÜAnyChatµÄµÇ¼Á÷³Ì£¬¶øÇÒ»¹¿É±£³ÖuseridÓëµÚÈý·½Æ½Ì¨Ò»Ö¡£

Èç¹ûÔÚµÚÈý·½Æ½Ì¨ÉÏÓû§Éí·ÝÑéÖ¤Ö®ºó£¬»ñµÃµÄuseridΪ108£¬Ôò¿ÉÒÔ½«useridת»»Îª×Ö·û´®¡°108¡±½øÐÐAnyChatƽ̨µÇ¼£¬ÃÜÂë¿ÉÒÔÓÃÈÎÒâ×Ö·û´®´úÌ棬²»Îª¿Õ¼´¿É£¬È磺BRAC_Login("108", "demo", 0)£»

ÔÚÒµÎñ·þÎñÆ÷µÄ¡¾OnVerifyUser¡¿»Øµ÷º¯ÊýÖн«username×Ö·û´®×ª»»ÎªÕûÐÍÖµ£¬´«¸øuserid£¬Í¬Ê±·µ»Ø0¼´¿É¡£
  1. // Óû§Éí·ÝÑéÖ¤»Øµ÷º¯Êý¶¨Òå
  2. DWORD CALLBACK VerifyUserCallBack(LPCTSTR lpUserName,LPCTSTR lpPassword, LPDWORD lpUserID, LPDWORD lpUserLevel, LPTSTR lpNickName,DWORD dwNCLen, LPVOID lpUserValue)
  3. {
  4.     *lpUserID = atoi(lpUserName);
  5.     return 0;
  6. }
¸´ÖÆ´úÂë
ÕâÑùÔÚ¿Í»§¶ËµÄµÇ¼ÏûÏ¢¡¾OnLoginSystem(userid=108, errorcode=0)¡¿¾ÍÊǵÚÈý·½Æ½Ì¨µÄuseridÁË¡£

26

Ö÷Ìâ

161

Ìû×Ó

485

»ý·Ö

Ö춻áÔ±

Rank: 3Rank: 3

»ý·Ö
485
µØ°å
·¢±íÓÚ 2014-11-28 10:42:47 | Ö»¿´¸Ã×÷Õß
ÇëÎÊ£¬¿Í»§µÇ¼ºóÒµÎñ·þÎñÆ÷ÊÇ·ñ¿ÉÒÔ×Ô¶¯´´½¨ºÍ·ÖÅä·¿¼ä£¿

26

Ö÷Ìâ

161

Ìû×Ó

485

»ý·Ö

Ö춻áÔ±

Rank: 3Rank: 3

»ý·Ö
485
5#
·¢±íÓÚ 2014-11-28 10:44:44 | Ö»¿´¸Ã×÷Õß
ÓÐûÓÐÏà¹ØµÄAPI¿É¹©Ê¹Óã¿

249

Ö÷Ìâ

2967

Ìû×Ó

9108

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
9108
6#
 Â¥Ö÷| ·¢±íÓÚ 2014-11-28 10:54:42 | Ö»¿´¸Ã×÷Õß
¹ØÓÚ·¿¼ä£¬Çë²Î¿¼£ºhttp://bbs.anychat.cn/forum.php?mod=viewthread&tid=86

26

Ö÷Ìâ

161

Ìû×Ó

485

»ý·Ö

Ö춻áÔ±

Rank: 3Rank: 3

»ý·Ö
485
7#
·¢±íÓÚ 2014-11-28 10:58:18 | Ö»¿´¸Ã×÷Õß
admin ·¢±íÓÚ 2014-11-28 10:54
¹ØÓÚ·¿¼ä£¬Çë²Î¿¼£ºhttp://bbs.anychat.cn/forum.php?mod=viewthread&tid=86

ºÃµÄ£¬Ð»Ð»

0

Ö÷Ìâ

1

Ìû×Ó

4

»ý·Ö

ÐÂÊÖÉÏ·

Rank: 1

»ý·Ö
4
8#
·¢±íÓÚ 2015-1-27 00:58:32 | Ö»¿´¸Ã×÷Õß
hhºÇºÇºÇºÇºÇ

1

Ö÷Ìâ

2

Ìû×Ó

19

»ý·Ö

ÐÂÊÖÉÏ·

Rank: 1

»ý·Ö
19
9#
·¢±íÓÚ 2015-6-30 21:20:43 | Ö»¿´¸Ã×÷Õß
³ÌÐòÓÐûÓеç×Ӱװ幦ÄÜÄØ£¿
10#
·¢±íÓÚ 2015-7-1 09:04:08 | Ö»¿´¸Ã×÷Õß
z289674881 ·¢±íÓÚ 2015-6-30 21:20
³ÌÐòÓÐûÓеç×Ӱװ幦ÄÜÄØ£¿

ÄúºÃ£¬ÎÒÃÇÌṩÓÐÏà¹ØµÄ½Ó¿Ú£¬¿ÉÒÔÀûÓÃ×ÀÃæ¹²ÏíµÄ½Ó¿ÚȥʵÏÖµç×Ó°×°åµÄ¹¦Äܵġ£
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | Á¢¼´×¢²á

±¾°æ»ý·Ö¹æÔò

Archiver|ÊÖ»ú°æ|AnyChat ( ÔÁICP±¸13022410ºÅ-1 )  

GMT+8, 2024-11-23 08:45 , Processed in 0.147595 second(s), 26 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí