-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathwxnotify.php
executable file
·42 lines (38 loc) · 1.05 KB
/
wxnotify.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
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
* This file is part of the phpems/phpems.
*
* (c) oiuv <[email protected]>
*
* 项目维护:oiuv(QQ:7300637) | 定制服务:火眼(QQ:278768688)
*
* This source file is subject to the MIT license that is bundled.
*/
define('PEPATH', dirname(dirname(__FILE__)));
class app
{
public $G;
public function __construct(&$G)
{
$this->G = $G;
$this->ev = $this->G->make('ev');
$this->sql = $this->G->make('pdosql');
$this->db = $this->G->make('pepdo');
$this->pg = $this->G->make('pg');
$this->module = $this->G->make('module');
$this->session = $this->G->make('session');
$this->user = $this->G->make('user', 'user');
$groups = $this->user->getUserGroups();
$this->order = $this->G->make('orders', 'bank');
}
public function run()
{
//使用通用通知接口
$notify = $this->G->make('wxpay')->getNotifyPubObject();
$notify->handle(false);
exit;
}
}
include PEPATH.'/lib/init.cls.php';
$app = new app(new ginkgo());
$app->run();