重要【请尽快修复】:手机版客户,支付宝异步回调文件修改
重要:手机版客户,支付宝异步回调文件修改。
已更新2015-12-04 手机版补丁的客户需要更新,没有更新的可以直接忽略
上一个手机版的支付更新,可能导致支付宝掉单情况发生。如有发现,请核对后手动确认付款,然后作以下补丁修复。
很抱歉给您带来的影响。
1、找到mobile/respond_notify.php
将:
define('IN_ECS', true);
require(dirname(__FILE__) . '/includes/init.php');
require(ROOT_PATH . 'includes/lib_payment.php');
$plugin_file = ROOT_PATH.'mobile/includes/modules/payment/alipay.php';
if (file_exists($plugin_file))
{
include_once($plugin_file);
$payment = new alipay();
if($payment->respond()){
echo "success";
}else{
echo "fail";
}
}
替换为:
define('IN_ECS', true);
require(dirname(__FILE__) . '/includes/init.php');
require(ROOT_PATH . 'includes/lib_payment.php');
$plugin_file = ROOT_PATH.'includes/modules/payment/wap_alipay.php';
if (file_exists($plugin_file))
{
include_once($plugin_file);
$payment = new wap_alipay();
if($payment->respond()){
echo "success";
}else{
echo "fail";
}
}
2、找到:mobile/respond.php
找到:
/* 判断是否启用 */
$sql = "SELECT COUNT(*) FROM " . $ecs->table('mobile_payment') . " WHERE pay_code = '$pay_code' AND enabled = 1";
if ($db->getOne($sql) == 0)
{
$msg = $_LANG['pay_disabled'];
}
else
{
$plugin_file = ROOT_PATH . 'mobile/includes/modules/payment/' . $pay_code . '.php';
替换为:
/* 判断是否启用 */
$sql = "SELECT COUNT(*) FROM " . $ecs->table('payment') . " WHERE pay_code = '$pay_code' AND enabled = 1";
if ($db->getOne($sql) == 0)
{
$msg = $_LANG['pay_disabled'];
}
else
{
$plugin_file = ROOT_PATH . 'includes/modules/payment/' . $pay_code . '.php';