服务之间相互调用

This commit is contained in:
2026-08-24 10:06:52 +08:00
parent c33fbdb422
commit 80f428c032
49 changed files with 1756 additions and 35 deletions
+14 -2
View File
@@ -102,8 +102,20 @@ function _M.access(conf, ctx)
if json.name then
ngx.req.set_header("X-User-Name", json.name)
end
if json.username then
ngx.req.set_header("X-Username", json.username)
if json.store_name then
ngx.req.set_header("X-Store-Name", json.store_name)
end
if json.store_id then
ngx.req.set_header("X-Store-Id", tostring(json.store_id))
end
if json.sale_name then
ngx.req.set_header("X-Sale-Name", json.sale_name)
end
if json.sale_id then
ngx.req.set_header("X-Sale-Id", tostring(json.sale_id))
end
if json.group_id then
ngx.req.set_header("X-Group-Id", tostring(json.group_id))
end
end