pull file
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

This commit is contained in:
2026-02-11 23:32:56 +08:00
commit e519cac94e
656 changed files with 45058 additions and 0 deletions

19
tencentScf/index.sh Normal file
View File

@@ -0,0 +1,19 @@
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 "函数结束"
}