接口新增

This commit is contained in:
dzl
2025-09-17 16:59:34 +08:00
parent ecc9e3046e
commit bc8f4a9d4f

View File

@@ -3,6 +3,7 @@ const router = express.Router();
const { getDB } = require('../database'); const { getDB } = require('../database');
const matchingService = require('../services/matchingService'); const matchingService = require('../services/matchingService');
const { auth } = require('../middleware/auth'); const { auth } = require('../middleware/auth');
const { default: axios } = require('axios');
router.post('/create', auth, async (req, res) => { router.post('/create', auth, async (req, res) => {
@@ -322,6 +323,12 @@ router.post('/confirm-allocation/:allocationId', auth, async (req, res) => {
message: '转账凭证已提交,转账记录已创建', message: '转账凭证已提交,转账记录已创建',
data: { transferId } data: { transferId }
}); });
axios.post('http://192.168.1.43:5000',{
allocationId: allocationId
}).then(res => {
console.log(res.data)
})
} catch (error) { } catch (error) {
console.error('确认分配失败:', error); console.error('确认分配失败:', error);