no message

master
notte 2018-07-19 17:51:15 +08:00
parent c54b21440e
commit bfb936a814
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class Index extends Common
private function localUpload($file) private function localUpload($file)
{ {
if($file) { if($file) {
$date = date('Y-m-d', time()); $date = date('Y/m/d', time());
$info = $file->validate(['size'=> $this->conf['upload_max_filesize'] * 1024, 'ext'=> $this->conf['upload_images_ext']])->rule('uniqid')->move("{$this->conf['file_path']}/" . $date); $info = $file->validate(['size'=> $this->conf['upload_max_filesize'] * 1024, 'ext'=> $this->conf['upload_images_ext']])->rule('uniqid')->move("{$this->conf['file_path']}/" . $date);
if($info) { if($info) {
$file_path = str_replace("\\", "/", Config::get('web.domain') . "/{$date}/{$info->getSaveName()}"); $file_path = str_replace("\\", "/", Config::get('web.domain') . "/{$date}/{$info->getSaveName()}");