添加阿里云函数计算教程
@ -1,7 +1,7 @@
|
||||
<p align="center">
|
||||
<img src="https://socialify.git.ci/Sitoi/dailycheckin/image?description=1&font=Rokkitt&forks=1&issues=1&language=1&owner=1&pattern=Circuit%20Board&pulls=1&stargazers=1&theme=Dark"/>
|
||||
<br><strong><font size=50>每日签到集合</font></strong>
|
||||
<br>基于【腾讯云函数】/【Docker】/【青龙面板】/【elecV2P】/【群晖】的每日签到脚本
|
||||
<br>基于【腾讯云函数】/【Docker】/【青龙面板】/【elecV2P】/【群晖】/【阿里云函数计算】的每日签到脚本
|
||||
<br>支持多账号使用
|
||||
</p>
|
||||
|
||||
|
50
docs/aliyun-fc.md
Normal file
@ -0,0 +1,50 @@
|
||||
# 阿里云函数计算教程
|
||||
|
||||
### 一、创建服务和函数
|
||||
|
||||
> 地域选哪里都可以
|
||||
|
||||
![创建服务](img/fc_create_service.jpg)
|
||||
|
||||
![创建函数](img/fc_create_function.jpg)
|
||||
|
||||
### 二、修改超时时间并配置定时触发器
|
||||
|
||||
在“触发器管理”页签中添加定时触发器
|
||||
|
||||
![添加触发器](img/fc_add_trigger.jpg)
|
||||
|
||||
在“函数配置”页签中修改超时时间
|
||||
|
||||
![修改超时时间](img/fc_edit_timeout.jpg)
|
||||
|
||||
### 三、修改代码并安装依赖
|
||||
|
||||
![修改代码](img/fc_edit_code.jpg)
|
||||
|
||||
```python
|
||||
# -*- coding: utf-8 -*-
|
||||
from dailycheckin.main import checkin
|
||||
|
||||
|
||||
def handler(event, context):
|
||||
checkin()
|
||||
```
|
||||
|
||||
![安装依赖包](img/fc_module_install.jpg)
|
||||
|
||||
```bash
|
||||
pip3 install dailycheckin --upgrade -t .
|
||||
```
|
||||
|
||||
### 四、添加配置文件
|
||||
|
||||
> ⚠️ 请务必到 [http://www.json.cn](http://www.json.cn) 网站检查 `config.json` 文件格式是否正确!
|
||||
|
||||
![添加配置文件](img/fc_config.jpg)
|
||||
|
||||
### 四、部署并测试
|
||||
|
||||
![部署](img/fc_deploy.jpg)
|
||||
|
||||
![测试](img/fc_test.jpg)
|
BIN
docs/img/fc_add_trigger.jpg
Normal file
After Width: | Height: | Size: 314 KiB |
BIN
docs/img/fc_config.jpg
Normal file
After Width: | Height: | Size: 214 KiB |
BIN
docs/img/fc_create_function.jpg
Normal file
After Width: | Height: | Size: 386 KiB |
BIN
docs/img/fc_create_service.jpg
Normal file
After Width: | Height: | Size: 241 KiB |
BIN
docs/img/fc_deploy.jpg
Normal file
After Width: | Height: | Size: 423 KiB |
BIN
docs/img/fc_edit_code.jpg
Normal file
After Width: | Height: | Size: 235 KiB |
BIN
docs/img/fc_edit_timeout.jpg
Normal file
After Width: | Height: | Size: 227 KiB |
BIN
docs/img/fc_module_install.jpg
Normal file
After Width: | Height: | Size: 393 KiB |
BIN
docs/img/fc_test.jpg
Normal file
After Width: | Height: | Size: 298 KiB |
@ -1,7 +1,7 @@
|
||||
<p align="center">
|
||||
<img src="https://socialify.git.ci/Sitoi/dailycheckin/image?description=1&font=Rokkitt&forks=1&issues=1&language=1&owner=1&pattern=Circuit%20Board&pulls=1&stargazers=1&theme=Dark"/>
|
||||
<br><strong><font size=50>每日签到集合</font></strong>
|
||||
<br>基于【腾讯云函数】/【Docker】/【青龙面板】/【elecV2P】/【群晖】的每日签到脚本
|
||||
<br>基于【腾讯云函数】/【Docker】/【青龙面板】/【elecV2P】/【群晖】/【阿里云函数计算】的每日签到脚本
|
||||
<br>支持多账号使用
|
||||
</p>
|
||||
|
||||
|
@ -21,5 +21,6 @@ nav:
|
||||
- 云函数: tencent-scf.md
|
||||
- Docker: docker.md
|
||||
- elecV2P: elecV2P.md
|
||||
- 阿里云函数计算: aliyun-fc.md
|
||||
- 配置: settings.md
|
||||
- 更新日志: history.md
|
||||
- 更新日志: history.md
|
||||
|