private static void Client_LoginComplete(object sender, TEventArgs <User> e) { string cookie = client.GetLastCookie(); Console.WriteLine("登陆成功:" + e.Result.NickName); Console.WriteLine("========已记录cookie,下次登陆将推送提醒至手机,取代扫码========"); Log.Write("登陆成功:" + e.Result.NickName); Log.Write("========已记录cookie,下次登陆将推送提醒至手机,取代扫码========"); m_isLogin = true; using (StreamWriter sw = new StreamWriter(cookiePath, false)) { sw.WriteLine(cookie); } try { qrForm.Invoke(new Action(() => { qrForm.Close(); })); } catch { } }