├── DaweiH5 ├── FodyWeavers.xml ├── Properties │ ├── Settings.settings │ ├── AssemblyInfo.cs │ ├── Settings.Designer.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Program.cs ├── App.config ├── TaskExecutor │ ├── TaskExecutorBase.cs │ ├── TaskExecutorMerlinHoYoVerse.cs │ └── TaskExecutorMerlin.cs ├── Form1.cs ├── HoyoLabForm.cs ├── HoyoLabForm.Designer.cs ├── QRForm.Designer.cs ├── Form1.Designer.cs ├── packages.config ├── QRForm.resx ├── HoyoLabForm.resx ├── QRForm.cs ├── Form1.resx └── DaweiH5.csproj ├── readme.md ├── DaweiH5.sln └── .gitignore /DaweiH5/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /DaweiH5/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # DaweiH5 2 | 3 | 这是一个米哈游网页活动的自动跳过工具。 4 | 5 | 本工具用于跳过诸如《原神》等米哈游系列游戏的网页活动的游戏过程,直接领取奖励。 6 | 7 | This is an auto-skip tool for HoYoVerse web events. 8 | 9 | This tool is used to skip the game process of web events for HoYoVerse series games, such as *Genshin Impact*, and directly claim the rewards. 10 | -------------------------------------------------------------------------------- /DaweiH5/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace DaweiH5 8 | { 9 | internal static class Program 10 | { 11 | /// 12 | /// 应用程序的主入口点。 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form1()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /DaweiH5/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /DaweiH5/TaskExecutor/TaskExecutorBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Forms; 7 | 8 | namespace DaweiH5.TaskExecutor 9 | { 10 | public abstract class TaskExecutorBase 11 | { 12 | protected string game_biz; 13 | protected string lang; 14 | protected string cookie; 15 | public string taskIdentifier { get; set; } 16 | 17 | protected TaskExecutorBase(string game_biz, string lang, string cookie) 18 | { 19 | this.game_biz = game_biz; 20 | this.lang = lang; 21 | this.cookie = cookie; 22 | } 23 | 24 | public abstract Task ExecuteTasksAsync(); 25 | 26 | protected void ShowErrorMessage(string message) 27 | { 28 | MessageBox.Show(message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /DaweiH5/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("DaweiH5")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("DaweiH5")] 13 | [assembly: AssemblyCopyright("Copyright © 2024")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("b0461105-745b-43b8-8d19-df8cae17ec21")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /DaweiH5/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace DaweiH5.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.10.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /DaweiH5.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.8.34322.80 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DaweiH5", "DaweiH5\DaweiH5.csproj", "{B0461105-745B-43B8-8D19-DF8CAE17EC21}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {B0461105-745B-43B8-8D19-DF8CAE17EC21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {B0461105-745B-43B8-8D19-DF8CAE17EC21}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {B0461105-745B-43B8-8D19-DF8CAE17EC21}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {B0461105-745B-43B8-8D19-DF8CAE17EC21}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {BA7D479D-67AD-43B3-B262-EABCBB12C929} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /DaweiH5/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Threading.Tasks; 4 | using System.Windows.Forms; 5 | using DaweiH5.TaskExecutor; 6 | using Newtonsoft.Json.Linq; 7 | using RestSharp; 8 | 9 | namespace DaweiH5 10 | { 11 | public partial class Form1 : Form 12 | { 13 | private string game_biz = "hk4e_cn"; 14 | private string lang = "zh-cn"; 15 | private string taskIdentifier = "e20241004rolewarm"; 16 | 17 | public Form1() 18 | { 19 | InitializeComponent(); 20 | InitializeComboBox(); 21 | } 22 | 23 | private void InitializeComboBox() 24 | { 25 | comboBox1.Items.AddRange(new object[] 26 | { 27 | "加急订单", 28 | "和声的回响" 29 | }); 30 | comboBox1.SelectedIndex = 0; 31 | comboBox1.SelectedIndexChanged += ComboBox1_SelectedIndexChanged; 32 | } 33 | 34 | private void ComboBox1_SelectedIndexChanged(object sender, EventArgs e) 35 | { 36 | switch (comboBox1.SelectedItem.ToString()) 37 | { 38 | case "加急订单": 39 | taskIdentifier = "e20241004rolewarm"; 40 | break; 41 | case "和声的回响": 42 | taskIdentifier = "e20241005ost"; 43 | break; 44 | default: 45 | taskIdentifier = "e20241004rolewarm"; 46 | break; 47 | } 48 | } 49 | 50 | private async void button1_Click(object sender, EventArgs e) 51 | { 52 | string cookie = textBox1.Text; 53 | var executor = new TaskExecutorMerlin(game_biz, lang, cookie); 54 | executor.taskIdentifier = taskIdentifier; 55 | await executor.ExecuteTasksAsync(); 56 | } 57 | 58 | private void qrButton_Click(object sender, EventArgs e) 59 | { 60 | using (var qrForm = new QRForm()) 61 | { 62 | qrForm.ShowDialog(this); 63 | } 64 | } 65 | 66 | private void button2_Click(object sender, EventArgs e) 67 | { 68 | using (var hoYoLabForm = new HoyoLabForm()) 69 | { 70 | hoYoLabForm.ShowDialog(this); 71 | } 72 | } 73 | } 74 | } -------------------------------------------------------------------------------- /DaweiH5/HoyoLabForm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace DaweiH5 12 | { 13 | public partial class HoyoLabForm : Form 14 | { 15 | 16 | private Timer timer; 17 | 18 | public HoyoLabForm() 19 | { 20 | InitializeComponent(); 21 | LoadWebViewAndStartCookieCheck(); 22 | } 23 | 24 | private async void LoadWebViewAndStartCookieCheck() 25 | { 26 | await InitializeWebView(); 27 | StartCookieCheck(); 28 | } 29 | 30 | private async Task InitializeWebView() 31 | { 32 | await hoyoverseWebview.EnsureCoreWebView2Async(); 33 | await ClearCookies(); 34 | } 35 | 36 | private async Task ClearCookies() 37 | { 38 | var cookieManager = hoyoverseWebview.CoreWebView2.CookieManager; 39 | var cookies = await cookieManager.GetCookiesAsync("https://account.hoyoverse.com"); 40 | 41 | foreach (var cookie in cookies) 42 | { 43 | cookieManager.DeleteCookie(cookie); 44 | } 45 | } 46 | 47 | private void StartCookieCheck() 48 | { 49 | timer = new Timer(); 50 | timer.Interval = 1000; // 1 second interval 51 | timer.Tick += (sender, e) => getCookie(); 52 | timer.Start(); 53 | } 54 | 55 | private async void getCookie() 56 | { 57 | var cookieManager = hoyoverseWebview.CoreWebView2.CookieManager; 58 | var cookies = await cookieManager.GetCookiesAsync("https://account.hoyoverse.com"); 59 | StringBuilder cookieString = new StringBuilder(); 60 | 61 | foreach (var cookie in cookies) 62 | { 63 | cookieString.Append($"{cookie.Name}={cookie.Value};"); 64 | } 65 | 66 | string cookieData = cookieString.ToString(); 67 | if (cookieData.Contains("ltuid")) 68 | { 69 | ((Form1)Owner).textBox1.ResetText(); 70 | ((Form1)Owner).textBox1.AppendText(cookieData); 71 | this.Close(); 72 | } 73 | } 74 | 75 | protected override void OnFormClosing(FormClosingEventArgs e) 76 | { 77 | if (timer != null) 78 | { 79 | timer.Stop(); 80 | timer.Dispose(); 81 | } 82 | base.OnFormClosing(e); 83 | } 84 | } 85 | } -------------------------------------------------------------------------------- /DaweiH5/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace DaweiH5.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// 一个强类型的资源类,用于查找本地化的字符串等。 17 | /// 18 | // 此类是由 StronglyTypedResourceBuilder 19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen 21 | // (以 /str 作为命令选项),或重新生成 VS 项目。 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// 返回此类使用的缓存的 ResourceManager 实例。 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DaweiH5.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// 重写当前线程的 CurrentUICulture 属性,对 51 | /// 使用此强类型资源类的所有资源查找执行重写。 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /DaweiH5/HoyoLabForm.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace DaweiH5 2 | { 3 | partial class HoyoLabForm 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.hoyoverseWebview = new Microsoft.Web.WebView2.WinForms.WebView2(); 32 | this.label1 = new System.Windows.Forms.Label(); 33 | ((System.ComponentModel.ISupportInitialize)(this.hoyoverseWebview)).BeginInit(); 34 | this.SuspendLayout(); 35 | // 36 | // hoyoverseWebview 37 | // 38 | this.hoyoverseWebview.AllowExternalDrop = true; 39 | this.hoyoverseWebview.CreationProperties = null; 40 | this.hoyoverseWebview.DefaultBackgroundColor = System.Drawing.Color.White; 41 | this.hoyoverseWebview.Location = new System.Drawing.Point(6, 32); 42 | this.hoyoverseWebview.Margin = new System.Windows.Forms.Padding(2); 43 | this.hoyoverseWebview.Name = "hoyoverseWebview"; 44 | this.hoyoverseWebview.Size = new System.Drawing.Size(762, 507); 45 | this.hoyoverseWebview.Source = new System.Uri("https://account.hoyoverse.com/login-platform/index.html?token_type=6&client_type=" + 46 | "4&app_id=ce1tbuwb00zk&game_biz=hk4e_global&lang=zh-cn&theme=light-hk4e&ux_mode=p" + 47 | "opup&iframe_level=1#/password-login", System.UriKind.Absolute); 48 | this.hoyoverseWebview.TabIndex = 0; 49 | this.hoyoverseWebview.ZoomFactor = 1D; 50 | // 51 | // label1 52 | // 53 | this.label1.AutoSize = true; 54 | this.label1.Location = new System.Drawing.Point(6, 11); 55 | this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); 56 | this.label1.Name = "label1"; 57 | this.label1.Size = new System.Drawing.Size(365, 12); 58 | this.label1.TabIndex = 2; 59 | this.label1.Text = "请在此登录框中输入账密登录(通过人机验证后没反应为正常现象)"; 60 | // 61 | // HoyoLabForm 62 | // 63 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 64 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 65 | this.ClientSize = new System.Drawing.Size(774, 550); 66 | this.Controls.Add(this.label1); 67 | this.Controls.Add(this.hoyoverseWebview); 68 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 69 | this.MaximizeBox = false; 70 | this.Name = "HoyoLabForm"; 71 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 72 | this.Text = "HoyoLab登录"; 73 | ((System.ComponentModel.ISupportInitialize)(this.hoyoverseWebview)).EndInit(); 74 | this.ResumeLayout(false); 75 | this.PerformLayout(); 76 | 77 | } 78 | 79 | #endregion 80 | 81 | private Microsoft.Web.WebView2.WinForms.WebView2 hoyoverseWebview; 82 | private System.Windows.Forms.Label label1; 83 | } 84 | } -------------------------------------------------------------------------------- /DaweiH5/QRForm.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace DaweiH5 2 | { 3 | partial class QRForm 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.label1 = new System.Windows.Forms.Label(); 32 | this.QRPic = new System.Windows.Forms.PictureBox(); 33 | this.refreshButton = new System.Windows.Forms.Button(); 34 | ((System.ComponentModel.ISupportInitialize)(this.QRPic)).BeginInit(); 35 | this.SuspendLayout(); 36 | // 37 | // label1 38 | // 39 | this.label1.AutoSize = true; 40 | this.label1.Location = new System.Drawing.Point(86, 54); 41 | this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); 42 | this.label1.Name = "label1"; 43 | this.label1.Size = new System.Drawing.Size(502, 24); 44 | this.label1.TabIndex = 0; 45 | this.label1.Text = "请使用“米游社”或者任意米哈游游戏App扫码"; 46 | // 47 | // QRPic 48 | // 49 | this.QRPic.Location = new System.Drawing.Point(82, 104); 50 | this.QRPic.Margin = new System.Windows.Forms.Padding(6); 51 | this.QRPic.Name = "QRPic"; 52 | this.QRPic.Size = new System.Drawing.Size(500, 500); 53 | this.QRPic.TabIndex = 1; 54 | this.QRPic.TabStop = false; 55 | // 56 | // refreshButton 57 | // 58 | this.refreshButton.Location = new System.Drawing.Point(90, 614); 59 | this.refreshButton.Margin = new System.Windows.Forms.Padding(6); 60 | this.refreshButton.Name = "refreshButton"; 61 | this.refreshButton.Size = new System.Drawing.Size(484, 46); 62 | this.refreshButton.TabIndex = 2; 63 | this.refreshButton.Text = "刷新"; 64 | this.refreshButton.UseVisualStyleBackColor = true; 65 | this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click); 66 | // 67 | // QRForm 68 | // 69 | this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F); 70 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 71 | this.ClientSize = new System.Drawing.Size(670, 714); 72 | this.Controls.Add(this.refreshButton); 73 | this.Controls.Add(this.QRPic); 74 | this.Controls.Add(this.label1); 75 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 76 | this.Margin = new System.Windows.Forms.Padding(6); 77 | this.MaximizeBox = false; 78 | this.Name = "QRForm"; 79 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 80 | this.Text = "米游社二维码登录"; 81 | this.Load += new System.EventHandler(this.QRForm_Load); 82 | ((System.ComponentModel.ISupportInitialize)(this.QRPic)).EndInit(); 83 | this.ResumeLayout(false); 84 | this.PerformLayout(); 85 | 86 | } 87 | 88 | #endregion 89 | 90 | private System.Windows.Forms.Label label1; 91 | private System.Windows.Forms.PictureBox QRPic; 92 | private System.Windows.Forms.Button refreshButton; 93 | } 94 | } -------------------------------------------------------------------------------- /DaweiH5/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace DaweiH5 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// 必需的设计器变量。 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// 清理所有正在使用的资源。 12 | /// 13 | /// 如果应释放托管资源,为 true;否则为 false。 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows 窗体设计器生成的代码 24 | 25 | /// 26 | /// 设计器支持所需的方法 - 不要修改 27 | /// 使用代码编辑器修改此方法的内容。 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); 32 | this.label1 = new System.Windows.Forms.Label(); 33 | this.label2 = new System.Windows.Forms.Label(); 34 | this.textBox1 = new System.Windows.Forms.TextBox(); 35 | this.button1 = new System.Windows.Forms.Button(); 36 | this.qrButton = new System.Windows.Forms.Button(); 37 | this.comboBox1 = new System.Windows.Forms.ComboBox(); 38 | this.button2 = new System.Windows.Forms.Button(); 39 | this.SuspendLayout(); 40 | // 41 | // label1 42 | // 43 | resources.ApplyResources(this.label1, "label1"); 44 | this.label1.Name = "label1"; 45 | // 46 | // label2 47 | // 48 | resources.ApplyResources(this.label2, "label2"); 49 | this.label2.Name = "label2"; 50 | // 51 | // textBox1 52 | // 53 | resources.ApplyResources(this.textBox1, "textBox1"); 54 | this.textBox1.Name = "textBox1"; 55 | // 56 | // button1 57 | // 58 | resources.ApplyResources(this.button1, "button1"); 59 | this.button1.Name = "button1"; 60 | this.button1.UseVisualStyleBackColor = true; 61 | this.button1.Click += new System.EventHandler(this.button1_Click); 62 | // 63 | // qrButton 64 | // 65 | resources.ApplyResources(this.qrButton, "qrButton"); 66 | this.qrButton.Name = "qrButton"; 67 | this.qrButton.UseVisualStyleBackColor = true; 68 | this.qrButton.Click += new System.EventHandler(this.qrButton_Click); 69 | // 70 | // comboBox1 71 | // 72 | this.comboBox1.FormattingEnabled = true; 73 | resources.ApplyResources(this.comboBox1, "comboBox1"); 74 | this.comboBox1.Name = "comboBox1"; 75 | // 76 | // button2 77 | // 78 | resources.ApplyResources(this.button2, "button2"); 79 | this.button2.Name = "button2"; 80 | this.button2.UseVisualStyleBackColor = true; 81 | this.button2.Click += new System.EventHandler(this.button2_Click); 82 | // 83 | // Form1 84 | // 85 | resources.ApplyResources(this, "$this"); 86 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 87 | this.Controls.Add(this.button2); 88 | this.Controls.Add(this.comboBox1); 89 | this.Controls.Add(this.qrButton); 90 | this.Controls.Add(this.button1); 91 | this.Controls.Add(this.textBox1); 92 | this.Controls.Add(this.label2); 93 | this.Controls.Add(this.label1); 94 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 95 | this.MaximizeBox = false; 96 | this.Name = "Form1"; 97 | this.ResumeLayout(false); 98 | this.PerformLayout(); 99 | 100 | } 101 | 102 | #endregion 103 | 104 | private System.Windows.Forms.Label label1; 105 | private System.Windows.Forms.Label label2; 106 | public System.Windows.Forms.TextBox textBox1; 107 | private System.Windows.Forms.Button button1; 108 | private System.Windows.Forms.Button qrButton; 109 | private System.Windows.Forms.ComboBox comboBox1; 110 | private System.Windows.Forms.Button button2; 111 | } 112 | } 113 | 114 | -------------------------------------------------------------------------------- /DaweiH5/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /DaweiH5/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /DaweiH5/QRForm.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /DaweiH5/HoyoLabForm.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /DaweiH5/TaskExecutor/TaskExecutorMerlinHoYoVerse.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using RestSharp; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using System.Windows.Forms; 9 | 10 | namespace DaweiH5.TaskExecutor 11 | { 12 | public class TaskExecutorMerlinHoYoVerse : TaskExecutorBase 13 | { 14 | private readonly string initialTaskUrlTemplate = "https://hk4e-api.mihoyo.com/event/merlin_v2/v3/flow/run/hk4e_cn/{0}/1?game_biz={1}"; 15 | private readonly string doTaskUrlTemplate = "https://hk4e-api.mihoyo.com/event/merlin_v2/v3/flow/run/hk4e_cn/{0}/2?game_biz={1}&lang=zh-cn"; 16 | private readonly string loginUrl = "https://api-takumi.mihoyo.com/common/badge/v1/login/account"; 17 | 18 | public TaskExecutorMerlinHoYoVerse(string game_biz, string lang, string cookie) : base(game_biz, lang, cookie) { } 19 | 20 | public override async Task ExecuteTasksAsync() 21 | { 22 | try 23 | { 24 | // 首先获取 uid 和 region 25 | var client = new RestClient("https://passport-api.mihoyo.com/binding/api/getUserGameRolesByCookieToken?game_biz=" + game_biz); 26 | var request = new RestRequest(); 27 | request.AddHeader("Cookie", cookie); 28 | 29 | var roleResponse = await client.ExecuteAsync(request); 30 | if (!roleResponse.IsSuccessful) 31 | { 32 | ShowErrorMessage("获取角色失败,请检查是否绑定米游社"); 33 | return; 34 | } 35 | 36 | var roleJson = JObject.Parse(roleResponse.Content); 37 | if (roleJson["retcode"]?.ToString() != "0") 38 | { 39 | ShowErrorMessage($"错误 {roleJson["retcode"]}"); 40 | return; 41 | } 42 | 43 | var gameRole = roleJson["data"]?["list"]?.FirstOrDefault(role => role["is_chosen"]?.ToObject() == true); 44 | if (gameRole == null) 45 | { 46 | gameRole = roleJson["data"]?["list"]?.First(); 47 | } 48 | 49 | var region = gameRole?["region"]?.ToString(); 50 | var gameUid = gameRole?["game_uid"]?.ToString(); 51 | 52 | if (string.IsNullOrEmpty(region) || string.IsNullOrEmpty(gameUid)) 53 | { 54 | ShowErrorMessage("获取 region 与 UID 失败,请检查cookie"); 55 | return; 56 | } 57 | 58 | // 首先访问登录接口从 set-cookie 中获取 e_hk4e_token 59 | client = new RestClient(loginUrl); 60 | request = new RestRequest(loginUrl, Method.Post); 61 | request.AddHeader("Cookie", cookie); 62 | request.AddJsonBody(new { region, uid = gameUid, game_biz, lang }); 63 | var loginResponse = await client.ExecuteAsync(request); 64 | if (loginResponse.IsSuccessful) 65 | { 66 | var eHk4eToken = loginResponse.Headers 67 | .Where(h => h.Name == "Set-Cookie" && h.Value.ToString().Contains("e_hk4e_token")) 68 | .Select(h => h.Value.ToString().Split(';').FirstOrDefault(part => part.Contains("e_hk4e_token"))) 69 | .FirstOrDefault(); 70 | 71 | if (!string.IsNullOrEmpty(eHk4eToken)) 72 | { 73 | cookie += $"; {eHk4eToken}"; 74 | } 75 | } 76 | else 77 | { 78 | ShowErrorMessage("获取 e_hk4e_token 失败,请检查cookie"); 79 | return; 80 | } 81 | 82 | // 继续进行任务的处理 83 | string initialTaskUrl = string.Format(initialTaskUrlTemplate, taskIdentifier, game_biz); 84 | client = new RestClient(initialTaskUrl); 85 | request = new RestRequest(initialTaskUrl, Method.Get); 86 | request.AddHeader("Cookie", cookie); 87 | 88 | // 发送请求 89 | var response = await client.ExecuteAsync(request); 90 | 91 | if (!response.IsSuccessful) 92 | { 93 | ShowErrorMessage(response.ErrorMessage); 94 | return; 95 | } 96 | 97 | var jsonResponse = JObject.Parse(response.Content); 98 | if (jsonResponse["retcode"]?.ToString() != "0") 99 | { 100 | ShowErrorMessage($"错误码: {jsonResponse["retcode"]}, 错误信息:{jsonResponse["message"]}"); 101 | return; 102 | } 103 | 104 | // 如果 retcode 为 0,获取所有 task_id 105 | var taskIds = jsonResponse["data"]?["tasks"]?["data"]? 106 | .Select(task => task["task_id"]?.ToString()) 107 | .Where(id => !string.IsNullOrEmpty(id)) 108 | .ToList(); 109 | 110 | if (taskIds != null && taskIds.Count > 0) 111 | { 112 | foreach (var taskId in taskIds) 113 | { 114 | if (!await DoTask(int.Parse(taskId))) 115 | { 116 | MessageBox.Show("执行任务失败", "警告", MessageBoxButtons.OK, MessageBoxIcon.Error); 117 | return; 118 | } 119 | } 120 | MessageBox.Show("执行完毕,请检查《原神》游戏内邮箱\n如果游戏内无邮件请检查网页是否为兑换码领取或分享领取,本程序已为您跳过大部分繁琐流程", "完成", MessageBoxButtons.OK, MessageBoxIcon.Information); 121 | } 122 | else 123 | { 124 | MessageBox.Show("找不到任务清单,可能是活动已经结束", "警告", MessageBoxButtons.OK, MessageBoxIcon.Information); 125 | } 126 | } 127 | catch (Exception ex) 128 | { 129 | ShowErrorMessage(ex.Message); 130 | } 131 | } 132 | 133 | private async Task DoTask(int taskId) 134 | { 135 | string doTaskUrl = string.Format(doTaskUrlTemplate, taskId, game_biz); 136 | var client = new RestClient(doTaskUrl); 137 | var request = new RestRequest(doTaskUrl, Method.Post); 138 | request.AddHeader("Cookie", cookie); 139 | request.AddJsonBody(new { task_id = taskId }); 140 | 141 | try 142 | { 143 | var response = await client.ExecuteAsync(request); 144 | 145 | if (!response.IsSuccessful) 146 | { 147 | ShowErrorMessage(response.ErrorMessage); 148 | return false; 149 | } 150 | 151 | var jsonResponse = JObject.Parse(response.Content); 152 | var retcode = jsonResponse["retcode"]?.ToString(); 153 | if (retcode != "0" && retcode != "2007" && retcode != "2004") 154 | { 155 | ShowErrorMessage($"Error: retcode is {retcode}"); 156 | return false; 157 | } 158 | 159 | return true; 160 | } 161 | catch (Exception ex) 162 | { 163 | ShowErrorMessage(ex.Message); 164 | return false; 165 | } 166 | } 167 | } 168 | } 169 | -------------------------------------------------------------------------------- /DaweiH5/TaskExecutor/TaskExecutorMerlin.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using RestSharp; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using System.Windows.Forms; 9 | 10 | namespace DaweiH5.TaskExecutor 11 | { 12 | public class TaskExecutorMerlin : TaskExecutorBase 13 | { 14 | private readonly string initialTaskUrlTemplate = "https://hk4e-api.mihoyo.com/event/merlin_v2/v3/flow/run/hk4e_cn/{0}/1?game_biz={1}"; 15 | private readonly string doTaskUrlTemplate = "https://hk4e-api.mihoyo.com/event/merlin_v2/v3/flow/run/hk4e_cn/{0}/2?game_biz={1}&lang=zh-cn"; 16 | private readonly string loginUrl = "https://api-takumi.mihoyo.com/common/badge/v1/login/account"; 17 | 18 | public TaskExecutorMerlin(string game_biz, string lang, string cookie) : base(game_biz, lang, cookie) { } 19 | 20 | public override async Task ExecuteTasksAsync() 21 | { 22 | try 23 | { 24 | // 首先获取 uid 和 region 25 | var client = new RestClient("https://passport-api.mihoyo.com/binding/api/getUserGameRolesByCookieToken?game_biz=" + game_biz); 26 | var request = new RestRequest(); 27 | request.AddHeader("Cookie", cookie); 28 | 29 | var roleResponse = await client.ExecuteAsync(request); 30 | if (!roleResponse.IsSuccessful) 31 | { 32 | ShowErrorMessage("获取角色失败,请检查是否绑定米游社"); 33 | return; 34 | } 35 | 36 | var roleJson = JObject.Parse(roleResponse.Content); 37 | if (roleJson["retcode"]?.ToString() != "0") 38 | { 39 | ShowErrorMessage($"错误 {roleJson["retcode"]}"); 40 | return; 41 | } 42 | 43 | var gameRole = roleJson["data"]?["list"]?.FirstOrDefault(role => role["is_chosen"]?.ToObject() == true); 44 | if (gameRole == null) 45 | { 46 | gameRole = roleJson["data"]?["list"]?.First(); 47 | } 48 | 49 | var region = gameRole?["region"]?.ToString(); 50 | var gameUid = gameRole?["game_uid"]?.ToString(); 51 | 52 | if (string.IsNullOrEmpty(region) || string.IsNullOrEmpty(gameUid)) 53 | { 54 | ShowErrorMessage("获取 region 与 UID 失败,请检查cookie"); 55 | return; 56 | } 57 | 58 | // 首先访问登录接口从 set-cookie 中获取 e_hk4e_token 59 | client = new RestClient(loginUrl); 60 | request = new RestRequest(loginUrl, Method.Post); 61 | request.AddHeader("Cookie", cookie); 62 | request.AddJsonBody(new { region, uid = gameUid, game_biz, lang }); 63 | var loginResponse = await client.ExecuteAsync(request); 64 | if (loginResponse.IsSuccessful) 65 | { 66 | var eHk4eToken = loginResponse.Headers 67 | .Where(h => h.Name == "Set-Cookie" && h.Value.ToString().Contains("e_hk4e_token")) 68 | .Select(h => h.Value.ToString().Split(';').FirstOrDefault(part => part.Contains("e_hk4e_token"))) 69 | .FirstOrDefault(); 70 | 71 | if (!string.IsNullOrEmpty(eHk4eToken)) 72 | { 73 | cookie += $"; {eHk4eToken}"; 74 | } 75 | } 76 | else 77 | { 78 | ShowErrorMessage("获取 e_hk4e_token 失败,请检查cookie"); 79 | return; 80 | } 81 | 82 | // 继续进行任务的处理 83 | string initialTaskUrl = string.Format(initialTaskUrlTemplate, taskIdentifier, game_biz); 84 | client = new RestClient(initialTaskUrl); 85 | request = new RestRequest(initialTaskUrl, Method.Get); 86 | request.AddHeader("Cookie", cookie); 87 | 88 | // 发送请求 89 | var response = await client.ExecuteAsync(request); 90 | 91 | if (!response.IsSuccessful) 92 | { 93 | ShowErrorMessage(response.ErrorMessage); 94 | return; 95 | } 96 | 97 | var jsonResponse = JObject.Parse(response.Content); 98 | if (jsonResponse["retcode"]?.ToString() != "0") 99 | { 100 | ShowErrorMessage($"错误码: {jsonResponse["retcode"]}, 错误信息:{jsonResponse["message"]}"); 101 | return; 102 | } 103 | 104 | // 如果 retcode 为 0,获取所有 task_id 105 | var taskIds = jsonResponse["data"]?["tasks"]?["data"]? 106 | .Select(task => task["task_id"]?.ToString()) 107 | .Where(id => !string.IsNullOrEmpty(id)) 108 | .ToList(); 109 | 110 | if (taskIds != null && taskIds.Count > 0) 111 | { 112 | foreach (var taskId in taskIds) 113 | { 114 | if (!await DoTask(int.Parse(taskId))) 115 | { 116 | MessageBox.Show("执行任务失败", "警告", MessageBoxButtons.OK, MessageBoxIcon.Error); 117 | return; 118 | } 119 | } 120 | MessageBox.Show("执行完毕,请检查《原神》游戏内邮箱\n如果游戏内无邮件请检查网页是否为兑换码领取或分享领取,本程序已为您跳过大部分繁琐流程", "完成", MessageBoxButtons.OK, MessageBoxIcon.Information); 121 | } 122 | else 123 | { 124 | MessageBox.Show("找不到任务清单,可能是活动已经结束", "警告", MessageBoxButtons.OK, MessageBoxIcon.Information); 125 | } 126 | } 127 | catch (Exception ex) 128 | { 129 | ShowErrorMessage(ex.Message); 130 | } 131 | } 132 | 133 | private async Task DoTask(int taskId) 134 | { 135 | string doTaskUrl = string.Format(doTaskUrlTemplate, taskIdentifier, game_biz); 136 | var client = new RestClient(doTaskUrl); 137 | var request = new RestRequest(doTaskUrl, Method.Post); 138 | request.AddHeader("Cookie", cookie); 139 | request.AddJsonBody(new { task_id = taskId }); 140 | 141 | try 142 | { 143 | var response = await client.ExecuteAsync(request); 144 | 145 | if (!response.IsSuccessful) 146 | { 147 | ShowErrorMessage(response.ErrorMessage); 148 | return false; 149 | } 150 | 151 | var jsonResponse = JObject.Parse(response.Content); 152 | var retcode = jsonResponse["retcode"]?.ToString(); 153 | var message = jsonResponse["message"]?.ToString(); 154 | if (retcode != "0" && retcode != "2007" && retcode != "2004") 155 | { 156 | ShowErrorMessage($"错误:{message}"); 157 | return false; 158 | } 159 | 160 | return true; 161 | } 162 | catch (Exception ex) 163 | { 164 | ShowErrorMessage(ex.Message); 165 | return false; 166 | } 167 | } 168 | } 169 | } 170 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET Core 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # ASP.NET Scaffolding 66 | ScaffoldingReadMe.txt 67 | 68 | # StyleCop 69 | StyleCopReport.xml 70 | 71 | # Files built by Visual Studio 72 | *_i.c 73 | *_p.c 74 | *_h.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.iobj 79 | *.pch 80 | *.pdb 81 | *.ipdb 82 | *.pgc 83 | *.pgd 84 | *.rsp 85 | *.sbr 86 | *.tlb 87 | *.tli 88 | *.tlh 89 | *.tmp 90 | *.tmp_proj 91 | *_wpftmp.csproj 92 | *.log 93 | *.tlog 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio 6 auto-generated project file (contains which files were open etc.) 298 | *.vbp 299 | 300 | # Visual Studio 6 workspace and project file (working project files containing files to include in project) 301 | *.dsw 302 | *.dsp 303 | 304 | # Visual Studio 6 technical files 305 | *.ncb 306 | *.aps 307 | 308 | # Visual Studio LightSwitch build output 309 | **/*.HTMLClient/GeneratedArtifacts 310 | **/*.DesktopClient/GeneratedArtifacts 311 | **/*.DesktopClient/ModelManifest.xml 312 | **/*.Server/GeneratedArtifacts 313 | **/*.Server/ModelManifest.xml 314 | _Pvt_Extensions 315 | 316 | # Paket dependency manager 317 | .paket/paket.exe 318 | paket-files/ 319 | 320 | # FAKE - F# Make 321 | .fake/ 322 | 323 | # CodeRush personal settings 324 | .cr/personal 325 | 326 | # Python Tools for Visual Studio (PTVS) 327 | __pycache__/ 328 | *.pyc 329 | 330 | # Cake - Uncomment if you are using it 331 | # tools/** 332 | # !tools/packages.config 333 | 334 | # Tabs Studio 335 | *.tss 336 | 337 | # Telerik's JustMock configuration file 338 | *.jmconfig 339 | 340 | # BizTalk build output 341 | *.btp.cs 342 | *.btm.cs 343 | *.odx.cs 344 | *.xsd.cs 345 | 346 | # OpenCover UI analysis results 347 | OpenCover/ 348 | 349 | # Azure Stream Analytics local run output 350 | ASALocalRun/ 351 | 352 | # MSBuild Binary and Structured Log 353 | *.binlog 354 | 355 | # NVidia Nsight GPU debugger configuration file 356 | *.nvuser 357 | 358 | # MFractors (Xamarin productivity tool) working folder 359 | .mfractor/ 360 | 361 | # Local History for Visual Studio 362 | .localhistory/ 363 | 364 | # Visual Studio History (VSHistory) files 365 | .vshistory/ 366 | 367 | # BeatPulse healthcheck temp database 368 | healthchecksdb 369 | 370 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 371 | MigrationBackup/ 372 | 373 | # Ionide (cross platform F# VS Code tools) working folder 374 | .ionide/ 375 | 376 | # Fody - auto-generated XML schema 377 | FodyWeavers.xsd 378 | 379 | # VS Code files for those working on multiple tools 380 | .vscode/* 381 | !.vscode/settings.json 382 | !.vscode/tasks.json 383 | !.vscode/launch.json 384 | !.vscode/extensions.json 385 | *.code-workspace 386 | 387 | # Local History for Visual Studio Code 388 | .history/ 389 | 390 | # Windows Installer files from build outputs 391 | *.cab 392 | *.msi 393 | *.msix 394 | *.msm 395 | *.msp 396 | 397 | # JetBrains Rider 398 | *.sln.iml -------------------------------------------------------------------------------- /DaweiH5/QRForm.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using RestSharp; 3 | using System; 4 | using System.Drawing; 5 | using System.Threading; 6 | using System.Threading.Tasks; 7 | using QRCoder; 8 | using System.Windows.Forms; 9 | using System.Linq; 10 | 11 | namespace DaweiH5 12 | { 13 | public partial class QRForm : Form 14 | { 15 | 16 | private readonly string qrLoginUrl = "https://passport-api.mihoyo.com/account/ma-cn-passport/web/createQRLogin"; 17 | private readonly string qrStatusUrl = "https://passport-api.miyoushe.com/account/ma-cn-passport/web/queryQRLoginStatus"; 18 | private CancellationTokenSource cancellationTokenSource; 19 | private bool scannedAlertShown = false; 20 | private string deviceId = "c0570f46-ced6-4a17-1e51-0682e1c2162a"; 21 | 22 | public QRForm() 23 | { 24 | InitializeComponent(); 25 | cancellationTokenSource = new CancellationTokenSource(); 26 | } 27 | 28 | private void refreshButton_Click(object sender, EventArgs e) 29 | { 30 | // 取消当前的二维码查询任务 31 | cancellationTokenSource.Cancel(); 32 | cancellationTokenSource = new CancellationTokenSource(); 33 | 34 | // 重新加载二维码 35 | QRForm_Load(sender, e); 36 | } 37 | 38 | private async void QRForm_Load(object sender, EventArgs e) 39 | { 40 | try 41 | { 42 | var client = new RestClient(qrLoginUrl); 43 | var request = new RestRequest(qrLoginUrl, Method.Post); 44 | request.AddHeader("x-rpc-app_id", "bll8iq97cem8"); 45 | request.AddHeader("x-rpc-device_id", deviceId); 46 | 47 | // 发送请求 48 | var response = await client.ExecuteAsync(request); 49 | 50 | if (!response.IsSuccessful) 51 | { 52 | MessageBox.Show(response.ErrorMessage, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 53 | return; 54 | } 55 | 56 | var jsonResponse = JObject.Parse(response.Content); 57 | if (jsonResponse["retcode"]?.ToString() != "0") 58 | { 59 | MessageBox.Show($"错误: {jsonResponse["message"]}\n点击“确认”后会生成一个新的设备码,然后重新点击“刷新”即可恢复正常", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 60 | //重新生成uuid 61 | deviceId = Guid.NewGuid().ToString(); 62 | return; 63 | } 64 | 65 | // 获取二维码URL并生成二维码 66 | var qrUrl = jsonResponse["data"]?["url"]?.ToString(); 67 | var ticket = jsonResponse["data"]?["ticket"]?.ToString(); 68 | if (!string.IsNullOrEmpty(qrUrl) && !string.IsNullOrEmpty(ticket)) 69 | { 70 | using (var qrGenerator = new QRCodeGenerator()) 71 | { 72 | var qrCodeData = qrGenerator.CreateQrCode(qrUrl, QRCodeGenerator.ECCLevel.Q); 73 | var qrCode = new QRCode(qrCodeData); 74 | 75 | // Adjust bitmap size to fit QRPic dimensions 76 | using (var qrBitmap = qrCode.GetGraphic(4)) 77 | { 78 | var resizedBitmap = new Bitmap(qrBitmap, QRPic.Width, QRPic.Height); 79 | QRPic.Image = resizedBitmap; 80 | } 81 | } 82 | 83 | // 启动查询二维码扫描状态的任务 84 | await QueryQRLoginStatusAsync(ticket, cancellationTokenSource.Token); 85 | } 86 | else 87 | { 88 | MessageBox.Show("QR URL or ticket not found.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 89 | } 90 | } 91 | catch (Exception ex) 92 | { 93 | MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 94 | } 95 | } 96 | 97 | private async Task QueryQRLoginStatusAsync(string ticket, CancellationToken cancellationToken) 98 | { 99 | try 100 | { 101 | var client = new RestClient(qrStatusUrl); 102 | while (!cancellationToken.IsCancellationRequested) 103 | { 104 | var request = new RestRequest(qrStatusUrl, Method.Post); 105 | request.AddHeader("Content-Type", "application/json"); 106 | request.AddHeader("x-rpc-app_id", "bll8iq97cem8"); 107 | request.AddHeader("x-rpc-device_id", deviceId); 108 | request.AddJsonBody(new { ticket }); 109 | 110 | var response = await client.ExecuteAsync(request, cancellationToken); 111 | if (response.IsSuccessful) 112 | { 113 | var jsonResponse = JObject.Parse(response.Content); 114 | if (jsonResponse["retcode"]?.ToString() == "0") 115 | { 116 | var status = jsonResponse["data"]?["status"]?.ToString(); 117 | switch (status) 118 | { 119 | case "Created": 120 | break; 121 | case "Scanned": 122 | break; 123 | case "Confirmed": 124 | var userInfo = jsonResponse["data"]?["user_info"]?.ToString(); 125 | var cookies = response.Headers.Where(h => h.Name == "Set-Cookie").Select(h => h.Value.ToString()); 126 | var allCookies = string.Join("; ", cookies); 127 | 128 | if (((Form1)Owner)?.textBox1 != null) 129 | { 130 | ((Form1)Owner).textBox1.ResetText(); 131 | ((Form1)Owner).textBox1.ReadOnly = false; 132 | 133 | // 将 cookies 字符串按 `;` 分割 134 | var cookieParts = allCookies.Split(';'); 135 | 136 | // 使用 LINQ 过滤掉包含不需要字段的部分 137 | var filteredCookies = cookieParts 138 | .Where(part => !part.Trim().StartsWith("Path", StringComparison.OrdinalIgnoreCase) && 139 | !part.Trim().StartsWith("Domain", StringComparison.OrdinalIgnoreCase) && 140 | !part.Trim().StartsWith("Max-Age", StringComparison.OrdinalIgnoreCase) && 141 | !part.Trim().StartsWith("HttpOnly", StringComparison.OrdinalIgnoreCase) && 142 | !part.Trim().StartsWith("Secure", StringComparison.OrdinalIgnoreCase)) 143 | .Select(part => part.Trim()); 144 | 145 | // 将过滤后的 cookies 组合回一个字符串 146 | string cleanedCookies = string.Join("; ", filteredCookies); 147 | 148 | 149 | 150 | ((Form1)Owner).textBox1.AppendText($"{cleanedCookies}"); 151 | } 152 | MessageBox.Show($"登录完毕,以下是用户信息 .\nUser Info: {userInfo}", "已确认", MessageBoxButtons.OK, MessageBoxIcon.Information); 153 | this.Close(); 154 | return; 155 | default: 156 | break; 157 | } 158 | } 159 | else if (jsonResponse["retcode"]?.ToString() == "-3501") 160 | { 161 | MessageBox.Show("二维码过期,请重新生成", "过期", MessageBoxButtons.OK, MessageBoxIcon.Warning); 162 | return; 163 | } 164 | else if (jsonResponse["retcode"]?.ToString() == "-3505") 165 | { 166 | MessageBox.Show("用户已经取消扫码", "取消", MessageBoxButtons.OK, MessageBoxIcon.Warning); 167 | return; 168 | } 169 | } 170 | await Task.Delay(500, cancellationToken); 171 | } 172 | } 173 | catch (TaskCanceledException) 174 | { 175 | // 窗口关闭时任务取消,不需要处理此异常 176 | } 177 | catch (Exception ex) 178 | { 179 | MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 180 | } 181 | } 182 | 183 | protected override void OnFormClosing(FormClosingEventArgs e) 184 | { 185 | cancellationTokenSource.Cancel(); 186 | base.OnFormClosing(e); 187 | } 188 | } 189 | } -------------------------------------------------------------------------------- /DaweiH5/Form1.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | True 123 | 124 | 125 | 126 | 24, 18 127 | 128 | 129 | 130 | 6, 0, 6, 0 131 | 132 | 133 | 130, 24 134 | 135 | 136 | 0 137 | 138 | 139 | 当前活动: 140 | 141 | 142 | label1 143 | 144 | 145 | System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 146 | 147 | 148 | $this 149 | 150 | 151 | 6 152 | 153 | 154 | True 155 | 156 | 157 | 24, 68 158 | 159 | 160 | 6, 0, 6, 0 161 | 162 | 163 | 154, 24 164 | 165 | 166 | 1 167 | 168 | 169 | 请粘贴Cookie 170 | 171 | 172 | label2 173 | 174 | 175 | System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 176 | 177 | 178 | $this 179 | 180 | 181 | 5 182 | 183 | 184 | 28, 120 185 | 186 | 187 | 6, 6, 6, 6 188 | 189 | 190 | 2000000 191 | 192 | 193 | True 194 | 195 | 196 | 1240, 504 197 | 198 | 199 | 2 200 | 201 | 202 | textBox1 203 | 204 | 205 | System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 206 | 207 | 208 | $this 209 | 210 | 211 | 4 212 | 213 | 214 | 28, 668 215 | 216 | 217 | 6, 6, 6, 6 218 | 219 | 220 | 1244, 46 221 | 222 | 223 | 3 224 | 225 | 226 | 自动通关,启动! 227 | 228 | 229 | button1 230 | 231 | 232 | System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 233 | 234 | 235 | $this 236 | 237 | 238 | 3 239 | 240 | 241 | 1122, 8 242 | 243 | 244 | 6, 6, 6, 6 245 | 246 | 247 | 150, 46 248 | 249 | 250 | 4 251 | 252 | 253 | 国服二维码登录 254 | 255 | 256 | qrButton 257 | 258 | 259 | System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 260 | 261 | 262 | $this 263 | 264 | 265 | 2 266 | 267 | 268 | 162, 10 269 | 270 | 271 | 6, 6, 6, 6 272 | 273 | 274 | 944, 32 275 | 276 | 277 | 5 278 | 279 | 280 | comboBox1 281 | 282 | 283 | System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 284 | 285 | 286 | $this 287 | 288 | 289 | 1 290 | 291 | 292 | 1122, 58 293 | 294 | 295 | 6, 6, 6, 6 296 | 297 | 298 | 150, 46 299 | 300 | 301 | 6 302 | 303 | 304 | 国际服登录 305 | 306 | 307 | button2 308 | 309 | 310 | System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 311 | 312 | 313 | $this 314 | 315 | 316 | 0 317 | 318 | 319 | zh-CN 320 | 321 | 322 | True 323 | 324 | 325 | 12, 24 326 | 327 | 328 | 1320, 738 329 | 330 | 331 | 6, 6, 6, 6 332 | 333 | 334 | CenterScreen 335 | 336 | 337 | miHoYo H5活动自动通关器 338 | 339 | 340 | Form1 341 | 342 | 343 | System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 344 | 345 | -------------------------------------------------------------------------------- /DaweiH5/DaweiH5.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Debug 7 | AnyCPU 8 | {B0461105-745B-43B8-8D19-DF8CAE17EC21} 9 | WinExe 10 | DaweiH5 11 | DaweiH5 12 | v4.7.2 13 | 512 14 | true 15 | true 16 | 17 | 18 | 19 | 20 | AnyCPU 21 | true 22 | full 23 | false 24 | bin\Debug\ 25 | DEBUG;TRACE 26 | prompt 27 | 4 28 | 29 | 30 | AnyCPU 31 | pdbonly 32 | true 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | 38 | 39 | 40 | ..\packages\Costura.Fody.5.7.0\lib\netstandard1.0\Costura.dll 41 | 42 | 43 | ..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll 44 | 45 | 46 | ..\packages\Microsoft.Web.WebView2.1.0.2792.45\lib\net462\Microsoft.Web.WebView2.Core.dll 47 | 48 | 49 | ..\packages\Microsoft.Web.WebView2.1.0.2792.45\lib\net462\Microsoft.Web.WebView2.WinForms.dll 50 | 51 | 52 | ..\packages\Microsoft.Web.WebView2.1.0.2792.45\lib\net462\Microsoft.Web.WebView2.Wpf.dll 53 | 54 | 55 | ..\packages\Microsoft.Win32.Primitives.4.3.0\lib\net46\Microsoft.Win32.Primitives.dll 56 | True 57 | True 58 | 59 | 60 | ..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll 61 | 62 | 63 | 64 | 65 | ..\packages\QRCoder.1.6.0\lib\net40\QRCoder.dll 66 | 67 | 68 | ..\packages\RestSharp.112.1.0\lib\net471\RestSharp.dll 69 | 70 | 71 | ..\packages\RestSharp.Serializers.NewtonsoftJson.112.1.0\lib\net471\RestSharp.Serializers.NewtonsoftJson.dll 72 | 73 | 74 | 75 | ..\packages\System.AppContext.4.3.0\lib\net463\System.AppContext.dll 76 | True 77 | True 78 | 79 | 80 | ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll 81 | 82 | 83 | 84 | ..\packages\System.Console.4.3.1\lib\net46\System.Console.dll 85 | True 86 | True 87 | 88 | 89 | 90 | ..\packages\System.Diagnostics.DiagnosticSource.8.0.1\lib\net462\System.Diagnostics.DiagnosticSource.dll 91 | 92 | 93 | ..\packages\System.Diagnostics.Tracing.4.3.0\lib\net462\System.Diagnostics.Tracing.dll 94 | True 95 | True 96 | 97 | 98 | ..\packages\System.Globalization.Calendars.4.3.0\lib\net46\System.Globalization.Calendars.dll 99 | True 100 | True 101 | 102 | 103 | ..\packages\System.IO.4.3.0\lib\net462\System.IO.dll 104 | True 105 | True 106 | 107 | 108 | ..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll 109 | True 110 | True 111 | 112 | 113 | 114 | ..\packages\System.IO.Compression.ZipFile.4.3.0\lib\net46\System.IO.Compression.ZipFile.dll 115 | True 116 | True 117 | 118 | 119 | ..\packages\System.IO.FileSystem.4.3.0\lib\net46\System.IO.FileSystem.dll 120 | True 121 | True 122 | 123 | 124 | ..\packages\System.IO.FileSystem.Primitives.4.3.0\lib\net46\System.IO.FileSystem.Primitives.dll 125 | True 126 | True 127 | 128 | 129 | ..\packages\System.Linq.4.3.0\lib\net463\System.Linq.dll 130 | True 131 | True 132 | 133 | 134 | ..\packages\System.Linq.Expressions.4.3.0\lib\net463\System.Linq.Expressions.dll 135 | True 136 | True 137 | 138 | 139 | ..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll 140 | 141 | 142 | ..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll 143 | True 144 | True 145 | 146 | 147 | ..\packages\System.Net.Sockets.4.3.0\lib\net46\System.Net.Sockets.dll 148 | True 149 | True 150 | 151 | 152 | 153 | ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll 154 | 155 | 156 | ..\packages\System.Reflection.4.3.0\lib\net462\System.Reflection.dll 157 | True 158 | True 159 | 160 | 161 | ..\packages\System.Runtime.4.3.1\lib\net462\System.Runtime.dll 162 | True 163 | True 164 | 165 | 166 | ..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll 167 | 168 | 169 | ..\packages\System.Runtime.Extensions.4.3.1\lib\net462\System.Runtime.Extensions.dll 170 | True 171 | True 172 | 173 | 174 | ..\packages\System.Runtime.InteropServices.4.3.0\lib\net463\System.Runtime.InteropServices.dll 175 | True 176 | True 177 | 178 | 179 | ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll 180 | True 181 | True 182 | 183 | 184 | ..\packages\System.Security.Cryptography.Algorithms.4.3.1\lib\net463\System.Security.Cryptography.Algorithms.dll 185 | True 186 | True 187 | 188 | 189 | ..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll 190 | True 191 | True 192 | 193 | 194 | ..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll 195 | True 196 | True 197 | 198 | 199 | ..\packages\System.Security.Cryptography.X509Certificates.4.3.2\lib\net461\System.Security.Cryptography.X509Certificates.dll 200 | True 201 | True 202 | 203 | 204 | ..\packages\System.Text.Encodings.Web.8.0.0\lib\net462\System.Text.Encodings.Web.dll 205 | 206 | 207 | ..\packages\System.Text.Json.8.0.4\lib\net462\System.Text.Json.dll 208 | 209 | 210 | ..\packages\System.Text.RegularExpressions.4.3.1\lib\net463\System.Text.RegularExpressions.dll 211 | True 212 | True 213 | 214 | 215 | ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll 216 | 217 | 218 | ..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | ..\packages\System.Xml.ReaderWriter.4.3.1\lib\net46\System.Xml.ReaderWriter.dll 231 | True 232 | True 233 | 234 | 235 | 236 | 237 | 238 | Form 239 | 240 | 241 | Form1.cs 242 | 243 | 244 | Form 245 | 246 | 247 | HoyoLabForm.cs 248 | 249 | 250 | 251 | 252 | Form 253 | 254 | 255 | QRForm.cs 256 | 257 | 258 | 259 | 260 | 261 | Form1.cs 262 | 263 | 264 | HoyoLabForm.cs 265 | 266 | 267 | ResXFileCodeGenerator 268 | Resources.Designer.cs 269 | Designer 270 | 271 | 272 | True 273 | Resources.resx 274 | True 275 | 276 | 277 | QRForm.cs 278 | 279 | 280 | 281 | SettingsSingleFileGenerator 282 | Settings.Designer.cs 283 | 284 | 285 | True 286 | Settings.settings 287 | True 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | --------------------------------------------------------------------------------