search

Home  >  Q&A  >  body text

tp5 integrates JSapi of WeChat payment

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

//

}

}


 腻  腻 2313 days ago1088

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2018-07-26 14:31:22

    What the hell

    reply
    0
  • Cancelreply