tp5 integrates JSapi of WeChat payment
 腻 
 腻  2018-07-26 10:17:28
0
1
1085

<?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';

//

}

}


 腻 
 腻 

reply all(1)
ringa_lee

What the hell

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template