Skip to content

Commit b71de64

Browse files
committed
fix bug
1 parent 3c91867 commit b71de64

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

functions/cvupload.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@
2424
$picname = md5($ip.$ua.date('Y-m-d H:i:s',time()));
2525
//截取16个字符
2626
$picname = substr($picname,8,16).'.png';
27-
$onepath = $updir.'/'.date('ym',time()).'/'.$picname;
27+
//本月图片路径
28+
$monthdir = APP.$updir.'/'.date('ym',time());
29+
30+
$onepath = $updir.'/'.date('ym',time()).'/'.$picname;
31+
//路径不存在,则创建路径
32+
if(!file_exists($monthdir)){
33+
mkdir($monthdir,0777);
34+
}
2835
//图片完整存储路径
2936
$picpath = APP.$onepath;
3037

functions/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.31(20180924)
1+
v1.40(20181106)

tpl/user/install1.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</colgroup>
1212
<thead>
1313
<tr>
14-
<th>目录</th>
14+
<th>目录/说明</th>
1515
<th>要求</th>
1616
<th>检测结果</th>
1717
</tr>
@@ -28,7 +28,7 @@
2828
<td><?php echo $statusarr['db']; ?></td>
2929
</tr>
3030
<tr>
31-
<td>组建</td>
31+
<td>组件</td>
3232
<td>pdo_sqlite </td>
3333
<td><?php echo $statusarr['pdo']; ?></td>
3434
</tr>

0 commit comments

Comments
 (0)