修改云端数据 货号 bug

This commit is contained in:
chfei committed 2026-10-29 18:21:23 +08:00
1 parent 962fb10446
commit 2b6f057e47
1 file changed
+5 -1
@@ -1776,7 +1776,7 @@ namespace TemuKJD.WXForms.ProductForms
var searchExtCode = dbProd.ext_code;
if (dbProd.db_type == "云端数据")
{
dbProd.ext_code = searchExtCode = GetNewExtCode(dbProd.spu_id);
searchExtCode = GetNewExtCode(dbProd.spu_id);
}
else
{
@@ -2581,6 +2581,10 @@ namespace TemuKJD.WXForms.ProductForms
#region 设置货号
var extCode = dbProd.ext_code.IsNullOrEmpty() ? prodInfo.detail.out_goods_sn : dbProd.ext_code;
if (dbProd.db_type == "云端数据")
{
extCode = GetNewExtCode(dbProd.spu_id);
}
if (extCode.IsNullOrEmpty() || extCode.Length <= 10)
{
//extCode = "EC" + Randomx.GetId(1000).ToString().PadLeft(3, '0') + dbProd.spu_id + "C";