Files
OMS/app/image/task.php
2025-12-28 23:13:25 +08:00

23 lines
699 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.
*/
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