首頁  >  問答  >  主體

tp5整合微信支付之JSapi

<?php

namespace app\Wexinpay\controller;

use think\Controller;

class WeixinPay extends Controller

{

    //後台首頁

    public function notify()

    {

        // 偵測PHP環境 

 if(version_compare(PH_VERS. 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 天前1045

全部回覆(1)我來回復

  • ringa_lee

    ringa_lee2018-07-26 14:31:22

    什麼鬼

    回覆
    0
  • 取消回覆