添加配置项 mediaServerId

This commit is contained in:
xiongziliang
2020-10-01 20:58:19 +08:00
parent c968769a13
commit 6a8268f323
2 changed files with 3 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ const char *getContentType(const HttpArgs &value){
static void do_http_hook(const string &url,const ArgsType &body,const function<void(const Value &,const string &)> &fun){
GET_CONFIG(string,mediaServerId,General::kMediaServerId);
const_cast<ArgsType &>(body)["mediaserverid"] = mediaServerId;
const_cast<ArgsType &>(body)["mediaServerId"] = mediaServerId;
GET_CONFIG(float,hook_timeoutSec,Hook::kTimeoutSec);
HttpRequester::Ptr requester(new HttpRequester);