zll2 commented on a change in pull request #4702:
URL: https://github.com/apache/apisix/pull/4702#discussion_r679076879
##########
File path: apisix/discovery/nacos.lua
##########
@@ -92,14 +105,59 @@ local function discovery_nacos_callback(data, event,
source, pid)
", application: ", core.json.encode(applications, true))
end
-local function request(request_uri, path, body, method, basic_auth)
+local function get_aliyun_ram_sign_headers(param_values, access_key,
secret_key)
+ if not param_values then
+ return {}
+ end
+
+ local namespace_id = param_values['namespace_id']
+ local group_name = param_values['group_name']
+ local time_ngx = ngx.utctime()
+ local time_change = string.gsub(time_ngx, " ", "T")
+ local time_utc = table.concat({time_change, "Z"})
Review comment:
哈哈哈,第一次写 Lua,有些语法和函数上就不是特别了解
##########
File path: apisix/discovery/nacos.lua
##########
@@ -92,14 +105,59 @@ local function discovery_nacos_callback(data, event,
source, pid)
", application: ", core.json.encode(applications, true))
end
-local function request(request_uri, path, body, method, basic_auth)
+local function get_aliyun_ram_sign_headers(param_values, access_key,
secret_key)
+ if not param_values then
+ return {}
+ end
+
+ local namespace_id = param_values['namespace_id']
+ local group_name = param_values['group_name']
+ local time_ngx = ngx.utctime()
+ local time_change = string.gsub(time_ngx, " ", "T")
+ local time_utc = table.concat({time_change, "Z"})
Review comment:
我改改掉
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]