Просмотр исходного кода

Merge remote-tracking branch 'origin/master'

Dream 7 месяцев назад
Родитель
Сommit
dd264f43d7
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/AppManager/Encryption.cpp
  2. 1 1
      src/AppManager/Network.cpp

+ 1 - 1
src/AppManager/Encryption.cpp

@@ -9,7 +9,7 @@
   */
   */
 
 
 #include "Encryption.hpp"
 #include "Encryption.hpp"
-#include "res/Encrypt.h" // 假设 Encrypt.h 提供了 RC4 加密和解密函数
+#include "res/Encrypt.h" 
 #include <cstring>
 #include <cstring>
 
 
 // RC4 加密数据
 // RC4 加密数据

+ 1 - 1
src/AppManager/Network.cpp

@@ -53,7 +53,7 @@ std::string Network::post_request(const std::string& url, const std::string& pos
     curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10L); // 连接超时 10 秒
     curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10L); // 连接超时 10 秒
     curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); // 支持重定向
     curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); // 支持重定向
 #ifdef DEBUG_LOG
 #ifdef DEBUG_LOG
-    curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); // 禁用 SSL 验证(调试用生产慎用)
+    curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); // 禁用 SSL 验证(调试用生产慎用!
 #endif
 #endif
     curl_easy_setopt(curl, CURLOPT_USERAGENT, "Angel/1.0 (Android)"); // 设置 User-Agent
     curl_easy_setopt(curl, CURLOPT_USERAGENT, "Angel/1.0 (Android)"); // 设置 User-Agent