mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 19:53:27 +08:00
【优化】取消sku货品货号必须包含【SN】的限制。
【调整】调整Sku切割方式,将小写逗号【.】,替换为【&&】;同时更新表【CoreCmsGoods】内数据,请大家执行sql脚本更新存储的sku数据。
This commit is contained in:
@@ -793,7 +793,7 @@ namespace CoreCms.Net.Services
|
||||
foreach (var item in good.spesDesc.Split("|"))
|
||||
{
|
||||
//1911&&电线型号:2.5mm²
|
||||
var temp = item.Split(".")[1].Split(":");
|
||||
var temp = item.Split("&&")[1].Split(":");
|
||||
var name = temp[0];
|
||||
var value = temp[1];
|
||||
if (!defaultSpec.ContainsKey(name))
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace CoreCms.Net.Services
|
||||
foreach (var item in spesDescArr)
|
||||
{
|
||||
//小类拆分
|
||||
var itemArr = item.Split(".");
|
||||
var itemArr = item.Split("&&");
|
||||
//键值对处理
|
||||
var keyValue = itemArr[1].Split(":");
|
||||
var defaultSpesDesc = new DefaultSpesDesc();
|
||||
|
||||
Reference in New Issue
Block a user