提交 f453f6ca 编写于 作者: 雪洛's avatar 雪洛

docs: update uni-cloud-s2s

上级 64c5b54e
...@@ -151,8 +151,10 @@ const { ...@@ -151,8 +151,10 @@ const {
getSecureHeaders getSecureHeaders
} = require('uni-cloud-s2s') } = require('uni-cloud-s2s')
const headers = getSecureHeaders({ const headers = getSecureHeaders({
a: 1, data: {
b: 2 a: 1,
b: 2
}
}) })
``` ```
...@@ -424,7 +426,9 @@ exports.main = async function(event, context) { ...@@ -424,7 +426,9 @@ exports.main = async function(event, context) {
a: 1, a: 1,
b: 2 b: 2
} }
const headers = getSecureHeaders(data) const headers = getSecureHeaders({
data
})
const res = await uniCloud.httpclient.request('服务器地址', { const res = await uniCloud.httpclient.request('服务器地址', {
method: 'POST', method: 'POST',
headers, headers,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册