From 89d0a9dedf39ba617d40e666629b7cb9b5ea7843 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Tue, 8 Jun 2021 14:49:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E5=8A=A8=E6=80=81=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E7=9A=84=E7=89=B9?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index c6644c7b..5990a8fe 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -401,11 +401,15 @@ void installWebApi() { int changed = API::Success; for (auto &pr : allArgs) { if (ini.find(pr.first) == ini.end()) { +#if 1 //没有这个key - //continue; + continue; +#else // 新增配置选项,为了动态添加多个ffmpeg cmd 模板 ini[pr.first] = pr.second; - continue;// 防止changed变化 + // 防止changed变化 + continue; +#endif } if (ini[pr.first] == pr.second) { continue;