88
99#pragma comment(lib, "wininet.lib")
1010
11- std::string QQDonwload = " https://dldir1.qq.com/qqfile/qq/QQNT/b07cb1a5 /QQ9.9.15.27597_x64 .exe" ;
11+ std::string QQDonwload = " https://dldir1.qq.com/qqfile/qq/QQNT/882aec99 /QQ9.9.19.34231_x64 .exe" ;
1212
1313std::string getMidText (std::string str, std::string str1, std::string str2)
1414{
@@ -79,7 +79,6 @@ bool DownloadFile(const std::string &url, const std::string &filePath)
7979std::string getNapCatVersionByPackageMirror ()
8080{
8181 std::vector<std::string> napcatVersionPath = {
82- " http://jsd.cdn.zzko.cn/gh/NapNeko/NapCatQQ@main/package.json" ,
8382 " http://fastly.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json" ,
8483 " https://gcore.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json" ,
8584 " https://cdn.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json" };
@@ -168,7 +167,7 @@ int getQQVersionByPackage(std::string QQPath)
168167int getQQVersionByConfig (std::string QQPath)
169168{
170169 // 组装目录 .\config\config.json
171- std::string QQVersionPath = QQPath + " \\ resources \\ app \\ versions\\ config.json" ;
170+ std::string QQVersionPath = QQPath + " \\ versions\\ config.json" ;
172171 // 判断文件是否存在
173172 std::ifstream QQVersionFile (QQVersionPath);
174173 if (!QQVersionFile)
@@ -190,7 +189,7 @@ int main()
190189 bool isQQInstalled;
191190 std::string QQPath;
192191 std::tie (isQQInstalled, QQPath) = getQQInstalled ();
193- int targetQQVersion = 27597 ;
192+ int targetQQVersion = 34231 ;
194193 system (" chcp 65001" );
195194 std::cout << " 检测QQ是否安装" << std::endl;
196195 if (isQQInstalled)
0 commit comments