mitao
2025-04-11 8afc5bfc1e5df1e2f0a8872a344da3b3fd5d63b9
cloud-server-activity/src/main/java/com/dsh/activity/controller/PayHuiminController.java
@@ -6,8 +6,6 @@
import com.dsh.activity.model.response.SalesDetailVO;
import com.dsh.activity.service.PayHuiminService;
import com.dsh.activity.util.ResultUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -52,10 +50,10 @@
     * 退款惠民卡
     * @param id
     */
    @GetMapping("/base/tPayHuimin/refund/{id}")
    public ResultUtil<?> refund(@PathVariable("id") Integer id){
    @PostMapping("/base/tPayHuimin/refund")
    public ResultUtil<?> refund(@RequestBody Integer id){
        try {
            return payHuiminService.refund(id);
           return  payHuiminService.refund(id);
        } catch (AlipayApiException e) {
            throw new RuntimeException(e);
        }