From 8f2550a822661d1659652d58bdba7b68141fe423 Mon Sep 17 00:00:00 2001 From: feng <279202647@qq.com> Date: Sun, 8 May 2022 09:32:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=86=85=E6=A0=B8=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JdShopListener/JdShopListener/ApiHelper.cs | 5 + JdShopListener/JdShopListener/MainWindow.xaml | 2 +- .../JdShopListener/MainWindowViewModel.cs | 59 +++++++--- .../PublishProfiles/FolderProfile.pubxml.user | 2 +- .../JdShopListener/PuppeteerConsole.cs | 105 ++++++++++++++++++ 5 files changed, 154 insertions(+), 19 deletions(-) create mode 100644 JdShopListener/JdShopListener/PuppeteerConsole.cs diff --git a/JdShopListener/JdShopListener/ApiHelper.cs b/JdShopListener/JdShopListener/ApiHelper.cs index 635ce96..4ba57a1 100644 --- a/JdShopListener/JdShopListener/ApiHelper.cs +++ b/JdShopListener/JdShopListener/ApiHelper.cs @@ -21,6 +21,11 @@ namespace Utils { get { +#if DEBUG + jwtToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxNDM5OTA3NzYwNzU3MDE4NjI0IiwidGVhbUlkIjoiMTUxODUwNTk1MTg1Mjc2MTA4OCIsImV4cCI6MTY4MzUwNzk1NX0.jLRfN4ztX7DZnTacG3-SlvXj6jJiQIlTnaXOdTWSXjQ"; + return jwtToken; +#endif + if (string.IsNullOrEmpty(jwtToken)) { jwtToken = Utils.MemoryHelper.GetMemoryToken(); diff --git a/JdShopListener/JdShopListener/MainWindow.xaml b/JdShopListener/JdShopListener/MainWindow.xaml index afd596b..14be421 100644 --- a/JdShopListener/JdShopListener/MainWindow.xaml +++ b/JdShopListener/JdShopListener/MainWindow.xaml @@ -6,7 +6,7 @@ xmlns:local="clr-namespace:JdShopListener" mc:Ignorable="d" DataContext="{x:Static local:MainWindowViewModel.MainViewModel}" - Title="跟屁虫" Height="450" Width="800" > + Title="跟屁虫V1.0.1" Height="450" Width="800" >