Skip to content

Commit

Permalink
webhook json
Browse files Browse the repository at this point in the history
  • Loading branch information
KirosHan committed Jan 31, 2024
1 parent ce71e9b commit 5c24f12
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 6 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/Palworld-server-protector-DotNet/v17/.futdcache.v2
Binary file not shown.
Binary file modified .vs/Palworld-server-protector-DotNet/v17/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions Palworld-server-protector-DotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>icon.ico</ApplicationIcon>
<AssemblyVersion>2.5.3.2</AssemblyVersion>
<AssemblyVersion>2.5.4.2</AssemblyVersion>
<Copyright>Kiros @ONBETA</Copyright>
<Version>$(VersionPrefix)2.5.3.2</Version>
<Version>$(VersionPrefix)2.5.4.2</Version>
<Company>$(Authors)@ONBETA</Company>
<FileVersion>2.5.3.2</FileVersion>
<FileVersion>2.5.4.2</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
## 直接下载(懒人专属)
更新时间:2024-01-30

Latest版本:V2.5.3(2)
Latest版本:V2.5.4(1)

=-=-V2.5.3(2) -=-=

- 添加了webhook的推送选择项
* 修复了最小化后无法启动窗体的bug
Expand Down
4 changes: 2 additions & 2 deletions WebhookJson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public string GenerateJson(string url, string jsontitle, string message)
msgtype = "markdown",
markdown = new
{
content = $"<font color=\"warning\">通知 </font>{jsontitle}\n ><font color=\"comment\">{message}</font>"
content = $"<font color=\"warning\">服务端监控 </font>{jsontitle}\n ><font color=\"comment\">{message}</font>"
}
};

Expand All @@ -33,7 +33,7 @@ public string GenerateJson(string url, string jsontitle, string message)
markdown = new
{
title = jsontitle,
text = $"#### {jsontitle} \n > {message}\n > \n "
text = $"#### 服务端监控:{jsontitle} \n > {message}\n > \n "
}
};

Expand Down

0 comments on commit 5c24f12

Please sign in to comment.