Beispiel #1
0
 bool QQWork.Init(QQBaseClient _QQEntity, EventMessage _EventCallback, string _MsgHeader)
 {
     MsgHeader     = _MsgHeader;
     EventCallBack = _EventCallback;
     QQEntity      = _QQEntity;
     //登录
     if (!QQEntity.CheckLogin())
     {
         Log("开始登录...");
         bool state = QQEntity.Login();
         //刷新资料
         state &= QQEntity.CheckLogin();
         Log("登录:" + state);
         return(state);
     }
     else
     {
         return(true);
     }
 }
Beispiel #2
0
        bool QQWork.Init(QQBaseClient _QQEntity, EventMessage _EventCallback, string _MsgHeader)
        {
            MsgHeader     = _MsgHeader;
            EventCallBack = _EventCallback;
            QQEntity      = _QQEntity;
            //登录
            Log("检查登陆...");
            bool state = QQEntity.CheckLogin();

            if (!state)
            {
                Log("已过期,重新登陆");
                state = QQEntity.Login();
                //刷新资料
                state = QQEntity.CheckLogin();
            }

            Log("登录:" + state);
            return(state);
        }