package cc.mrbird.febs.pay.controller;
|
|
import cc.mrbird.febs.common.entity.FebsResponse;
|
import com.ijpay.alipay.AliPayApi;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.servlet.http.HttpServletRequest;
|
import java.util.Map;
|
|
/**
|
* @author wzy
|
* @date 2021-09-27
|
**/
|
@Slf4j
|
@RestController
|
@RequestMapping(value = "/api/pay")
|
public class PayCallBackController {
|
|
@RequestMapping("/aliCallBack")
|
public FebsResponse aliPayCallBack(HttpServletRequest request) {
|
Map<String, String> params = AliPayApi.toMap(request);
|
|
for (Map.Entry<String, String> entry : params.entrySet()) {
|
log.info("支付宝回调:{}===={}", entry.getKey(), entry.getValue());
|
}
|
return new FebsResponse().success();
|
}
|
}
|