From 03e0436849c35b8bccaa1032a7a9c8e322b14d94 Mon Sep 17 00:00:00 2001 From: gjs Date: Tue, 1 Sep 2026 09:32:06 +0800 Subject: [PATCH] task --- .gitea/workflows/ci.yml | 3 ++- deploy/apisix/lua/auth.lua | 1 + services/task/task.go | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 1d0c38a..1395bdb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Detect changes id: filter run: | - SERVICES="bff product admin user ad chore express sale wecom" + SERVICES="bff product admin user ad chore express sale wecom task" pattern_for() { case "$1" in @@ -90,6 +90,7 @@ jobs: - express - sale - wecom + - task env: BUILD_LIST: ${{ needs.changes.outputs.build_list }} NAME: lone/${{ matrix.name }} diff --git a/deploy/apisix/lua/auth.lua b/deploy/apisix/lua/auth.lua index 0ae0bea..e4cab0c 100644 --- a/deploy/apisix/lua/auth.lua +++ b/deploy/apisix/lua/auth.lua @@ -14,6 +14,7 @@ function _M.access(conf, ctx) ["/api/v3/login"] = true, ["/admin/v3/login"] = true, ["/admin/v3/refresh"] = true, + ["/api/v3/version"] = true, } local user_key = core.request.header(ctx, "authorization") diff --git a/services/task/task.go b/services/task/task.go index 9a8fcaa..5f81601 100644 --- a/services/task/task.go +++ b/services/task/task.go @@ -25,6 +25,7 @@ import ( "google.golang.org/grpc/reflection" ) +// 配置 var configFile = flag.String("f", "etc/task.yaml", "the config file") func main() {