cxhxy/app/admin/controller/Hemaphp.php
2023-11-21 15:14:59 +08:00

1 line
651 B
PHP

<?php
namespace app\admin\controller;
use app\admin\model\Setting as SettingModel;
use think\facade\Cache;
/**
* 插件控制器
*/
class Hemaphp extends Controller
{
/**
* 安装方法
* @return bool
*/
public static function install()
{
return true;
}
/**
* 卸载方法
* @return bool
*/
public static function uninstall()
{
return true;
}
/**
* 升级方法
* @return bool
*/
public static function upgrade()
{
SettingModel::where('key','subscribe')->delete();
Cache::clear(); //清空缓存
return true;
}
}