Skip to content

Commit

Permalink
fix: 修复 DormUniversalMirage 参数混乱问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Oct 17, 2023
1 parent 0679128 commit 47bc9d5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions source/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,19 @@ MaaSize get_device_index(const MaaSize& device_size)
}

json::value dorm_param()
{
json::value param;
auto& diff = param["diff_task"];
auto& doc = diff["Sub_SwitchToFragmentPage"]["doc"];
auto& enabled = diff["Sub_SwitchToFragmentPage"]["enabled"];

doc = "切换刷最近碎片;默认false,刷最近材料";
enabled = false;

return param;
}

json::value universal_mirage_param()
{
json::value param;
auto& diff = param["diff_task"];
Expand Down Expand Up @@ -257,19 +270,6 @@ json::value dorm_param()
return param;
}

json::value universal_mirage_param()
{
json::value param;
auto& diff = param["diff_task"];
auto& doc = diff["Sub_SwitchToFragmentPage"]["doc"];
auto& enabled = diff["Sub_SwitchToFragmentPage"]["enabled"];

doc = "切换刷最近碎片;默认false,刷最近材料";
enabled = false;

return param;
}

json::value end_to_do_param() {
json::value param;
auto& diff = param["diff_task"];
Expand Down

0 comments on commit 47bc9d5

Please sign in to comment.