diff --git a/server/WebApi.cpp b/server/WebApi.cpp index bc55486b..fa3eec9e 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -719,7 +719,7 @@ void installWebApi() { return 0; }); - val["msg"] = "服务器将在一秒后自动重启"; + val["msg"] = "MediaServer will reboot in on 1 second"; }); #else //增加Windows下的重启代码 diff --git a/server/WebApi.h b/server/WebApi.h index ea6caa81..346a6767 100755 --- a/server/WebApi.h +++ b/server/WebApi.h @@ -218,7 +218,7 @@ bool checkArgs(Args &args, const First &first, const KeyTypes &...keys) { //检查http url中或body中或http header参数是否为空的宏 #define CHECK_ARGS(...) \ if(!checkArgs(allArgs,##__VA_ARGS__)){ \ - throw InvalidArgsException("缺少必要参数:" #__VA_ARGS__); \ + throw InvalidArgsException("Required parameter missed: " #__VA_ARGS__); \ } // 检查http参数中是否附带secret密钥的宏,127.0.0.1的ip不检查密钥 @@ -231,7 +231,7 @@ bool checkArgs(Args &args, const First &first, const KeyTypes &...keys) { } \ CHECK_ARGS("secret"); \ if (api_secret != allArgs["secret"]) { \ - throw AuthException("secret错误"); \ + throw AuthException("Incorrect secret"); \ } \ } while(false);