1 void CShopData::generateWebDataSaveFileName(std::string &strFileName) {
2
3 CCFileUtils *pCCFileUtils = CCFileUtils::sharedFileUtils();
4 #if defined(WIN32) || defined(_WIN32)
5 SSString path = "";
6 #elif defined(IOS) || defined(__APPLE__)
7 SSString path = pCCFileUtils->getWritablePath();
8 //path += "log/";
9 #else
10 SSString path = "/mnt/sdcard/external-sd/";
11 #endif
12
13 strFileName = path.c_str();
14 strFileName += g_pcszWebDataSaveFile;
15
16 CWebUrlConfig *pUrlCfg = CWebUrlConfigInstance::singleton();
17 std::string strGameId = pUrlCfg->getWebUrlAddress("gameid");
18 strFileName = strFileName + strGameId + ".json";
19
20
21 // strFileName = g_pcszWebDataSaveFile;
22 // CWebUrlConfig *pUrlCfg = CWebUrlConfigInstance::singleton();
23 // std::string strGameId = pUrlCfg->getWebUrlAddress("gameid");
24 // strFileName = strFileName + strGameId + ".json";
25 }