From 9a1a59baa2269a67139f50604d111901457ce72d Mon Sep 17 00:00:00 2001 From: yan Date: Tue, 10 Feb 2026 01:58:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor(bgi=5Ftools):=20=E4=BC=98=E5=8C=96pull?= =?UTF-8?q?JsonConfig=E5=87=BD=E6=95=B0=E7=9A=84=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=BC=A0=E9=80=92=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将uid参数从请求体改为URL查询参数 - 简化HTTP请求调用方式 - 移除不必要的JSON序列化操作 - 保留调试日志功能 --- repo/js/AutoPlanDomain/utils/bgi_tools.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/repo/js/AutoPlanDomain/utils/bgi_tools.js b/repo/js/AutoPlanDomain/utils/bgi_tools.js index bbe0f77eb..d050ccaef 100644 --- a/repo/js/AutoPlanDomain/utils/bgi_tools.js +++ b/repo/js/AutoPlanDomain/utils/bgi_tools.js @@ -7,9 +7,8 @@ import {config} from "../config/config"; * @returns {Promise} */ async function pullJsonConfig(uid, http_api) { - const res = await http.request("GET", http_api, JSON.stringify({ - uid: uid, - }) + http_api += "?uid=" + uid + const res = await http.request("GET", http_api // , JSON.stringify({"Content-Type": "application/json"}) ) log.debug(`[{0}]res=>{1}`, 'next', JSON.stringify(res))