57 lines
1.9 KiB
PHP
57 lines
1.9 KiB
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
|
// +----------------------------------------------------------------------
|
|
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
|
// | 开源版本可自由商用,可去除界面版权logo
|
|
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
|
// | github下载:https://github.com/likeshop-github/likeadmin
|
|
// | 访问官网:https://www.likeadmin.cn
|
|
// | likeadmin团队 版权所有 拥有最终解释权
|
|
// +----------------------------------------------------------------------
|
|
// | author: likeadminTeam
|
|
// +----------------------------------------------------------------------
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace app\adminapi\controller\setting;
|
|
|
|
use app\adminapi\controller\BaseAdminController;
|
|
use app\adminapi\logic\setting\DesktopWorkstationLogic;
|
|
use app\adminapi\validate\setting\DesktopWorkstationValidate;
|
|
|
|
/**
|
|
* 医生工作站桌面端升级
|
|
*/
|
|
class DesktopWorkstationController extends BaseAdminController
|
|
{
|
|
public array $notNeedLogin = ['check'];
|
|
|
|
/**
|
|
* @notes 读取升级策略与安装包
|
|
*/
|
|
public function getConfig()
|
|
{
|
|
return $this->data(DesktopWorkstationLogic::getConfig());
|
|
}
|
|
|
|
/**
|
|
* @notes 保存升级策略与安装包
|
|
*/
|
|
public function setConfig()
|
|
{
|
|
$params = (new DesktopWorkstationValidate())->post()->goCheck();
|
|
DesktopWorkstationLogic::setConfig($params);
|
|
return $this->success('设置成功', [], 1, 1);
|
|
}
|
|
|
|
/**
|
|
* @notes 桌面端检测更新(免登录)
|
|
*/
|
|
public function check()
|
|
{
|
|
$result = DesktopWorkstationLogic::check($this->request->get());
|
|
return $this->data($result);
|
|
}
|
|
}
|