行 79: string str=GetMaxID("","TbSendMessage");
行 80: string random="dg"+"0000000000000000".Substring(0,"0000000000000000".Length-str.Length)+str;
行 81: StreamWriter sw = new StreamWriter(path,true,Encoding.GetEncoding("gb2312"));
行 82: sw.WriteLine("<serialno>"+random+"</serialno><sendport>"+config+"</sendport>"+
行 83: "<mobileno>"+fmobile+"</mobileno><content>"+contect+"</content>"+
错误81行代码如下:
using(StreamWriter sw=new StreamWriter(path))
{ try
{
sw.Write("<serialno>"+random+"</serialno><sendport>"+config+"</sendport>"+
"<mobileno>"+fmobile+"</mobileno><content>"+contect+"</content>"+
"<mesgtype>1</mesgtype><apptype>2</apptype><srr>1</srr>end");
sw.Close();
}
catch
{
sw.Close();
}
finally
{
sw.Close();
}
}
行 80: string random="dg"+"0000000000000000".Substring(0,"0000000000000000".Length-str.Length)+str;
行 81: StreamWriter sw = new StreamWriter(path,true,Encoding.GetEncoding("gb2312"));
行 82: sw.WriteLine("<serialno>"+random+"</serialno><sendport>"+config+"</sendport>"+
行 83: "<mobileno>"+fmobile+"</mobileno><content>"+contect+"</content>"+
错误81行代码如下:
using(StreamWriter sw=new StreamWriter(path))
{ try
{
sw.Write("<serialno>"+random+"</serialno><sendport>"+config+"</sendport>"+
"<mobileno>"+fmobile+"</mobileno><content>"+contect+"</content>"+
"<mesgtype>1</mesgtype><apptype>2</apptype><srr>1</srr>end");
sw.Close();
}
catch
{
sw.Close();
}
finally
{
sw.Close();
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货