PicHome2.0

This commit is contained in:
zyx0814
2024-01-31 01:00:33 +08:00
Unverified
parent 123eaa9740
commit a83f9dce87
1332 changed files with 399412 additions and 57367 deletions

View File

@@ -121,7 +121,22 @@ function build_cache_setting() {
}
$data['verhash']=random(3);
foreach(C::t('pichome_theme')->fech_all_theme() as $v){
$data['pichomethemedata'][$v['id']] = $v;
}
//获取默认存储位置
$space = C::t('connect_storage')->fetch_default_space();
$hostdataarr = explode(':',$space['hostname']);
$defaultspacesettingdata = [
'bucket'=>$space['bucket'],
'bz'=>$space['bz'],
'remoteid'=>$space['id'],
'region'=> ($space['bz'] == 'ALIOSS') ? $space['hostname']:$hostdataarr[1],
'did'=>$space['id'],
'host'=>$space['host'],
];
$data['defaultspacesetting'] = $defaultspacesettingdata;
$data['output'] = $output;
savecache('setting', $data);