支付跳转修改

master
zhengchanglong 5 years ago
parent 1a62aed2d4
commit f28101fb35

@ -132,6 +132,9 @@ class Ipa365Controller extends BaseController{
$param['notifyurl'] = "https://api.wmtxkj.com/callback.php/Notify/notify/apitype/alipay";
$ret = $this->alipay($param);
$_SESSION['paytip_price']=self::signprice;
$_SESSION['paytip_order_id']=$orderId;
$_SESSION['paytip_url']=$ret['url'];
$this->assign("price", self::signprice);
$this->assign("url", $ret['url']);
@ -142,8 +145,11 @@ class Ipa365Controller extends BaseController{
$this->display();
}
public function paytip($jump_url){
$this->assign("jump_url",$jump_url);
public function paytip(){
$this->assign("price", $_SESSION['paytip_price']);
$this->assign("url", $_SESSION['paytip_url']);
$this->assign("order_id", $_SESSION['paytip_order_id']);
//$this->assign("jump_url",$jump_url);
$this->display();
}

@ -82,13 +82,13 @@
</div>
</div>
<div class="footer-pay">
<p>版权所有 ©2016 支付中心</p>
<p>海南万盟天下科技有限公司 版权所有 ©2019 支付中心</p>
</div>
</body>
<script>
function jump($pay_url) {
if(isWeiXin()){
window.location.href = "/sdk.php/Ipa365/paytip/jump_url/"+$.base64.encode($pay_url);
window.location.href = "/sdk.php/Ipa365/paytip";
}else{
window.location.href=$pay_url;
}

@ -16,7 +16,7 @@
<script>
$(document).ready(function(){
if(isWeiXin()==false){
window.location.href=$.base64.decode('{$jump_url}');
//window.location.href='{$url}';
}
});
//判断是否是微信浏览器的函数
@ -54,7 +54,7 @@
<label>商品名称:</label><span>超级签购买</span>
</div>
<div class="m-order-item">
<label>商品描述:</label><span></span>
<label>商品描述:</label><span>{$url}</span>
</div>
<div class="m-order-item">
<label>交易金额:</label><span>{$price}元</span>
@ -62,10 +62,10 @@
</div>
<div class="m-order-qrcode">
<div class="m-weixin-alipay-hintinfo">由于微信不支持支付宝直接支付请点击微信右上角菜单在Safari中打开</div>
<div class="m-weixin-alipay-qrcode-foot">
<!--<div class="m-weixin-alipay-qrcode-foot">
<a class="fail-pay" href="http://apipay.37376.com/pay/payreturn?TradeNo=201909231287512597767135279&amp;SignatureStamp=1569242244&amp;SignatureMD5=256B903183112B9BA4A826E579E89142">支付遇到问题</a>
<a class="success-pay" href="http://apipay.37376.com/pay/payreturn?TradeNo=201909231287512597767135279&amp;SignatureStamp=1569242244&amp;SignatureMD5=256B903183112B9BA4A826E579E89142">支付完成</a>
</div>
</div>-->
</div>
</div>

Loading…
Cancel
Save