后台增加OEM 审核。

Oem 管理增加 申请提现
This commit is contained in:
chfei committed 2026-08-27 14:47:23 +08:00
1 parent 8874820269
commit cdeedd7246
27 files changed
+4150 -761

No files matched your search

+32 -2
View File
@@ -1,6 +1,8 @@
using System.Text;
using AllBase.Model.Result.PDDResult;
using System.Text;
using TemuKJD.BLL;
using TemuKJD.BLL.ImportConverts;
using Work;
using Work.GoodDetail;
namespace KJD.Test
@@ -104,9 +106,37 @@ namespace KJD.Test
[Test]
public void TestWXToPDDV3()
{
string filePath = @"C:\Users\chaih\Documents\xwechat_files\hongfei357_a567\msg\file\2026-08\10000528322732(1).json";
string filePath = @"C:\Users\chaih\Documents\xwechat_files\hongfei357_a567\msg\file\2026-08\10000247042728(1).json";
var frontProdInfo = ConverterToPddFactory.Convert(filePath);
var isMatch = frontProdInfo != null;
PDDProductInfo prodInfo = new PDDProductInfo();
prodInfo.detail = new PDDProductDetailInfo();
prodInfo.detail.sku = new List<sku_item>();
foreach (var skuItem in frontProdInfo.Skus)
{
sku_item skuInfo = new sku_item()
{
spec = new List<spec_item>()
};
var specList = skuItem.Spec.Split([';'], StringSplitOptions.RemoveEmptyEntries).ToList();
foreach (var spec in specList)
{
string specKey = spec.Split(':')[0];
string specValue = spec.Split(':')[1];
var specItem = frontProdInfo.Specs.FirstOrDefault(a => a.SpecKey == specKey && a.SpecValue == specValue);
if (specItem == null) continue;
skuInfo.spec.Add(new spec_item()
{
parent_name = specItem.SpecKey,
spec_name = specItem.SpecValue,
});
}
prodInfo.detail.sku.Add(skuInfo);
}
}
}