cms-manage/plugins/api/ApiPlugin.php

34 lines
799 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace plugins\api;
use app\Plugin;
class ApiPlugin extends Plugin
{
public $info = [
'name' => 'api',//Demo插件英文名改成你的插件英文就行了
'title' => 'api接口',
'description' => 'app/小程序 api接口',
'status' => 1,
'author' => 'huocms',
'version' => '1.0.0',
'demo_url' => 'http://www.demo_huocms.com',
'author_url' => 'http://www.huocms.com'
];
public $hasAdmin = 0;//插件是否有后台管理界面
// 插件安装
public function install()
{
return true;//安装成功返回true失败false
}
// 插件卸载
public function uninstall()
{
return true;//卸载成功返回true失败false
}
}