parent
32a2356d4e
commit
2379c29207
|
@ -77,7 +77,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>3</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab_2">
|
<widget class="QWidget" name="tab_2">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
|
|
@ -53,7 +53,7 @@ static HGResult GetServerConfig(HGServerConfig& config)
|
||||||
{
|
{
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
||||||
std::string url = "http://cd.holdtecs.net:50080/api/ver/setting";
|
std::string url = "http://cd.huagaochina.com:50080/api/ver/setting";
|
||||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
||||||
|
|
||||||
|
@ -140,7 +140,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, "file", CURLFORM_FILE, crashFilePath.c_str(), CURLFORM_END);
|
||||||
curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME, "submit", CURLFORM_COPYCONTENTS, "Submit", CURLFORM_END);
|
curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME, "submit", CURLFORM_COPYCONTENTS, "Submit", CURLFORM_END);
|
||||||
|
|
||||||
std::string url = "http://cd.holdtecs.net:50080/api/coollapse/upload";
|
std::string url = "http://cd.huagaochina.com:50080/api/coollapse/upload";
|
||||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
||||||
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
|
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
|
||||||
|
@ -521,7 +521,7 @@ static HGResult PostInfo(int type, const std::string& appName, const std::string
|
||||||
{
|
{
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
||||||
std::string url = "http://cd.holdtecs.net:50080/api/recode";
|
std::string url = "http://cd.huagaochina.com:50080/api/recode";
|
||||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
||||||
|
|
||||||
|
@ -662,7 +662,7 @@ static HGResult PostDeviceInfo(const std::string& devName, const std::string& de
|
||||||
{
|
{
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
||||||
std::string url = "http://cd.holdtecs.net:50080/api/bhs";
|
std::string url = "http://cd.huagaochina.com:50080/api/bhs";
|
||||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
||||||
|
|
||||||
|
@ -742,7 +742,7 @@ static HGResult PostDeviceLockInfo(const std::string& devName, const std::string
|
||||||
{
|
{
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
||||||
std::string url = "http://cd.holdtecs.net:50080/api/info";
|
std::string url = "http://cd.huagaochina.com:50080/api/info";
|
||||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
||||||
|
|
||||||
|
@ -839,7 +839,7 @@ static HGResult PostUserInfo(const std::string& appName, const std::string& oemN
|
||||||
{
|
{
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
||||||
std::string url = "http://cd.holdtecs.net:50080/api/behaviors";
|
std::string url = "http://cd.huagaochina.com:50080/api/behaviors";
|
||||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
||||||
|
|
||||||
|
@ -949,7 +949,7 @@ static HGResult GetVersionList(const std::string& appName, const std::string& oe
|
||||||
std::string osName = GetOSName();
|
std::string osName = GetOSName();
|
||||||
std::string archName = GetArchName();
|
std::string archName = GetArchName();
|
||||||
|
|
||||||
std::string url = "http://cd.holdtecs.net:50080/api/ver?app=" + appName + "&oem=" + oemName + "&cpu=" + archName + "&sys=" + osName;
|
std::string url = "http://cd.huagaochina.com:50080/api/ver?app=" + appName + "&oem=" + oemName + "&cpu=" + archName + "&sys=" + osName;
|
||||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
||||||
|
|
||||||
|
@ -1571,7 +1571,7 @@ HGResult HGVersionMgrImpl::BlackListCheck(const HGChar* devSN, HGBool* inList)
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
||||||
char url[256];
|
char url[256];
|
||||||
sprintf(url, "http://cd.holdtecs.net:50080/api/check?sn=%s", devSN);
|
sprintf(url, "http://cd.huagaochina.com:50080/api/check?sn=%s", devSN);
|
||||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url);
|
curl_easy_setopt(curl, CURLOPT_URL, url);
|
||||||
|
|
||||||
|
@ -1636,7 +1636,7 @@ static HGResult GetDriverVersionList(const std::string& devType, std::list<Versi
|
||||||
{
|
{
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
||||||
std::string url = "http://cd.holdtecs.net:50080/api/ver?app=Driver&dev_type=" + devType;
|
std::string url = "http://cd.huagaochina.com:50080/api/ver?app=Driver&dev_type=" + devType;
|
||||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue