提交
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user