📄 listen.jsp
字号:
<%@page contentType="text/html; charset=GBK" %>
<%@page import="com.onewaveinc.portalman.webpro.*"%>
<%@page import="com.onewaveinc.portalman.webpro.entity.*"%>
<%@page import="java.util.Date"%>
<%
//ICP在Vnet上的服务代码
String serviceCode = "45454";
//ICP产品信息
String productInfo = "测试按次服务";
//ICP授权结果接受网页地址
String returnURL = "http://localhost:9000/demoicp/receive.jsp";
//ICP产品价格
int price = 1000;
String icpLoginName = "acnt1234";
OWAuthorizeRequest authRequest = new OWAuthorizeRequest();
//如果需要传入icp侧loginname,则为
OWAuthorizeRequest2 authRequest = new OWAuthorizeRequest2();
//0:由Vnet系统自动判断1:指明用在ADSL和163帐号中做检查2:指明用在现金帐号中做检查3:指定促消卡中扣款4:指定在业务卡中扣款
authRequest.setPayAccountCheckMode(0);
//ICP在Vnet上的服务代码
authRequest.setServiceCode(serviceCode);
//ICP需要强制跳回的URL
authRequest.setReturnURL(returnURL);
//如果是代收费模式,设置产品价格,单位为厘
authRequest.setExpenditure(price);
//设置产品信息
authRequest.setProductInfo(productInfo);
//设置用户在icp一侧的帐号
authRequest.setIcpLoginName(icpLoginName);
//将OWAuthorizationRequest授权请求object变为请求String
String authString = WebProManager.getOWAuthentication().getOWAuthorizeRequestString(authRequest);
String jumpUrl = WebProManager.getAuthenticationJumpURL() + "?authorize_request=" + authString;
System.out.println(jumpUrl);
%>
<A href='#' onclick='window.open("<%=jumpUrl%>")'> 单击次处消费收费服务</A><BR><BR><A href='http://gd.chinavnet.com/' target='_blank'>单击此处跳转到Vnet主页</A>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -