|
@@ -1,4 +1,5 @@
|
|
|
#include "OnlineProduct.h"
|
|
|
+#include <WinInet.h>
|
|
|
|
|
|
OnlineProduct::OnlineProduct()
|
|
|
{
|
|
@@ -15,6 +16,9 @@ const char* OnlineProduct::GetInstallPageVersion(wstring productUrl)
|
|
|
{
|
|
|
//下载xml文件
|
|
|
wstring SaveFolder = FolderCore::GetOrCreateFolderPath(PathCore::smPath_Temp) + L"/" + L"test.xml";
|
|
|
+ //调用接口下载前,先清除接口缓存。否则有可能下载到旧内容
|
|
|
+ //博客:https://blog.csdn.net/yangxiaozi/article/details/121104151?spm=1001.2101.3001.6650.5&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-5-121104151-blog-102068998.235%5Ev38%5Epc_relevant_sort_base3&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-5-121104151-blog-102068998.235%5Ev38%5Epc_relevant_sort_base3&utm_relevant_index=10
|
|
|
+ DeleteUrlCacheEntry(productUrl.c_str());
|
|
|
HRESULT Hfile = URLDownloadToFile(NULL, productUrl.c_str(), SaveFolder.c_str(), 0, NULL);
|
|
|
|
|
|
char* pStr = CharConvert::GetMultiByteW(SaveFolder.c_str());
|