mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 10:00:44 +08:00
rft: 增加企鹅物流 .cn 备用域名,迁移上报逻辑到 UI 层 (#13602)
* chore: 企鹅物流上报添加 .cn 域名 * rft: 将企鹅物流的上报交给 ui 处理 * chore: Auto update by pre-commit hooks [skip changelog] * chore: 上报移除 cpr version * docs: 添加对应文档 * chore: Auto update by pre-commit hooks [skip changelog] * chore: 获取新 id * chore: 提取链接 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -43,24 +43,10 @@ bool asst::GeneralConfig::parse(const json::value& json)
|
||||
|
||||
if (auto penguin_opt = options_json.find<json::object>("penguinReport")) {
|
||||
m_options.penguin_report.url = penguin_opt->get("url", std::string());
|
||||
m_options.penguin_report.timeout = penguin_opt->get("timeout", 10000);
|
||||
if (auto headers_opt = penguin_opt->find<json::object>("headers")) {
|
||||
m_options.penguin_report.headers.clear();
|
||||
for (const auto& [key, value] : *headers_opt) {
|
||||
m_options.penguin_report.headers.emplace(key, value.as_string());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (auto yituliu_opt = options_json.find<json::object>("yituliuReport")) {
|
||||
m_options.yituliu_report.drop_url = yituliu_opt->get("dropUrl", std::string());
|
||||
m_options.yituliu_report.recruit_url = yituliu_opt->get("recruitUrl", std::string());
|
||||
m_options.yituliu_report.timeout = yituliu_opt->get("timeout", 5000);
|
||||
if (auto headers_opt = yituliu_opt->find<json::object>("headers")) {
|
||||
m_options.yituliu_report.headers.clear();
|
||||
for (const auto& [key, value] : *headers_opt) {
|
||||
m_options.yituliu_report.headers.emplace(key, value.as_string());
|
||||
}
|
||||
}
|
||||
}
|
||||
m_options.depot_export_template.ark_planner =
|
||||
options_json.get("depotExportTemplate", "arkPlanner", std::string());
|
||||
|
||||
Reference in New Issue
Block a user