forked from ectouch/ectouch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
notify_url.php
30 lines (27 loc) · 1.05 KB
/
notify_url.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* ECTouch Open Source Project
* ============================================================================
* Copyright (c) 2012-2014 http://ectouch.cn All rights reserved.
* ----------------------------------------------------------------------------
* 文件名称:notify_url.php
* ----------------------------------------------------------------------------
* 手机支付宝支付异步通知处理
* ----------------------------------------------------------------------------
* Licensed ( http://www.ectouch.cn/docs/license.txt )
* ----------------------------------------------------------------------------
*/
/* 访问控制 */
define('IN_ECTOUCH', true);
if(!isset($_POST['sign'])){
header('location: ./index.php?'.$_SERVER['QUERY_STRING']);
exit;
}
define('CONTROLLER_NAME', 'Respond');
$params['type'] = 1;
$params['code'] = 'alipay_wap';
$code = base64_encode(serialize($params));
$code = str_replace(array('+', '/', '='), array('-', '_', ''), $code);
$_GET['code'] = $code;
/* 加载核心文件 */
require ('include/EcTouch.php');