http api回复改成英文

This commit is contained in:
xiongziliang 2023-12-02 15:02:00 +08:00
parent a47c5d2ec0
commit 380887c5d3
2 changed files with 3 additions and 3 deletions

View File

@ -719,7 +719,7 @@ void installWebApi() {
return 0; return 0;
}); });
val["msg"] = "服务器将在一秒后自动重启"; val["msg"] = "MediaServer will reboot in on 1 second";
}); });
#else #else
//增加Windows下的重启代码 //增加Windows下的重启代码

View File

@ -218,7 +218,7 @@ bool checkArgs(Args &args, const First &first, const KeyTypes &...keys) {
//检查http url中或body中或http header参数是否为空的宏 //检查http url中或body中或http header参数是否为空的宏
#define CHECK_ARGS(...) \ #define CHECK_ARGS(...) \
if(!checkArgs(allArgs,##__VA_ARGS__)){ \ if(!checkArgs(allArgs,##__VA_ARGS__)){ \
throw InvalidArgsException("缺少必要参数:" #__VA_ARGS__); \ throw InvalidArgsException("Required parameter missed: " #__VA_ARGS__); \
} }
// 检查http参数中是否附带secret密钥的宏127.0.0.1的ip不检查密钥 // 检查http参数中是否附带secret密钥的宏127.0.0.1的ip不检查密钥
@ -231,7 +231,7 @@ bool checkArgs(Args &args, const First &first, const KeyTypes &...keys) {
} \ } \
CHECK_ARGS("secret"); \ CHECK_ARGS("secret"); \
if (api_secret != allArgs["secret"]) { \ if (api_secret != allArgs["secret"]) { \
throw AuthException("secret错误"); \ throw AuthException("Incorrect secret"); \
} \ } \
} while(false); } while(false);