|
@@ -144,7 +144,6 @@ router.post("/", async (req, res) => {
|
|
|
api_provider,
|
|
|
api_doc,
|
|
|
operate_path_data,
|
|
|
- status,
|
|
|
} = req.body;
|
|
|
|
|
|
// 验证必填字段
|
|
@@ -168,9 +167,9 @@ router.post("/", async (req, res) => {
|
|
|
const sql = `
|
|
|
INSERT INTO tools_auto_access_task (
|
|
|
access_task_id, tools_name, tools_function_name, tools_function_desc,
|
|
|
- access_type, api_provider, api_doc, operate_path_data, status,
|
|
|
+ access_type, api_provider, api_doc, operate_path_data,
|
|
|
create_time, update_time
|
|
|
- ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, NOW(), NOW())
|
|
|
+ ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, NOW(), NOW())
|
|
|
`;
|
|
|
|
|
|
// 保证 operate_path_data 为字符串(可能传入对象)
|
|
@@ -186,7 +185,6 @@ router.post("/", async (req, res) => {
|
|
|
api_provider || null,
|
|
|
api_doc || null,
|
|
|
operatePathValue || null,
|
|
|
- status || null,
|
|
|
]);
|
|
|
|
|
|
res.status(201).json({
|