This commit is contained in:
jl
2024-01-12 16:53:44 +08:00
parent 95aaa6d25c
commit 9d5221ba0d
8 changed files with 742 additions and 693 deletions

View File

@ -19,13 +19,19 @@ namespace Epost.TestToolsWeb.Tests.Controllers
[TestMethod]
public void d()
{
string sku = "211100";
if (sku.Substring(0, 1) == "2" && sku.Substring(1, 1) != "5")
string showmes = "211100|394892345|938275908324|93875|934725";
if (showmes.Length > 30)
{
if (sku.Length >= 7)
string newstr = showmes.Substring(30, showmes.Length-30);
if (newstr.Length > 30)
{
sku = sku.Substring(1, 6);
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;
}
}
}
}