<?php
namespace app\Wexinpay\controller;
use think\Controller;
class WeixinPay extends Controller
{
//Backend home page
public function notify()
{
// Detect PHP environment
if(version_compare(PHP_VERSION,' 5.3.0','<')) die('require PHP > 5.3.0 !');
// $_GET['m']='Admin';
// To enable debugging mode, it is recommended to enable deployment phase comments during the development phase or set it to false
define('APP_DEBUG',True);
//Specify module controller and method
$_GET['m']='WexinApi';
$_GET['c']='WeixinPay';
$_GET['a']='notify';
// Define the application directory
define('APP_PATH','./Application/');
define("APP_ROOT",dirname(__FILE__));
//Introducing the ThinkPHP entry file
require './ThinkCore/ThinkCore.php';
//
}
}
What the hell