增加微信支付,商城逻辑,公告
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user