diff --git a/src/MaaWpfGui/Main/CopilotViewModel.cs b/src/MaaWpfGui/Main/CopilotViewModel.cs
index bb55abcfc5..769283d049 100644
--- a/src/MaaWpfGui/Main/CopilotViewModel.cs
+++ b/src/MaaWpfGui/Main/CopilotViewModel.cs
@@ -550,6 +550,7 @@ namespace MaaWpfGui
{
return;
}
+
CouldLikeWebJson = false;
string jsonParam = JsonConvert.SerializeObject(new
@@ -557,7 +558,12 @@ namespace MaaWpfGui
id = CopilotId,
rating = rating,
});
- WebService.RequestPost(_copilotRatingUrl, jsonParam);
+ if (WebService.RequestPost(_copilotRatingUrl, jsonParam) == null)
+ {
+ AddLog(Localization.GetString("FailedToLikeWebJson"), UILogColor.Error);
+ return;
+ }
+
_recentlyRatedCopilotId.Add(CopilotId);
AddLog(Localization.GetString("ThanksForLikeWebJson"), UILogColor.Info);
}
diff --git a/src/MaaWpfGui/Res/Localizations/en-us.xaml b/src/MaaWpfGui/Res/Localizations/en-us.xaml
index fd5cdd198c..9fba82dc14 100644
--- a/src/MaaWpfGui/Res/Localizations/en-us.xaml
+++ b/src/MaaWpfGui/Res/Localizations/en-us.xaml
@@ -370,7 +370,8 @@
Select task file
Task files can be directly dragged in with the mouse (o゚v゚)ノ
Do you like this task file?
- Thanks for the review!\nThe comment section will be opened soon on the web page, so stay tuned!
+ An error occurred, the like failed. : <
+ Thanks for the likes!\nThe comment section will be opened soon on the web page, so stay tuned!
Auto squad
The operator of "special focus" cannot be identified at this time
LoopTimes
diff --git a/src/MaaWpfGui/Res/Localizations/zh-cn.xaml b/src/MaaWpfGui/Res/Localizations/zh-cn.xaml
index 602f0d7c5a..cc4086e1f7 100644
--- a/src/MaaWpfGui/Res/Localizations/zh-cn.xaml
+++ b/src/MaaWpfGui/Res/Localizations/zh-cn.xaml
@@ -373,6 +373,7 @@
选择作业
作业文件可以直接用鼠标拖进来哦 (o゚v゚)ノ
作业怎么样?评价下吧!
+ 出现错误,评价失败 : <
感谢评价!\n网页端即将开放评论区,敬请期待!
自动编队
循环次数