Skip to content

Commit

Permalink
[fix] 修正StarServer启动时WebUrl被清空的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Mar 15, 2024
1 parent 1eda410 commit d198a86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Stardust.Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private static async Task ResolveWebUrl(IServiceProvider serviceProvider)
var addrs = await registry.ResolveAddressAsync("StarWeb");
var str = addrs.Join(";");
var set = StarServerSetting.Current;
if (set.WebUrl != str)
if (set.WebUrl != str && !str.IsNullOrEmpty())
{
set.WebUrl = str;
set.Save();
Expand Down
2 changes: 1 addition & 1 deletion Stardust/DingTalk/DingTalkClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public void SendMarkDown(String title, String text, String[] mentions)
{
if (text.IsNullOrEmpty()) return;

// 超长阶段
// 超长截断
if (text.Length > 2048) text = text.Substring(0, 2048);

//WriteLog(text);
Expand Down
2 changes: 1 addition & 1 deletion Stardust/WeiXin/WeiXinClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void SendMarkDown(String content)
{
if (content.IsNullOrEmpty()) return;

// 超长阶段
// 超长截断
if (content.Length > 2048) content = content.Substring(0, 2048);

WriteLog(content);
Expand Down

0 comments on commit d198a86

Please sign in to comment.