This commit is contained in:
gb 2022-07-18 16:54:32 +08:00
commit 635c8fb944
1 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ static HGResult GetServerConfig(HGServerConfig& config)
{
std::stringstream out;
std::string url = "http://up.appqy.com/api/ver/setting";
std::string url = "http://cd.holdtecs.net:50080/api/ver/setting";
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
@ -138,7 +138,7 @@ static HGResult CrashFileUpload(const std::string& crashFilePath, std::string& c
curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME, "file", CURLFORM_FILE, crashFilePath.c_str(), CURLFORM_END);
curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME, "submit", CURLFORM_COPYCONTENTS, "Submit", CURLFORM_END);
std::string url = "http://up.appqy.com/api/coollapse/upload";
std::string url = "http://cd.holdtecs.net:50080/api/coollapse/upload";
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
@ -505,7 +505,7 @@ static HGResult PostInfo(int type, const std::string& appName, const std::string
{
std::stringstream out;
std::string url = "http://up.appqy.com/api/recode";
std::string url = "http://cd.holdtecs.net:50080/api/recode";
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
@ -623,7 +623,7 @@ static HGResult PostDeviceInfo(const std::string& sn, const std::string& type, c
char countStr[16];
sprintf(countStr, "%d", cnt);
std::string url = "http://up.appqy.com/api/bhs?sn=" + sn + "&type=" + type + "&name=" + name + "&fw=" + fw
std::string url = "http://cd.holdtecs.net:50080/api/bhs?sn=" + sn + "&type=" + type + "&name=" + name + "&fw=" + fw
+ "&act=" + act + "&cnt" + countStr;
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
@ -716,7 +716,7 @@ static HGResult GetVersionList(const std::string& appName, std::list<VersionInfo
std::string archName = GetArchName();
std::string oemName = GetOemName();
std::string url = "http://up.appqy.com/api/ver?app=" + appName + "&oem=" + oemName + "&cpu=" + archName + "&sys=" + osName;
std::string url = "http://cd.holdtecs.net:50080/api/ver?app=" + appName + "&oem=" + oemName + "&cpu=" + archName + "&sys=" + osName;
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());