diff --git a/publish.yaml b/publish.yaml index 83c6f9a..f4d9055 100644 --- a/publish.yaml +++ b/publish.yaml @@ -1,7 +1,7 @@ Edition: 3.0.0 Type: Project Name: start-unzip-oss-cap -Version: 0.0.8 +Version: 0.0.9 Provider: - 阿里云 Description: 本案例展示了如何将ZIP文件进行解压,快速创建并部署到云原生应用开发平台 CAP。匹配解压规则的ZIP文件在上传到OSS,会自动触发解压,解压完成后存储至OSS指定目录中。 diff --git a/readme.md b/readme.md index e580572..b73ae0d 120000 --- a/readme.md +++ b/readme.md @@ -10,7 +10,7 @@ -## 前期准备 +## 资源准备 使用该项目,您需要有开通以下服务并拥有对应权限: @@ -42,7 +42,7 @@ -- :fire: 通过 [云原生应用开发平台 CAP](https://devs.console.aliyun.com/applications/create?template=start-unzip-oss-cap) ,[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://devs.console.aliyun.com/applications/create?template=start-unzip-oss-cap) 该应用。 +- :fire: 通过 [云原生应用开发平台 CAP](https://cap.console.aliyun.com/template-detail?template=start-unzip-oss-cap) ,[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://cap.console.aliyun.com/template-detail?template=start-unzip-oss-cap) 该应用。 @@ -70,7 +70,10 @@ -## 使用流程 + + + +## 部署流程 @@ -89,7 +92,13 @@ ![](https://img.alicdn.com/imgextra/i4/O1CN01WYPc2X1wcjhUAXa65_!!6000000006329-0-tps-1596-876.jpg) -### 二次开发 + + + +## 二次开发指南 + + + 您可以通过云端控制台的开发功能进行二次开发, 上面的示例, 解压保存回去的都还是本身触发函数的 OSS, 如果是保存到其他 OSS, 直接将 `bucket.put_object(newKey + name, file_obj)` 这样上传回 oss 的代码修改下即可, 比如: ```python @@ -100,12 +109,10 @@ dst_bucket.put_object(newKey + name, file_obj) ``` - + + + -## 注意事项 - - - diff --git a/src/readme.md b/src/readme.md index e580572..b73ae0d 100644 --- a/src/readme.md +++ b/src/readme.md @@ -10,7 +10,7 @@ -## 前期准备 +## 资源准备 使用该项目,您需要有开通以下服务并拥有对应权限: @@ -42,7 +42,7 @@ -- :fire: 通过 [云原生应用开发平台 CAP](https://devs.console.aliyun.com/applications/create?template=start-unzip-oss-cap) ,[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://devs.console.aliyun.com/applications/create?template=start-unzip-oss-cap) 该应用。 +- :fire: 通过 [云原生应用开发平台 CAP](https://cap.console.aliyun.com/template-detail?template=start-unzip-oss-cap) ,[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://cap.console.aliyun.com/template-detail?template=start-unzip-oss-cap) 该应用。 @@ -70,7 +70,10 @@ -## 使用流程 + + + +## 部署流程 @@ -89,7 +92,13 @@ ![](https://img.alicdn.com/imgextra/i4/O1CN01WYPc2X1wcjhUAXa65_!!6000000006329-0-tps-1596-876.jpg) -### 二次开发 + + + +## 二次开发指南 + + + 您可以通过云端控制台的开发功能进行二次开发, 上面的示例, 解压保存回去的都还是本身触发函数的 OSS, 如果是保存到其他 OSS, 直接将 `bucket.put_object(newKey + name, file_obj)` 这样上传回 oss 的代码修改下即可, 比如: ```python @@ -100,12 +109,10 @@ dst_bucket.put_object(newKey + name, file_obj) ``` - + + + -## 注意事项 - - -