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);