feat: 新增AI客服/积分管理/合同审查/我的报告页面,完善.sign.vue入口与积分显示

This commit is contained in:
2026-10-16 21:09:21 +08:00
parent 8a1da677e4
commit ae97c5d2be
476 changed files with 35618 additions and 540 deletions
@@ -0,0 +1,25 @@
'use strict';
const fs = require('fs');
const pdfParse = require('pdf-parse');
module.exports = {
main: async (event) => {
let {data = {}, userInfo, util, filterResponse, originalParam} = event;
let {customUtil, uniID, config, pubFun, vk, db, _} = util;
let {uid} = data;
let res = {code: 0, msg: ""};
// 业务逻辑开始-----------------------------------------------------------
const fileUrl = data.fileUrl
const keywords = data.keywords
const dataBuffer = fs.readFileSync(fileUrl);
const { text } = await pdfParse(dataBuffer);
console.log('PDF全文:', text);
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}