Files
BiliBiliToolPro/tencentScf/index.sh
database-mysql e519cac94e
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
Close Stale Issues / close_stale_issues (push) Has been cancelled
repo-sync / repo-sync (push) Has been cancelled
auto-deploy-tencent-scf / pre-check (push) Has been cancelled
auto-deploy-tencent-scf / deploy serverless (push) Has been cancelled
pull file
2026-02-11 23:32:56 +08:00

20 lines
590 B
Bash

echo "成功加载index.sh函数文件"
function main_handler () {
echo "进入main_handler"
EVENT_DATA=$1
echo "$EVENT_DATA" 1>&2;
runTasks=""
if [[ $EVENT_DATA == *Message* ]]
then
eventMsg=$(echo $EVENT_DATA | grep -Po 'Message[" :]+\K[^"]+')
echo "触发事件中的附加消息(任务编码)为:$eventMsg"
runTasks="--runTasks=$eventMsg"
else
echo "触发事件中未包含附加消息(任务编码)"
fi
echo "开始运行BiliBiliTool......"
./Ray.BiliBiliTool.Console $runTasks
echo "函数结束"
}