增加微信支付,商城逻辑,公告

This commit is contained in:
2025-09-05 16:48:53 +08:00
parent e5ace37c68
commit 8530e97ab6
38 changed files with 6430 additions and 1688 deletions

View File

@@ -1234,6 +1234,11 @@ router.post('/force-change-status/:transferId', authenticateToken, async (req, r
const { transferId } = req.params;
const { newStatus, status, reason, adjust_balance = false } = req.body;
console.log('newStatus:', newStatus);
console.log('status:', status);
console.log('reason:', reason);
console.log('adjust_balance:', adjust_balance);
// 兼容两种参数名newStatus 和 status
const actualNewStatus = newStatus || status;
const adminId = req.user.id;
@@ -1248,9 +1253,9 @@ router.post('/force-change-status/:transferId', authenticateToken, async (req, r
return res.status(400).json({ success: false, message: '新状态不能为空' });
}
if (!reason) {
return res.status(400).json({ success: false, message: '变更原因不能为空' });
}
// if (!reason) {
// return res.status(400).json({ success: false, message: '变更原因不能为空' });
// }
const result = await transferService.forceChangeTransferStatus(
transferId,