update: add boxname to update.php script

Origin commit data
------------------
Commit: c63893e336
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-06-11 (Tue, 11 Jun 2019)

Origin message was:
------------------
- update: add boxname to update.php script
This commit is contained in:
vanhofen
2019-06-11 00:26:16 +02:00
parent 1a62438459
commit 58b7d6d3b6

View File

@@ -153,6 +153,7 @@ void CFlashUpdate::update_php(std::string &url, const char* type)
if (url.find("update.php") != std::string::npos)
{
url += "?revision=" + to_string(cs_get_revision());
url += "&boxname=" + g_info.hw_caps->boxname;
url += "&chip_type=" + to_string(cs_get_chip_type());
url += "&image_type=" + (std::string)type;
printf("[update_php] url %s\n", url.c_str());