|
@@ -97,10 +97,11 @@ void HttpSocket::stopmsg()
|
|
|
|
|
|
void HttpSocket::init()
|
|
|
{
|
|
|
-
|
|
|
+ staticdata tstaticdata;
|
|
|
try
|
|
|
{
|
|
|
- makegamelist(m_staticdata);
|
|
|
+ makegamelist(tstaticdata);
|
|
|
+ m_updatestatic("staticdata", tstaticdata);
|
|
|
}
|
|
|
catch (const std::exception&)
|
|
|
{
|
|
@@ -220,6 +221,13 @@ bool HttpSocket::postmsg(std::function<void(std::string&)> funhttpmsg, std::map<
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+void HttpSocket::updatemsg(std::string strtype, boost::any getdata)
|
|
|
+{
|
|
|
+ if (strtype == "staticdata")
|
|
|
+ {
|
|
|
+ m_staticdata = boost::any_cast<staticdata>(getdata);
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
void HttpSocket::makegamelist(staticdata& tstaticdata)
|
|
|
{
|