public QQService(QQUser UserFrom) { if (UserFrom.QQID == "1776594476") return; user = UserFrom; th = new Thread(new ThreadStart(Initial)); th.IsBackground = true; th.Start(); timerEvery = new System.Threading.Timer(new TimerCallback(timerCall), this, 20000, 20000); }
/// <summary> /// 发送登录命令 /// </summary> private void Login(QQUser user) { string str = string.Format("VER=1.4&CON=1&CMD=Login&SEQ={0}&UIN={1}&PS={2}&M5=1&LG=0&LC=812822641C978097&GD=TW00QOJ9KUVD753S&CKE=\n", GetSjs3Byte(), user.QQID, user.Password); tcp.Send(str); }