PickPayAction.java 1.08 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;
import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * 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(HttpSession session) {
        return pickPayBiz.createOrder(session);
    }

    //支付通知
    @RequestMapping(value = "notify", method = RequestMethod.POST)
    public String notify(Map<String,String> params) {
        pickPayBiz.isValidNotify(params);
        return "/jsp/payResult.jsp";
    }

}