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

Update cf-functions.md

上级 74d3af56
......@@ -13,24 +13,23 @@ exports.main = async (event, context) => {
}
```
**event参数说明**
**clientInfo为保留字段,开发者在调用云函数时应避免使用,比如以下示例就是错误用法**
|字段 |类型 |必备 |说明 |
|--- |--- |--- |--- |
|clientInfo |object |是 |客户端设备信息 |
`event`其余参数为客户端上传的参数
```
uniClient.callFunction({
name: 'test',
data: { clientInfo: 1 }
})
.then(res => {});
```
**clientInfo参数说明**
**context参数说明**
|字段 |类型 |必备 |说明 |
|--- |--- |--- |--- |
|platform |String |是 |客户端平台,如:h5、app、mp-weixin |
|platform |String |是 |客户端系统,如:android、ios |
**context参数说明**
`context`为云函数所在环境原始的`context`
|PLATFORM |String |是 |客户端平台,如:h5、app、mp-weixin |
|OS |String |是 |客户端系统,如:android、ios |
|APPID |String |是 |客户端DCloud appId |
## 云函数特别注意
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册