Compare commits
2 Commits
cb0b401b6e
...
37e9ed3e81
| Author | SHA1 | Date | |
|---|---|---|---|
| 37e9ed3e81 | |||
| bc8f4a9d4f |
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user