1 Star 0 Fork 0

/meiwang

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
notice.php 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
提交于 2015-11-09 19:31 . '20151109'
<?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;
}
?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zkk0713/meiwang.git
git@gitee.com:zkk0713/meiwang.git
zkk0713
meiwang
meiwang
master

搜索帮助