This commit is contained in:
@ -9,6 +9,7 @@ using Epost.Common;
|
||||
using System.Web.Helpers;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Epost.TestToolsWeb.Tests.Controllers
|
||||
{
|
||||
@ -19,20 +20,16 @@ namespace Epost.TestToolsWeb.Tests.Controllers
|
||||
[TestMethod]
|
||||
public void d()
|
||||
{
|
||||
string showmes = "211100|394892345|938275908324|93875|934725";
|
||||
if (showmes.Length > 30)
|
||||
string showmes = "211100|总|938275908324|93875|934725";
|
||||
if (!Regex.IsMatch(showmes, @"[\u4e00-\u9fa5]"))
|
||||
{
|
||||
string newstr = showmes.Substring(30, showmes.Length-30);
|
||||
if (newstr.Length > 30)
|
||||
{
|
||||
showmes = showmes.Substring(0, 30) + "\r" + newstr.Substring(0, 30) + "\r" + newstr.Substring(30, newstr.Length-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
showmes = showmes.Substring(0, 30) + "\r" + newstr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else {
|
||||
LogHelper.WriteLogInfo("dasf");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user