From 0e64b3ca26c0dedeeb6225d015d2f8714c02fc25 Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Sun, 26 Jul 2026 14:41:38 +0800 Subject: [PATCH] refix --- gateway/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway/src/main.cpp b/gateway/src/main.cpp index c649987..bd9218a 100644 --- a/gateway/src/main.cpp +++ b/gateway/src/main.cpp @@ -522,8 +522,8 @@ void registerRoutes(HttpServer &server) { }); server.get("*", [](const auto& req, const auto& params) -> http::response { - return wapperHttp(req, params, - [](const auto& req, const auto& params) { return handleProxy(req, params, "get"); }) + return wrapperHttp(req, params, + [](const auto& req, const auto& params) { return handleProxy(req, params, "get"); }); }); server.post("*", [](const auto& req, const auto& params) { @@ -943,7 +943,7 @@ http::response handleProxy( catch (const boost::wrapexcept& e) { THROW_EX_CUSTOM(HttpException, 2302, "Bad token", 400, "*"); } - if (!jv_r.is_object()) THROW_EX_CUSTOM(HttpException, 2302, "Bad token", 400, "*"); + if (!jv_t.is_object()) THROW_EX_CUSTOM(HttpException, 2302, "Bad token", 400, "*"); json::object& obj = jv_t.as_object(); auto t = json::value_to(obj["created_at"]);