This commit is contained in:
jl
2024-11-29 11:19:47 +08:00
parent 0f7cc10d25
commit f4b525c564
7 changed files with 65 additions and 43 deletions

View File

@ -9,6 +9,7 @@ using Epost.Common;
using System.Web.Helpers;
using System.Data;
using System.Configuration;
using System.Windows.Forms;
namespace Epost.TestToolsWeb.Tests.Controllers
{
@ -19,13 +20,16 @@ namespace Epost.TestToolsWeb.Tests.Controllers
[TestMethod]
public void d()
{
string sku = "211100";
if (sku.Substring(0, 1) == "2" && sku.Substring(1, 1) != "5")
string sku = "2509267236248";
if (sku.Substring(0, 1) == "2")
{
if (sku.Length >= 7)
if (sku.Length >= 8)
{
sku = sku.Substring(1, 6);
sku = sku.Substring(0, 8);
}
}
}
}