cxhxy/app/admin/controller/Hemaphp.php
test_service d3170b4d1c 1
2023-12-01 15:43:29 +08:00

1 line
651 B
PHP
Executable File

<?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;
}
}