From 43b81c615b04ed02fd95330e8d62322b92407fe3 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Sat, 16 Jan 2021 14:32:49 +0800 Subject: [PATCH] docs: uniCloud function event --- docs/uniCloud/cf-functions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/uniCloud/cf-functions.md b/docs/uniCloud/cf-functions.md index a7451e1952..8d73118509 100644 --- a/docs/uniCloud/cf-functions.md +++ b/docs/uniCloud/cf-functions.md @@ -46,7 +46,8 @@ exports.main = async (event, context) => { **注意事项** -- 服务商为阿里云时,暂不可使用相对路径读取文件(比如`fs.readFileSync('./info.txt')`),可以使用绝对路径`fs.readFileSync(path.resolve(__dirname,'./info.txt'))` +- 服务商为阿里云时,暂不可使用相对路径读取文件(比如`fs.readFileSync('./info.txt')`),可以使用绝对路径`fs.readFileSync(path.resolve(__dirname,'./info.txt'))` +- event大小不可超过100kb ## API列表 -- GitLab