<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.alipay.util.*"%>
<%@ page import="com.alipay.config.*"%>
<span style="color:#000099;">
<%@page import="org.springframework.web.context.support.*"%>
<%@page import="org.springframework.context.*" %></span>
<pre name="code" class="java"><span style="color:#000099;"><%@ page import="com.mobiletvconfig.shop.service.*"%></span>
<%
//省略部分代码 以下是核心代码
if(AlipayNotify.verify(params)){//验证成功
//获得批次号
String batch_no=params.get("batch_no");
//业务处理
ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
WithdrawService withdrawService = (WithdrawService)ctx.getBean("withdrawService");
withdrawService.executeNotify(batch_no);
out.println("success");
}else{//验证失败
out.println("fail");
}
%>