Commit d8937d9a authored by hujun's avatar hujun

url

parent 8b2b759c
......@@ -39,8 +39,12 @@ class UploadWorkLearning extends Basic
$tmp_file = time();
$img_name = md5(uniqid($tmp_file)) . '.' . $img_title;//图片名
$url = 'static/week_work_img/' .date('Ymd').'/'. $img_name;
$url = 'static/week_work_img/' .date('Ymd');
if (!file_exists($url)) {
mkdir($url);
}
$url .= '/'. $img_name;
$code = 200;
$msg = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment