/// <summary>
 /// 记录bug,以便调试
 /// </summary>
 ///
 /// <returns></returns>
 public bool WriteTxt(string str)
 {
     try
     {
         //FileStream fs = new FileStream(@"D:\WeiXin\web\buglog.txt", FileMode.Append);
         //StreamWriter sw = new StreamWriter(fs);
         ////开始写入
         //sw.WriteLine(str);
         ////清空缓冲区
         //sw.Flush();
         ////关闭流
         //sw.Close();
         //fs.Close();
         WXLOG l = new WXLOG();
         l.CON  = str;
         l.TIME = DateTime.Now;
         sbo.AddLog(l);
     }
     catch (Exception)
     {
         return(false);
     }
     return(true);
 }