mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
http api回复改成英文
This commit is contained in:
parent
a47c5d2ec0
commit
380887c5d3
@ -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下的重启代码
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user