现在的位置: 首页 > php > 正文
ectouch开发
2015年02月27日 php ⁄ 共 731字 暂无评论

微信支付支付成功后,返回到mobile/wx_native_callback.php

之前代码

define('IN_ECS', true);
require(dirname(__FILE__) . '/include/init.php');
require(ROOT_PATH . 'include/lib_payment.php');
require_once(ROOT_PATH .'include/modules/payment/wx_new_jspay.php');
$payment = new wx_new_qrcode();
$payment->respond();
exit;

修改后:

<?php
define('IN_ECTOUCH', true);
define('IN_ECS', true);

require(dirname(__FILE__) . '/include/init.php');
 
require(ROOT_PATH . 'include/lib_payment.php');
require_once(ROOT_PATH .'include/modules/payment/wx_new_jspay.php');
$payment = new wx_new_jspay();
$payment->respond();
exit;

还有mobile/include/modules/payment/wx_new_jspay.php

修复

     // $root_url = str_replace('mobile/', '', $GLOBALS['ecs']->url());

$root_url=$GLOBALS['ecs']->url();

让他返回到mobile/wx_native_callback.php

给我留言

您必须 [ 登录 ] 才能发表留言!

×