服务之间相互调用
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user