bug fixed
parent
fc488ccf1e
commit
8d4b28199a
|
|
@ -11,6 +11,7 @@ using System.Threading.Tasks;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using New_College.Common.Helper;
|
using New_College.Common.Helper;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
namespace New_College.Tasks
|
namespace New_College.Tasks
|
||||||
{
|
{
|
||||||
public class NationWideNewsAgHelper
|
public class NationWideNewsAgHelper
|
||||||
|
|
@ -64,7 +65,7 @@ namespace New_College.Tasks
|
||||||
title = inntertitle,
|
title = inntertitle,
|
||||||
author = author,
|
author = author,
|
||||||
pubtime = Convert.ToDateTime(createtime),
|
pubtime = Convert.ToDateTime(createtime),
|
||||||
detail = innerhtml.Replace("src=\"", "src=\"https://gaokao.chsi.com.cn")
|
detail = Regex.Replace(innerhtml, @"src=""(?!https?:\/\/)(.*?)""", @"src=""https://gaokao.chsi.com.cn$1""")
|
||||||
});
|
});
|
||||||
// }
|
// }
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue