支付 回调 处理 请求方式
This commit is contained in:
parent
d4f8eb8649
commit
cf63a0ea6f
|
|
@ -7,14 +7,15 @@ import com.czg.order.service.OrderInfoService;
|
||||||
import com.czg.utils.AssertUtil;
|
import com.czg.utils.AssertUtil;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author ww
|
* @author ww
|
||||||
* @description
|
* @description
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@RestController
|
||||||
@RequestMapping("notify")
|
@RequestMapping("notify")
|
||||||
public class NotifyController {
|
public class NotifyController {
|
||||||
private static final String SUCCESS = "SUCCESS";
|
private static final String SUCCESS = "SUCCESS";
|
||||||
|
|
@ -24,7 +25,7 @@ public class NotifyController {
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping("payCallBack")
|
@RequestMapping("payCallBack")
|
||||||
public String notifyCZGCallBack(CzgBaseRespParams respParams) {
|
public String notifyCallBack(CzgBaseRespParams respParams) {
|
||||||
JSONObject czg = CzgPayUtils.getCzg(respParams);
|
JSONObject czg = CzgPayUtils.getCzg(respParams);
|
||||||
AssertUtil.isNull(czg, "回调数据为空");
|
AssertUtil.isNull(czg, "回调数据为空");
|
||||||
log.info("支付回调数据为:{}", czg);
|
log.info("支付回调数据为:{}", czg);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue