|
@@ -1017,14 +1017,14 @@ class Talent extends EnterpriseController {
|
|
$height = imagesy($file);
|
|
$height = imagesy($file);
|
|
//免冠二寸照长宽413:579
|
|
//免冠二寸照长宽413:579
|
|
if ($width * 579 != $height * 413) {
|
|
if ($width * 579 != $height * 413) {
|
|
- @unlink("storage/" . $result->filepath); //像素不符合,删除上传文件
|
|
|
|
|
|
+ //@unlink("storage/" . $result->filepath); //像素不符合,删除上传文件
|
|
throw new ValidateException("近期免冠半身彩照(二寸)不符合二寸像素标准。*<span style='color:#ff0000;'>二寸像素标准[413*579]</span>");
|
|
throw new ValidateException("近期免冠半身彩照(二寸)不符合二寸像素标准。*<span style='color:#ff0000;'>二寸像素标准[413*579]</span>");
|
|
}
|
|
}
|
|
if ($info && $info["headimgurl"]) {
|
|
if ($info && $info["headimgurl"]) {
|
|
//如果新照片符合像素要求,则删除旧照片
|
|
//如果新照片符合像素要求,则删除旧照片
|
|
$old_head_url = "storage/" . $info["headimgurl"];
|
|
$old_head_url = "storage/" . $info["headimgurl"];
|
|
- if (file_exists($old_head_url))
|
|
|
|
- @unlink($old_head_url);
|
|
|
|
|
|
+ //if (file_exists($old_head_url))
|
|
|
|
+ //@unlink($old_head_url);
|
|
}
|
|
}
|
|
$data["headimgurl"] = $result->filepath;
|
|
$data["headimgurl"] = $result->filepath;
|
|
}
|
|
}
|
|
@@ -1210,7 +1210,7 @@ class Talent extends EnterpriseController {
|
|
$_logfileIds[] = [];
|
|
$_logfileIds[] = [];
|
|
foreach ($_wait_del_files as $_del_file) {
|
|
foreach ($_wait_del_files as $_del_file) {
|
|
$_logfileIds[] = $_del_file["id"];
|
|
$_logfileIds[] = $_del_file["id"];
|
|
- @unlink("storage/" . $_del_file["url"]);
|
|
|
|
|
|
+ //@unlink("storage/" . $_del_file["url"]);
|
|
}
|
|
}
|
|
Db::table("new_talent_file")->where($whr)->delete();
|
|
Db::table("new_talent_file")->where($whr)->delete();
|
|
if ($_logfileIds) {
|
|
if ($_logfileIds) {
|
|
@@ -1283,14 +1283,14 @@ class Talent extends EnterpriseController {
|
|
$height = imagesy($file);
|
|
$height = imagesy($file);
|
|
//免冠二寸照长宽413:579
|
|
//免冠二寸照长宽413:579
|
|
if ($width * 579 != $height * 413) {
|
|
if ($width * 579 != $height * 413) {
|
|
- @unlink("storage/" . $result->filepath); //像素不符合,删除上传文件
|
|
|
|
|
|
+ //@unlink("storage/" . $result->filepath); //像素不符合,删除上传文件
|
|
throw new ValidateException("近期免冠半身彩照(二寸)不符合二寸像素标准。*<span style='color:#ff0000;'>二寸像素标准[413*579]</span>");
|
|
throw new ValidateException("近期免冠半身彩照(二寸)不符合二寸像素标准。*<span style='color:#ff0000;'>二寸像素标准[413*579]</span>");
|
|
}
|
|
}
|
|
if ($info && $info["headimgurl"]) {
|
|
if ($info && $info["headimgurl"]) {
|
|
//如果新照片符合像素要求,则删除旧照片
|
|
//如果新照片符合像素要求,则删除旧照片
|
|
$old_head_url = "storage/" . $info["headimgurl"];
|
|
$old_head_url = "storage/" . $info["headimgurl"];
|
|
- if (file_exists($old_head_url))
|
|
|
|
- @unlink($old_head_url);
|
|
|
|
|
|
+ //if (file_exists($old_head_url))
|
|
|
|
+ //@unlink($old_head_url);
|
|
}
|
|
}
|
|
$data["headimgurl"] = $result->filepath;
|
|
$data["headimgurl"] = $result->filepath;
|
|
}
|
|
}
|
|
@@ -1436,14 +1436,14 @@ class Talent extends EnterpriseController {
|
|
$height = imagesy($file);
|
|
$height = imagesy($file);
|
|
//免冠二寸照长宽413:579
|
|
//免冠二寸照长宽413:579
|
|
if ($width * 579 != $height * 413) {
|
|
if ($width * 579 != $height * 413) {
|
|
- @unlink("storage/" . $result->filepath); //像素不符合,删除上传文件
|
|
|
|
|
|
+ //@unlink("storage/" . $result->filepath); //像素不符合,删除上传文件
|
|
throw new ValidateException("近期免冠半身彩照(二寸)不符合二寸像素标准。*<span style='color:#ff0000;'>二寸像素标准[413*579]</span>");
|
|
throw new ValidateException("近期免冠半身彩照(二寸)不符合二寸像素标准。*<span style='color:#ff0000;'>二寸像素标准[413*579]</span>");
|
|
}
|
|
}
|
|
if ($info && $info["headimgurl"]) {
|
|
if ($info && $info["headimgurl"]) {
|
|
//如果新照片符合像素要求,则删除旧照片
|
|
//如果新照片符合像素要求,则删除旧照片
|
|
$old_head_url = "storage/" . $info["headimgurl"];
|
|
$old_head_url = "storage/" . $info["headimgurl"];
|
|
- if (file_exists($old_head_url))
|
|
|
|
- @unlink($old_head_url);
|
|
|
|
|
|
+ //if (file_exists($old_head_url))
|
|
|
|
+ //@unlink($old_head_url);
|
|
}
|
|
}
|
|
$data["headimgurl"] = $result->filepath;
|
|
$data["headimgurl"] = $result->filepath;
|
|
}
|
|
}
|
|
@@ -1580,14 +1580,14 @@ class Talent extends EnterpriseController {
|
|
$height = imagesy($file);
|
|
$height = imagesy($file);
|
|
//免冠二寸照长宽413:579
|
|
//免冠二寸照长宽413:579
|
|
if ($width * 579 != $height * 413) {
|
|
if ($width * 579 != $height * 413) {
|
|
- @unlink("storage/" . $result->filepath); //像素不符合,删除上传文件
|
|
|
|
|
|
+ //@unlink("storage/" . $result->filepath); //像素不符合,删除上传文件
|
|
throw new ValidateException("近期免冠半身彩照(二寸)不符合二寸像素标准。*<span style='color:#ff0000;'>二寸像素标准[413*579]</span>");
|
|
throw new ValidateException("近期免冠半身彩照(二寸)不符合二寸像素标准。*<span style='color:#ff0000;'>二寸像素标准[413*579]</span>");
|
|
}
|
|
}
|
|
if ($info && $info["headimgurl"]) {
|
|
if ($info && $info["headimgurl"]) {
|
|
//如果新照片符合像素要求,则删除旧照片
|
|
//如果新照片符合像素要求,则删除旧照片
|
|
$old_head_url = "storage/" . $info["headimgurl"];
|
|
$old_head_url = "storage/" . $info["headimgurl"];
|
|
- if (file_exists($old_head_url))
|
|
|
|
- @unlink($old_head_url);
|
|
|
|
|
|
+ //if (file_exists($old_head_url))
|
|
|
|
+ //@unlink($old_head_url);
|
|
}
|
|
}
|
|
$data["headimgurl"] = $result->filepath;
|
|
$data["headimgurl"] = $result->filepath;
|
|
}
|
|
}
|