mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 10:25:35 +08:00
23 lines
699 B
PHP
23 lines
699 B
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
|
||
class image_task
|
||
{
|
||
function post_install()
|
||
{
|
||
kernel::log('Initial image');
|
||
kernel::single('base_initial', 'image')->init();
|
||
$conf = app::get('image')->getConf('image.default.set');
|
||
app::get('image')->setConf('image.set',$conf);
|
||
$obj_image = app::get('image')->model('image');
|
||
$app_dir = app::get('image')->app_dir;
|
||
foreach($conf as $item){
|
||
$obj_image->store($app_dir.'/initial/default_images/'.$item['default_image'].'.gif',$item['default_image']);
|
||
}
|
||
}//End Function
|
||
}//End Class
|