chenyc
2024-10-22 582298836cc8ff78ad2f726106babc9c36264456
gengx
1个文件已修改
1个文件已添加
5 ■■■■■ 已修改文件
app.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
img/888888.png 补丁 | 查看 | 原始文档 | blame | 历史
app.js
@@ -319,10 +319,15 @@
// 访问日志记录
const logHttps=(mode)=>{
    try{
    console.log(mode)
    console.log(JSON.stringify(mode))
    let sqlStr=`INSERT INTO system_log (id, code, url, parameter) VALUES (0, '', '${mode.action}', '${JSON.stringify(mode)}')`
    pool.promise().query(sqlStr)
    }catch (err) {
        console.error('Error creating directory:', err);
        throw err;
    }
}
// 插入数据
const installData=async (mode)=>{
img/888888.png