Skip to content

Commit eee8df6

Browse files
committed
update:download example
1 parent 47d0160 commit eee8df6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

XEngine_APPClient/APPClient_Download/APPClient_Download.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,13 @@ int main()
163163
int nBodyLen = 2048;
164164
TCHAR *ptszMsgBody = NULL;
165165
//请求分布式存储文件所有位置
166-
LPCTSTR lpszUrl = _T("http://127.0.0.1:5100/Api/Manage/P2P");
166+
LPCTSTR lpszUrl = _T("http://127.0.0.1:5100/Api/Manage/Query");
167167
LPCTSTR lpszFile = _T("D:\\XEngine_Storage\\XEngine_APPClient\\Debug\\qq.exe");
168168

169169
Json::Value st_JsonRoot;
170+
st_JsonRoot["nMode"] = 1; //使用P2P下载
170171
st_JsonRoot["lpszBuckKey"] = "storagekey2";
171-
st_JsonRoot["lpszFileHash"] = "781E5E245D69B566979B86E28D23F2C7";
172+
st_JsonRoot["lpszFileName"] = "qq.exe";
172173

173174
if (!APIHelp_HttpRequest_Post(lpszUrl, st_JsonRoot.toStyledString().c_str(), &nHTTPCode, &ptszMsgBody, &nBodyLen))
174175
{

0 commit comments

Comments
 (0)