IndexController.php 585 字节
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/24
 * Time: 18:51
 */
namespace app\index\controller;

use cmf\controller\WeChatBaseController;
use think\Db;

class IndexController extends WeChatBaseController
{
    //授权
    function _initialize()
    {
        //判断用户是否微信浏览器打开
        $this->isWechat();
        //微信授权
        parent::_initialize();
        $this->checkWeChatUserLogin();
        //阻止拉黑用户
        $this->ban();
    }
    public function index(){

        $this->success('咳咳','');
    }
}