码迷,mamicode.com
首页 > 微信 > 详细

ectouch 微信支付成功后订单状态未改变的解决办法 (转载)

时间:2016-07-24 13:32:53      阅读:1296      评论:0      收藏:0      [点我收藏+]

标签:

原文地址:

微信支付支付成功后,返回到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

ectouch 微信支付成功后订单状态未改变的解决办法 (转载)

标签:

原文地址:http://www.cnblogs.com/biandande/p/5700604.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!