Commit 5561ce79 authored by 吴春's avatar 吴春

提交

parent e8150af7
...@@ -1908,7 +1908,22 @@ namespace Mall.Module.User ...@@ -1908,7 +1908,22 @@ namespace Mall.Module.User
if (list != null && list.Any()) if (list != null && list.Any())
{ {
list.ForEach(x => x.LiveTime = Convert.ToDateTime(GetTime(x.start_time))); foreach (var item in list)
{
try
{
string datetime = GetTime(item.start_time);
if (!string.IsNullOrWhiteSpace(datetime))
{
item.LiveTime =Convert.ToDateTime(datetime);
}
}
catch (Exception)
{
}
}
liveHouseRepository.InsertBatch(list); liveHouseRepository.InsertBatch(list);
} }
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment