package com.gkhy.exam.pay.controller;
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
import com.gkhy.exam.pay.utils.PayUtils;
|
import com.ruoyi.common.core.controller.BaseController;
|
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.io.IOException;
|
import java.util.Map;
|
|
@RestController
|
@Api(tags = "缴费通知")
|
@RequestMapping("/pay/payFees")
|
public class PayFeesController extends BaseController {
|
|
|
@PostMapping("/inform")
|
public Map<String,String> inform(@RequestBody JSONObject jsonObject){
|
PayUtils payUtils = new PayUtils();
|
Map<String, String> receive = null;
|
try {
|
receive = payUtils.receive(jsonObject);
|
} catch (IOException e) {
|
throw new RuntimeException(e);
|
}
|
return receive;
|
}
|
|
|
|
|
|
|
|
|
}
|