WxappPlugin.php 1.4 KB
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
namespace plugins\wxapp;//Demo插件英文名,改成你的插件英文就行了
use cmf\lib\Plugin;

//Demo插件英文名,改成你的插件英文就行了
class WxappPlugin extends Plugin
{

    public $info = [
        'name'        => 'Wxapp',//Demo插件英文名,改成你的插件英文就行了
        'title'       => '微信小程序',
        'description' => '微信小程序管理工具',
        'status'      => 1,
        'author'      => 'ThinkCMF',
        'version'     => '1.0',
        'demo_url'    => 'http://demo.thinkcmf.com',
        'author_url'  => 'http://www.thinkcmf.com'
    ];

    public $hasAdmin = 1;//插件是否有后台管理界面

    // 插件安装
    public function install()
    {
        return true;//安装成功返回true,失败false
    }

    // 插件卸载
    public function uninstall()
    {
        return true;//卸载成功返回true,失败false
    }


}