Files
OMS/app/ome/lib/tgservice/version/basic.php
2025-12-28 23:13:25 +08:00

33 lines
933 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
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* 淘管基础版
*
* @package default
* @author
**/
class ome_tgservice_version_basic extends ome_tgservice_version_abstract implements ome_tgservice_version_interface{
protected $release_version = 'tg';
const VERSION = 'basic';
public function install($params = array(),&$sass_params = array(),&$msg,&$is_callback = false){
parent::install($params ,$sass_params ,$msg ,$is_callback);
if(!empty($this->deploy_info['version'][self::VERSION])){
foreach((array)$this->deploy_info['version'][self::VERSION] as $app){
if(!app::get($app)->is_installed()){
$this->shell->exec_command(sprintf("install %s",$app));
}
}
}
return true;
}
}