Browse Source

修复部分url获取不到详情

master
feng 3 years ago
parent
commit
32c4139d72
  1. 9
      客户端/齐越慧眼/齐越慧眼/ApiHelper.cs
  2. 2
      客户端/齐越慧眼/齐越慧眼/MainWindow.xaml

9
客户端/齐越慧眼/齐越慧眼/ApiHelper.cs

@ -13,8 +13,8 @@ namespace 齐越慧眼
public class ApiHelper public class ApiHelper
{ {
#if LOCATION #if LOCATION
public static string ApiBase { get; set; } = "http://localhost:5000"; //public static string ApiBase { get; set; } = "http://localhost:5000";
//public static string ApiBase { get; set; } = "http://hyapi.qiyue666.com"; public static string ApiBase { get; set; } = "http://hyapi.qiyue666.com";
#else #else
public static string ApiBase { get; set; } = "http://hyapi.qiyue666.com"; public static string ApiBase { get; set; } = "http://hyapi.qiyue666.com";
@ -360,7 +360,10 @@ namespace 齐越慧眼
if (html.Contains("passport.jd.com/new/login.aspx") || html.Contains("//item.jd.com/html/token.html?returnUrl=")) if (html.Contains("passport.jd.com/new/login.aspx") || html.Contains("//item.jd.com/html/token.html?returnUrl="))
{ {
return (2, null); if (!html.Contains("var pageConfig"))
{
return (2, null);
}
} }
int start = html.IndexOf("var pageConfig"); int start = html.IndexOf("var pageConfig");

2
客户端/齐越慧眼/齐越慧眼/MainWindow.xaml

@ -11,7 +11,7 @@
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
ActiveGlowColor="{DynamicResource PrimaryColor}" ActiveGlowColor="{DynamicResource PrimaryColor}"
Height="780" Height="780"
Title="慧眼 V1.0.1.2" Title="慧眼 V1.0.1.3"
Width="1468" Icon="/icon.ico" Width="1468" Icon="/icon.ico"
> >
<Border Padding="0 10" Background="#EEEEEE"> <Border Padding="0 10" Background="#EEEEEE">

Loading…
Cancel
Save