tp5整合微信支付之JSapi
 腻 
 腻  2018-07-26 10:17:28
0
1
1034

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

// 

    }

}


 腻 
 腻 

全部回复(1)
ringa_lee

什么鬼

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!