导入微信格式数据 增加上架时间判断,如果大于指定时间则不上传

This commit is contained in:
chfei committed 2026-10-09 17:52:02 +08:00
1 parent 967f1488fd
commit c75735db0c
7 files changed
+123 -50

No files matched your search

@@ -88,7 +88,7 @@ namespace TemuKJD.BLL.ImportConverters
Platform = Platform,
GoodsId = ParseGoodsId()
};
product.ListingTime = GetListingTime();
// ========== 1. 商品基本信息 ==========
product.Title = GetStringValue(_rawNode, "title");
product.Description = GetStringValue(_rawNode, "subTitle");
@@ -325,7 +325,18 @@ namespace TemuKJD.BLL.ImportConverters
return result;
}
private DateTime? GetListingTime()
{
string time = _rawNode["listingTime"].ToString();
if (time != null)
{
if (int.TryParse(time, out int v))
{
return NaiBa.Util.Helper.DateTimeHelper.IntStampToDateTime(v);
}
}
return null;
}
#endregion
#region SKU和规格解析