This commit is contained in:
2025-09-26 14:40:02 +08:00
parent 76cfa08021
commit 8491be681b
9 changed files with 1717 additions and 1629 deletions

View File

@@ -310,12 +310,12 @@ router.post('/confirm-allocation/:allocationId', auth, async (req, res) => {
}
// 调用服务层方法,传递完整的转账信息
const transferId = await matchingService.confirmAllocation(
allocationId,
userId,
transferAmount,
description,
voucher
const transferId = matchingService.confirmAllocation(
allocationId,
userId,
transferAmount,
description,
voucher
);
res.json({
@@ -324,11 +324,11 @@ router.post('/confirm-allocation/:allocationId', auth, async (req, res) => {
data: { transferId }
});
axios.post('http://localhost:5000/ocr',{
id: allocationId
}).then(res => {
console.log(res.data)
})
// axios.post('http://localhost:5000/ocr',{
// id: allocationId
// }).then(res => {
// console.log(res.data)
// })
} catch (error) {
console.error('确认分配失败:', error);