<!--#include file="config.asp"-->
<%
''' EYCMS 支付宝登录
''' ==================================================================

	sub alipay_api()
		dim gourl:gourl=eycms.fget("url",0)
		if eycms.strlen(gourl)=0 then gourl=preurl
		eycms.setsession "api_backurl",gourl
		dim url:url="https://mapi.alipay.com/gateway.do?"
		dim url_01
			url_01="_input_charset=utf-8"
			url_01=url_01&"&partner="&alipay_appid
			url_01=url_01&"&return_url="&alipay_callback
			url_01=url_01&"&service=alipay.auth.authorize"
			url_01=url_01&"&target_service=user.auth.quick.login"
			url=url&url_01
			url=url&"&sign="&MD5_32(url_01&alipay_appkey)
			url=url&"&sign_type=MD5"
		eycms.go url
	end sub
	alipay_api
%>
