UID291602
精华
积分0
声望
铜板
阅读权限50
在线时间 小时
注册时间2014-7-18
最后登录1970-1-1
- 最佳答案
- 0
|
回复 @Slim : if (reader.parse(responseRes,value))
{
int length = value[\"data\"][\"results\"].size();
for (int index = 0; index < length; index++)
{
MMGameInfo* gInfo = new MMGameInfo();
gInfo->app_name = value[\"data\"][\"results\"][index][\"app_name\"].asString();
gInfo->app_id = value[\"data\"][\"results\"][index][\"app_id\"].asInt();
gInfo->app_logo = value[\"data\"][\"results\"][index][\"app_logo\"].asString();
int pos = gInfo->app_logo.find_last_of(\'.\');
sprintf_s(filename,\"itemlogo/logo_%d.%s\",/*gInfo->app_id*/index,gInfo->app_logo.substr(pos+1,gInfo->app_logo.length()-1).c_str());
gInfo->app_logofilename = filename;
gInfo->download_id = m_LogoDownloadManager->enqueueDownload(gInfo->app_logo,gInfo->app_logofilename,\"\",filename);
gInfo->autorelease();
GameList.insert(index,gInfo);
}
} |
|