代码拉取完成,页面将自动刷新
<?php
/*header("Content-type: text/html; charset=utf-8");
if (get_magic_quotes_gpc()) {
function stripslashes_deep($value){
$value = is_array($value) ?
array_map('stripslashes_deep', $value) :
stripslashes($value);
return $value;
}
$_POST = array_map('stripslashes_deep', $_POST);
$_GET = array_map('stripslashes_deep', $_GET);
$_COOKIE = array_map('stripslashes_deep', $_COOKIE);
}
$_GET['g'] = 'Wap';
$_GET['m'] = 'Weixin';
$_GET['a'] = 'new_return_url';
$array_data = json_decode(json_encode(simplexml_load_string($GLOBALS['HTTP_RAW_POST_DATA'], 'SimpleXMLElement', LIBXML_NOCDATA)), true);
$_GET['out_trade_no'] = $array_data['out_trade_no'];
$_GET['total_fee'] = $array_data['total_fee'];
$_GET['trade_state'] = $array_data['result_code'];
$_GET['transaction_id'] = $array_data['transaction_id'];
$get_arr = explode('&',$array_data['attach']);
foreach($get_arr as $value){
$tmp_arr = explode('=',$value);
$_GET[$tmp_arr[0]] = $tmp_arr[1];
}
*/
header("Content-type: text/html; charset=utf-8");
define('APP_ID','shop');
define('BASE_PATH',str_replace('\\','/',dirname(__FILE__).'/shop'));
if (!@include(dirname(__FILE__).'/global.php')) exit('global.php isn\'t exists!');
if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
if (!@include(BASE_CORE_PATH.'/shopjl.php')) exit('shopjl.php isn\'t exists!');
require_once(BASE_DATA_PATH.DS.'config/config.ini.php');
if($_POST['notify_id']){
$payment_code = 'alipay';
$inc_file = BASE_PATH.'/../mobile'.DS.'api'.DS.'payment'.DS.'alipay'.DS.'alipay'.'.php';
require($inc_file);
$pay_sn = $_POST['out_trade_no'];
$payment_api = new $payment_code;
$payment_api->getNotifyInfo($config);
}else{
file_put_contents("Response.txt",'error_request---');
echo 'error_request';
exit;
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。