插件/主题打包新增版本号
parent
6517312b5f
commit
ae2c7ef035
|
|
@ -380,7 +380,7 @@ class AppMiniService
|
||||||
// 开始下载
|
// 开始下载
|
||||||
$appmini_type = lang('common_appmini_type');
|
$appmini_type = lang('common_appmini_type');
|
||||||
$application_name = array_key_exists(self::$application_name, $appmini_type) ? $appmini_type[self::$application_name]['name'].'-' : '';
|
$application_name = array_key_exists(self::$application_name, $appmini_type) ? $appmini_type[self::$application_name]['name'].'-' : '';
|
||||||
if(\base\FileUtil::DownloadFile($new_dir.'.zip', $application_name.$config['name'].'.zip'))
|
if(\base\FileUtil::DownloadFile($new_dir.'.zip', $application_name.$config['name'].'_v'.$config['ver'].'.zip'))
|
||||||
{
|
{
|
||||||
@unlink($new_dir.'.zip');
|
@unlink($new_dir.'.zip');
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ class ConfigService
|
||||||
'home_index_floor_left_top_category',
|
'home_index_floor_left_top_category',
|
||||||
'admin_email_login_template',
|
'admin_email_login_template',
|
||||||
'home_email_login_template',
|
'home_email_login_template',
|
||||||
|
'home_site_security_record_url',
|
||||||
];
|
];
|
||||||
|
|
||||||
// 附件字段列表
|
// 附件字段列表
|
||||||
|
|
|
||||||
|
|
@ -1402,7 +1402,7 @@ php;
|
||||||
\base\FileUtil::UnlinkDir($new_dir);
|
\base\FileUtil::UnlinkDir($new_dir);
|
||||||
|
|
||||||
// 开始下载
|
// 开始下载
|
||||||
if(\base\FileUtil::DownloadFile($new_dir.'.zip', $config['base']['name'].'.zip'))
|
if(\base\FileUtil::DownloadFile($new_dir.'.zip', $config['base']['name'].'_v'.$config['base']['version'].'.zip'))
|
||||||
{
|
{
|
||||||
// 删除文件
|
// 删除文件
|
||||||
@unlink($new_dir.'.zip');
|
@unlink($new_dir.'.zip');
|
||||||
|
|
|
||||||
|
|
@ -376,7 +376,7 @@ class ThemeService
|
||||||
\base\FileUtil::UnlinkDir($new_dir);
|
\base\FileUtil::UnlinkDir($new_dir);
|
||||||
|
|
||||||
// 开始下载
|
// 开始下载
|
||||||
if(\base\FileUtil::DownloadFile($new_dir.'.zip', $config['name'].'.zip'))
|
if(\base\FileUtil::DownloadFile($new_dir.'.zip', $config['name'].'_v'.$config['ver'].'.zip'))
|
||||||
{
|
{
|
||||||
@unlink($new_dir.'.zip');
|
@unlink($new_dir.'.zip');
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue