feat: 完成文字涂色卡功能

This commit is contained in:
2025-07-01 11:27:50 +08:00
parent 654afced6f
commit 6d38a17652
21 changed files with 267 additions and 103 deletions
+5 -2
View File
@@ -10,7 +10,6 @@ cloud.init({
exports.main = async (event, context) => {
try {
console.log('main event.action:', event.action);
switch (event.action) {
case 'getOpenId': {
const res = await getOpenId(event, context);
@@ -26,7 +25,11 @@ exports.main = async (event, context) => {
return await createPDF();
}
default:
return { code: 1, message: '请检查云函数名是否正确!', data: {} };
return {
code: 1,
message: '请检查云函数名是否正确!',
data: {},
};
}
} catch (error) {
console.error('Error in user cloud Function:', error);