重构了云函数

This commit is contained in:
2025-10-19 20:10:19 +08:00
parent cfb6819bc7
commit 1c40c10210
1942 changed files with 363888 additions and 435 deletions

22
fix_cloud_functions.bat Normal file
View File

@@ -0,0 +1,22 @@
@echo off
echo 正在修复云函数依赖问题...
cd /d "build-templates\wechatgame\cloud_functions\cocos_cloud"
echo 正在删除旧的 node_modules 和 package-lock.json...
if exist node_modules rmdir /s /q node_modules
if exist package-lock.json del package-lock.json
echo 正在重新安装依赖...
npm install
echo.
echo 依赖安装完成!
echo.
echo 请执行以下步骤:
echo 1. 打开微信开发者工具
echo 2. 重新上传并部署云函数 cocos_cloud
echo 3. 在游戏中测试云函数调用
echo.
echo 按任意键退出...
pause >nul