From 33db3a246ca917a946c8113bf1981d027b6eaa1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Tue, 16 Dec 2025 08:19:50 +0800 Subject: [PATCH] 1 --- api/controller_front/user.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/controller_front/user.js b/api/controller_front/user.js index 3262b0d..f8086d5 100644 --- a/api/controller_front/user.js +++ b/api/controller_front/user.js @@ -185,7 +185,9 @@ module.exports = { */ 'GET /user/delivery-config': async (ctx) => { try { + console.log('[User Controller] 收到获取投递配置请求'); const { sn_code } = ctx.query; + console.log('[User Controller] sn_code:', sn_code); if (!sn_code) { return ctx.fail('请提供设备SN码'); @@ -254,8 +256,10 @@ module.exports = { */ 'POST /user/delivery-config': async (ctx) => { try { + console.log('[User Controller] 收到保存投递配置请求'); const body = ctx.getBody(); const { sn_code, config } = body; + console.log('[User Controller] sn_code:', sn_code, 'config:', JSON.stringify(config)); if (!sn_code) { return ctx.fail('请提供设备SN码');