cxhxy/addons/foodcash/Plugin.php
2024-01-03 14:19:05 +08:00

69 lines
1.2 KiB
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 addons\foodcash;
use think\Addons;
/**
* 蓝畅点单 - 网页收银插件
*/
class Plugin extends Addons
{
// 该插件的基础信息
public $info = [
'name' => 'foodcash', // 插件标识
'title' => '网页收银', // 插件名称
'description' => '蓝畅点单-SaaS版专用网页收银店长收银端', // 插件简介
'status' => 0, // 状态
'author' => 'hemaPHP',
'version' => '1.0.5'
];
/**
* 插件安装方法
* @return bool
*/
public function install()
{
if(get_addons_info('food')){
return true;
}
$this->error = '必须先安装《蓝畅点单》SaaS版插件';
return false;
}
/**
* 插件卸载方法
* @return bool
*/
public function uninstall()
{
return true;
}
/**
* 插件升级方法
* @return bool
*/
public function upgrade()
{
return true;
}
/**
* 插件启用方法
* @return bool
*/
public function enable()
{
return true;
}
/**
* 插件禁用方法
* @return bool
*/
public function disable()
{
return true;
}
}