From b71de6418d024ab93813ad69037ec3ec2c16990e Mon Sep 17 00:00:00 2001 From: xiaoz Date: Tue, 6 Nov 2018 19:34:49 +0800 Subject: [PATCH] fix bug --- functions/cvupload.php | 9 ++++++++- functions/version.txt | 2 +- tpl/user/install1.php | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/functions/cvupload.php b/functions/cvupload.php index 0a596eb..505189a 100644 --- a/functions/cvupload.php +++ b/functions/cvupload.php @@ -24,7 +24,14 @@ $picname = md5($ip.$ua.date('Y-m-d H:i:s',time())); //截取16个字符 $picname = substr($picname,8,16).'.png'; - $onepath = $updir.'/'.date('ym',time()).'/'.$picname; + //本月图片路径 + $monthdir = APP.$updir.'/'.date('ym',time()); + + $onepath = $updir.'/'.date('ym',time()).'/'.$picname; + //路径不存在,则创建路径 + if(!file_exists($monthdir)){ + mkdir($monthdir,0777); + } //图片完整存储路径 $picpath = APP.$onepath; diff --git a/functions/version.txt b/functions/version.txt index c4cfb36..ac20a94 100644 --- a/functions/version.txt +++ b/functions/version.txt @@ -1 +1 @@ -v1.31(20180924) \ No newline at end of file +v1.40(20181106) \ No newline at end of file diff --git a/tpl/user/install1.php b/tpl/user/install1.php index 04d1e17..833264f 100644 --- a/tpl/user/install1.php +++ b/tpl/user/install1.php @@ -11,7 +11,7 @@ - 目录 + 目录/说明 要求 检测结果 @@ -28,7 +28,7 @@ - 组建 + 组件 pdo_sqlite