From bc8f4a9d4f6ddf1db5735c51ebbcaa265191bb32 Mon Sep 17 00:00:00 2001 From: dzl <786316265@qq.com> Date: Wed, 17 Sep 2025 16:59:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/matching.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/routes/matching.js b/routes/matching.js index 456857f..a1f8996 100644 --- a/routes/matching.js +++ b/routes/matching.js @@ -3,6 +3,7 @@ const router = express.Router(); const { getDB } = require('../database'); const matchingService = require('../services/matchingService'); const { auth } = require('../middleware/auth'); +const { default: axios } = require('axios'); router.post('/create', auth, async (req, res) => { @@ -322,6 +323,12 @@ router.post('/confirm-allocation/:allocationId', auth, async (req, res) => { message: '转账凭证已提交,转账记录已创建', data: { transferId } }); + + axios.post('http://192.168.1.43:5000',{ + allocationId: allocationId + }).then(res => { + console.log(res.data) + }) } catch (error) { console.error('确认分配失败:', error);