PickPayAction.java
1 KB
package com.cjs.site.action.user.fund;
import com.cjs.site.biz.user.pick.PickPayBiz;
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.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
/**
* Created by bruce on 2019-05-14 13:41
*/
@Controller
@RequestMapping("/pick/pay")
public class PickPayAction {
@Autowired
private PickPayBiz pickPayBiz;
//创建订单
@RequestMapping(value = "/createOrder", method = RequestMethod.GET)
@ResponseBody
public Object createOrder() {
return pickPayBiz.createOrder();
}
//支付通知
@RequestMapping(value = "notify", method = RequestMethod.POST)
public String notify(HttpServletRequest request) {
pickPayBiz.isValidNotify(request);
return "/jsp/payResult.jsp";
}
}