mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-05 02:38:10 +08:00
http api回复改成英文
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user