Fixing .gitignore
This commit is contained in:
@@ -1,51 +1,51 @@
|
||||
package com.peanut.modules.pay.alipay.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.peanut.common.utils.R;
|
||||
import com.peanut.modules.pay.alipay.dto.AlipayDTO;
|
||||
import com.peanut.modules.pay.alipay.service.AliPayService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 支付宝支付控制层
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pay/aliPay")
|
||||
@Slf4j
|
||||
public class AliPayController {
|
||||
|
||||
@Autowired
|
||||
private AliPayService aliPayService;
|
||||
|
||||
/**
|
||||
* 请求支付宝接口支付
|
||||
*
|
||||
* @param payDto
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/pay")
|
||||
public R pay(AlipayDTO payDto) {
|
||||
String pay = aliPayService.pay(payDto);
|
||||
return R.ok().put("orderInfo",pay);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping( "/notify")
|
||||
public R notify_url(HttpServletRequest request) {
|
||||
Map<String, String[]> parameterMap = request.getParameterMap();
|
||||
String jsonStr = JSONObject.toJSONString(parameterMap);
|
||||
System.out.println("支付宝回调信息=============》"+jsonStr);
|
||||
String aliNotify = aliPayService.aliNotify(request);
|
||||
return R.ok().put("aliNotify",aliNotify);
|
||||
}
|
||||
|
||||
}
|
||||
package com.peanut.modules.pay.alipay.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.peanut.common.utils.R;
|
||||
import com.peanut.modules.pay.alipay.dto.AlipayDTO;
|
||||
import com.peanut.modules.pay.alipay.service.AliPayService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 支付宝支付控制层
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pay/aliPay")
|
||||
@Slf4j
|
||||
public class AliPayController {
|
||||
|
||||
@Autowired
|
||||
private AliPayService aliPayService;
|
||||
|
||||
/**
|
||||
* 请求支付宝接口支付
|
||||
*
|
||||
* @param payDto
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/pay")
|
||||
public R pay(AlipayDTO payDto) {
|
||||
String pay = aliPayService.pay(payDto);
|
||||
return R.ok().put("orderInfo",pay);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping( "/notify")
|
||||
public R notify_url(HttpServletRequest request) {
|
||||
Map<String, String[]> parameterMap = request.getParameterMap();
|
||||
String jsonStr = JSONObject.toJSONString(parameterMap);
|
||||
System.out.println("支付宝回调信息=============》"+jsonStr);
|
||||
String aliNotify = aliPayService.aliNotify(request);
|
||||
return R.ok().put("aliNotify",aliNotify);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user