const express = require('express');
const router = express.Router();

// 简单的支付路由，不依赖任何中间件
router.post('/', (req, res) => {
  res.json({
    success: true,
    message: '支付接口正常',
    data: {
      payment_id: Date.now(),
      status: 'pending'
    }
  });
});

router.get('/:id', (req, res) => {
  res.json({
    success: true,
    data: {
      id: req.params.id,
      status: 'paid',
      amount: 100.00
    }
  });
});

module.exports = router;