diff --git a/Reject.js b/Reject.js index dfe7c84..973feb4 100644 --- a/Reject.js +++ b/Reject.js @@ -946,7 +946,7 @@ app.post('/api/supplies/:id/unpublish', async (req, res) => { // 更新状态为下架 await connection.query( 'UPDATE products SET status = ? WHERE id = ?', - ['hidden', productId] + ['sold_out', productId] ); // 提交事务 diff --git a/supply.html b/supply.html index b4d2fe4..e24df7d 100644 --- a/supply.html +++ b/supply.html @@ -4080,7 +4080,7 @@