首页  >  问答  >  正文

tp5整合微信支付之JSapi

<?php

namespace app\Wexinpay\controller;

use think\Controller;

class WeixinPay extends Controller

{

    //后台首页

    public function notify()

    {

        // 检测PHP环境 

 if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !'); 

// $_GET['m']='Admin'; 

// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false 

define('APP_DEBUG',True); 

//指定模块控制器和方法 

$_GET['m']='WexinApi'; 

$_GET['c']='WeixinPay'; 

$_GET['a']='notify'; 

// 定义应用目录 

define('APP_PATH','./Application/'); 

define("APP_ROOT",dirname(__FILE__)); 

// 引入ThinkPHP入口文件 

require './ThinkCore/ThinkCore.php'; 

// 

    }

}


 腻  腻 2253 天前1047

全部回复(1)我来回复

  • ringa_lee

    ringa_lee2018-07-26 14:31:22

    什么鬼

    回复
    0
  • 取消回复