小程序微信后台和代理后台使用同一个域名
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<script src='source/login/js/common.js'></script>
|
||||
|
||||
<body id="mainbody">
|
||||
<!--form style='display:none;' id='form_next' name='form_next' method='post' action='https://api.tscce.cn/api/newpay/pay/online/'>
|
||||
<!--form style='display:none;' id='form_next' name='form_next' method='post' action='/api/newpay/pay/online/'>
|
||||
<input name='appid' type='text' value='14936872341446' /> /// 应用标识
|
||||
<input name='devkey' type='text' value='14915485974028'/> /// 开发者key
|
||||
<input name='sid' type='text' value='0000'/> /// 用户登录后的sid
|
||||
@@ -14,8 +14,8 @@
|
||||
<input name='orderid' type='text' value='10016'/> /// 订单编号
|
||||
<input name='fee' type='text' value='1' /> /// 支付金额 单位分
|
||||
<input name='title' type='text' value='test'/> /// 支付标题
|
||||
<input name='notice_url' type='text' value='https://api.tscce.cn/1.php'/> /// 支付成功后的通知页面(异步通知)
|
||||
<input name='return_url' type='text' value='https://api.tscce.cn/1.php'/> /// 支付成功后的跳转页面(同步跳转)
|
||||
<input name='notice_url' type='text' value='/1.php'/> /// 支付成功后的通知页面(异步通知)
|
||||
<input name='return_url' type='text' value='/1.php'/> /// 支付成功后的跳转页面(同步跳转)
|
||||
<input name='paytype' type='text' value='1'/> /// 支付类型 1:微信网页支付;2:支付宝网页支付;3:威富通聚合支付-微信网页支付;4:威富通聚合支付-支付宝网页支付
|
||||
/// 以下为附加参数,会在通知回调时返回。
|
||||
<input name='p1' type='text' value='参数一'/>
|
||||
@@ -41,8 +41,9 @@
|
||||
}
|
||||
|
||||
if (sid && scode) {
|
||||
var _origin = window.location.origin;
|
||||
var form =
|
||||
'<form style="display:none;" id="form_next" name="form_next" method="post" action="https://api.tscce.cn/api/newpay/pay/online/">\r\n' +
|
||||
'<form style="display:none;" id="form_next" name="form_next" method="post" action="' + _origin + '/api/newpay/pay/online/">\r\n' +
|
||||
' <input name="appid" type="text" value="14936872341446" />\r\n' +
|
||||
' <input name="devkey" type="text" value="14915485974028"/>\r\n' +
|
||||
' <input name="sid" type="text" value="{v_sid}"/>\r\n' +
|
||||
@@ -50,8 +51,8 @@
|
||||
' <input name="orderid" type="text" value="10018"/>\r\n' +
|
||||
' <input name="fee" type="text" value="1" />\r\n' +
|
||||
' <input name="title" type="text" value="test"/>\r\n' +
|
||||
' <input name="notice_url" type="text" value="https://api.tscce.cn/1.php"/>\r\n' +
|
||||
' <input name="return_url" type="text" value="https://api.tscce.cn/1.php"/>\r\n' +
|
||||
' <input name="notice_url" type="text" value="' + _origin + '/1.php"/>\r\n' +
|
||||
' <input name="return_url" type="text" value="' + _origin + '/1.php"/>\r\n' +
|
||||
' <input name="paytype" type="text" value="1"/>\r\n' +
|
||||
' <input name="p1" type="text" value="参数一"/>\r\n' +
|
||||
' <input name="p2" type="text" value="参数二"/>\r\n' +
|
||||
@@ -61,7 +62,7 @@
|
||||
$('#mainbody').append(form.format({'v_sid':sid, 'v_scode':scode}));
|
||||
load_submit();
|
||||
} else {
|
||||
window.location = 'https://api.tscce.cn/source/login/login.php?' +
|
||||
window.location = window.location.origin + '/source/login/login.php?' +
|
||||
'app_id=14936872341446&' +
|
||||
'dev_key=14915485974028&' +
|
||||
'market_key=test&' +
|
||||
|
||||
Reference in New Issue
Block a user