|
@@ -44,6 +44,7 @@ class Api extends EnterpriseController {
|
|
|
public function toAdd() {
|
|
|
$ep = Enterprise::where('id', session("user")["uid"])->find();
|
|
|
$ecr = [
|
|
|
+ "special" => $ep["special"],
|
|
|
'enterprise_id' => $ep['id'],
|
|
|
'newName' => $ep['name'],
|
|
|
'newIdCard' => $ep['idCard'],
|
|
@@ -111,14 +112,13 @@ class Api extends EnterpriseController {
|
|
|
default:
|
|
|
$ecr['checkStateName'] = '';
|
|
|
}
|
|
|
-
|
|
|
//20220918增加根据不同的企业类型显示不同的信息变更界面
|
|
|
switch ($ep->special) {
|
|
|
case 0:
|
|
|
return view("", ['ecr' => $ecr]);
|
|
|
break;
|
|
|
case 1:
|
|
|
- return view("to_add1", ['ecr' => $ecr]);
|
|
|
+ return view("", ['ecr' => $ecr]);
|
|
|
break;
|
|
|
default:
|
|
|
|
|
@@ -159,7 +159,11 @@ class Api extends EnterpriseController {
|
|
|
$ep = Enterprise::where('id', session("user")["uid"])->find();
|
|
|
switch ($ep->special) {
|
|
|
case 0:
|
|
|
- validate(\app\common\validate\Enterprise::class)->batch(true)->scene('change')->check($data);
|
|
|
+ if ($ep->type == 2) {
|
|
|
+ validate(\app\common\validate\Enterprise::class)->batch(true)->scene('jc_change')->check($data);
|
|
|
+ } else {
|
|
|
+ validate(\app\common\validate\Enterprise::class)->batch(true)->scene('change')->check($data);
|
|
|
+ }
|
|
|
break;
|
|
|
case 1:
|
|
|
validate(\app\common\validate\Enterprise::class)->batch(true)->scene('sy_change')->check($data);
|
|
@@ -216,6 +220,10 @@ class Api extends EnterpriseController {
|
|
|
'createTime' => date("Y-m-d H:i:s", time()),
|
|
|
'createUser' => session("user")["uid"]
|
|
|
];
|
|
|
+ $record_data["newImgurl"] = $ep["imgurl"];
|
|
|
+ $record_data["newBankImg"] = $ep["bankImg"];
|
|
|
+ $record_data["newDomainImg"] = $ep["domainImg"];
|
|
|
+ $record_data["newBeian"] = $ep["beian"];
|
|
|
$files = $this->request->file();
|
|
|
if ($files) {
|
|
|
$uploadapi = new UploadApi();
|
|
@@ -225,8 +233,6 @@ class Api extends EnterpriseController {
|
|
|
return \StrUtil::back($upload_result, "EpChangeEdit.callBack");
|
|
|
}
|
|
|
$record_data["newImgurl"] = $upload_result->filepath;
|
|
|
- } else {
|
|
|
- $record_data["newImgurl"] = $ep["imgurl"];
|
|
|
}
|
|
|
|
|
|
//检验附件 开户许可证
|
|
@@ -236,8 +242,6 @@ class Api extends EnterpriseController {
|
|
|
return \StrUtil::back($upload_result1, "EpChangeEdit.callBack");
|
|
|
}
|
|
|
$record_data["newBankImg"] = $upload_result1->filepath;
|
|
|
- } else {
|
|
|
- $record_data["newBankImg"] = $ep["bankImg"];
|
|
|
}
|
|
|
|
|
|
//检验附件 行业领域佐证材料
|
|
@@ -247,8 +251,6 @@ class Api extends EnterpriseController {
|
|
|
return \StrUtil::back($upload_result2, "EpChangeEdit.callBack");
|
|
|
}
|
|
|
$record_data["newDomainImg"] = $upload_result2->filepath;
|
|
|
- } else {
|
|
|
- $record_data["newDomainImg"] = $ep["domainImg"];
|
|
|
}
|
|
|
|
|
|
//检验附件 人才联络员备案表
|
|
@@ -258,10 +260,22 @@ class Api extends EnterpriseController {
|
|
|
return \StrUtil::back($upload_result3, "EpChangeEdit.callBack");
|
|
|
}
|
|
|
$record_data["newBeian"] = $upload_result3->filepath;
|
|
|
- } else {
|
|
|
- $record_data["newBeian"] = $ep["beian"];
|
|
|
}
|
|
|
}
|
|
|
+ if (!$record_data["newImgurl"]) {
|
|
|
+ throw new ValidateException("请上传营业执照");
|
|
|
+ }
|
|
|
+ if ($ep->special == 0) {
|
|
|
+ if (!$record_data["newBankImg"]) {
|
|
|
+ throw new ValidateException("请上传开户许可证");
|
|
|
+ }
|
|
|
+ if ($ep->type == 1 && !$record_data["newDomainImg"]) {
|
|
|
+ throw new ValidateException("请上传行业领域佐证材料");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!$record_data["newBeian"]) {
|
|
|
+ throw new ValidateException("请上传人才联络员信息备案表");
|
|
|
+ }
|
|
|
EnterpriseRecord::create($record_data);
|
|
|
$log = [
|
|
|
'id' => getStringId(),
|
|
@@ -322,58 +336,77 @@ class Api extends EnterpriseController {
|
|
|
$record[$fields[$i]] = $data[$key]; //仅可修改选择的字段
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ $record["newImgurl"] = $record["newImgurl"] ?: $ep["imgurl"];
|
|
|
+ $record["newBankImg"] = $record["newBankImg"] ?: $ep["bankImg"];
|
|
|
+ $record["newDomainImg"] = $record["newDomainImg"] ?: $ep["domainImg"];
|
|
|
+ $record["newBeian"] = $record["newBeian"] ?: $ep["beian"];
|
|
|
$files = $this->request->file();
|
|
|
if ($files) {
|
|
|
$uploadapi = new UploadApi();
|
|
|
$modify_files = array_filter(explode(",", $record->modify_files));
|
|
|
- $uploadAllowed = $record->checkState == 1 || ($record->checkState != 1 && in_array("imgurl", $modify_files)) ? true : false;
|
|
|
+ if (strtotime($record->createTime) < strtotime("2022-10-14 23:59:59")) {
|
|
|
+ //旧typeid需要转换成新的禁用文件格式
|
|
|
+ $oldtypes = ["1161965644164075522" => "newImgurl", "1518753449987148467" => "newImgurl", "1518328155588131269" => "newBankImg", "1518926324960220206" => "newBankImg",
|
|
|
+ "1518941016720463523" => "newDomainImg", "1519109971871948101" => "newBeian", "1519185486755815382" => "newBeian"];
|
|
|
+ foreach ($modify_files as $key => $_typeId) {
|
|
|
+ if ($oldtypes[$_typeId]) {
|
|
|
+ $modify_files[$key] = $oldtypes[$_typeId];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $uploadAllowed = $record->checkState == 1 || ($record->checkState != 1 && in_array("newImgurl", $modify_files)) ? true : false;
|
|
|
if (array_key_exists('imgurl', $files) && $uploadAllowed) {
|
|
|
$upload_result = $uploadapi->uploadOne($this->request->file('imgurl'), 'system');
|
|
|
if ($upload_result->code == 500) {
|
|
|
return \StrUtil::back($upload_result, "EpChangeEdit.callBack");
|
|
|
}
|
|
|
$record["newImgurl"] = $upload_result->filepath;
|
|
|
- } else {
|
|
|
- $record["newImgurl"] = $ep["imgurl"];
|
|
|
}
|
|
|
|
|
|
//检验附件 开户许可证
|
|
|
- $uploadAllowed = $record->checkState == 1 || ($record->checkState != 1 && in_array("bankImg", $modify_files)) ? true : false;
|
|
|
+ $uploadAllowed = $record->checkState == 1 || ($record->checkState != 1 && in_array("newBankImg", $modify_files)) ? true : false;
|
|
|
if (array_key_exists('bankImg', $files) && $uploadAllowed) {
|
|
|
$upload_result1 = $uploadapi->uploadOne($this->request->file('bankImg'), 'system');
|
|
|
if ($upload_result1->code == 500) {
|
|
|
return \StrUtil::back($upload_result1, "EpChangeEdit.callBack");
|
|
|
}
|
|
|
$record["newBankImg"] = $upload_result1->filepath;
|
|
|
- } else {
|
|
|
- $record["newBankImg"] = $ep["bankImg"];
|
|
|
}
|
|
|
|
|
|
//检验附件 行业领域佐证材料
|
|
|
- $uploadAllowed = $record->checkState == 1 || ($record->checkState != 1 && in_array("domainImg", $modify_files)) ? true : false;
|
|
|
+ $uploadAllowed = $record->checkState == 1 || ($record->checkState != 1 && in_array("newDomainImg", $modify_files)) ? true : false;
|
|
|
if (array_key_exists('domainImg', $files) && $uploadAllowed) {
|
|
|
$upload_result2 = $uploadapi->uploadOne($this->request->file('domainImg'), 'system');
|
|
|
if ($upload_result2->code == 500) {
|
|
|
return \StrUtil::back($upload_result2, "EpChangeEdit.callBack");
|
|
|
}
|
|
|
$record["newDomainImg"] = $upload_result2->filepath;
|
|
|
- } else {
|
|
|
- $record["newDomainImg"] = $ep["domainImg"];
|
|
|
}
|
|
|
|
|
|
//检验附件 人才联络员备案表
|
|
|
- $uploadAllowed = $record->checkState == 1 || ($record->checkState != 1 && in_array("beian", $modify_files)) ? true : false;
|
|
|
+ $uploadAllowed = $record->checkState == 1 || ($record->checkState != 1 && in_array("newBeian", $modify_files)) ? true : false;
|
|
|
if (array_key_exists('beian', $files) && $uploadAllowed) {
|
|
|
$upload_result3 = $uploadapi->uploadOne($this->request->file('beian'), 'system');
|
|
|
if ($upload_result3->code == 500) {
|
|
|
return \StrUtil::back($upload_result3, "EpChangeEdit.callBack");
|
|
|
}
|
|
|
$record["newBeian"] = $upload_result3->filepath;
|
|
|
- } else {
|
|
|
- $record["newBeian"] = $ep["beian"];
|
|
|
}
|
|
|
}
|
|
|
+ if (!$record["newImgurl"]) {
|
|
|
+ throw new ValidateException("请上传营业执照");
|
|
|
+ }
|
|
|
+ if ($ep->special == 0) {
|
|
|
+ if (!$record["newBankImg"]) {
|
|
|
+ throw new ValidateException("请上传开户许可证");
|
|
|
+ }
|
|
|
+ if ($ep->type == 1 && !$record["newDomainImg"]) {
|
|
|
+ throw new ValidateException("请上传行业领域佐证材料");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!$record["newBeian"]) {
|
|
|
+ throw new ValidateException("请上传人才联络员信息备案表");
|
|
|
+ }
|
|
|
|
|
|
$record->updateTime = date("Y-m-d H:i:s");
|
|
|
$record->updateUser = session("user")["uid"];
|
|
@@ -405,7 +438,7 @@ class Api extends EnterpriseController {
|
|
|
//return json($res);
|
|
|
} catch (ValidateException $e) {
|
|
|
$response_object->code = 500;
|
|
|
- $response_object->msg = implode("<br>",$e->getError());
|
|
|
+ $response_object->msg = is_array($e->getError()) ? implode("<br>", $e->getError()) : $e->getError();
|
|
|
return \StrUtil::back($response_object, "EpChangeEdit.callBack");
|
|
|
//return json(["msg" => array_pop($error), 'code' => 500]);
|
|
|
}
|
|
@@ -415,13 +448,37 @@ class Api extends EnterpriseController {
|
|
|
$id = trim($this->request['id']);
|
|
|
$ecr = EnterpriseRecord::findOrEmpty($id);
|
|
|
$ep = Enterprise::where('id', $ecr->mainId)->find();
|
|
|
-
|
|
|
+ $ecr["special"] = $ep["special"];
|
|
|
+ if ($ecr["newImgurl"]) {
|
|
|
+ $extension = pathinfo($ecr["newImgurl"])["extension"];
|
|
|
+ if (in_array($extension, ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["imgurl_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($ecr["newBankImg"]) {
|
|
|
+ $extension = pathinfo($ecr["newBankImg"])["extension"];
|
|
|
+ if (in_array($extension, ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["bankImg_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($ecr["newDomainImg"]) {
|
|
|
+ $extension = pathinfo($ecr["newDomainImg"])["extension"];
|
|
|
+ if (in_array($extension, ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["domainImg_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($ecr["newBeian"]) {
|
|
|
+ $extension = pathinfo($ecr["newBeian"])["extension"];
|
|
|
+ if (in_array($extension, ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["beian_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
switch ($ep->special) {
|
|
|
case 0:
|
|
|
return view("", ['ecr' => $ecr]);
|
|
|
break;
|
|
|
case 1:
|
|
|
- return view("to_update1", ['ecr' => $ecr]);
|
|
|
+ return view("", ['ecr' => $ecr]);
|
|
|
break;
|
|
|
default:
|
|
|
|
|
@@ -446,38 +503,38 @@ class Api extends EnterpriseController {
|
|
|
|
|
|
$ep = EnterpriseApi::getOne($obj->mainId);
|
|
|
|
|
|
- //20220918增加根据不同的企业类型显示不同的信息变更界面
|
|
|
- switch ($ep->special) {
|
|
|
- case 0:
|
|
|
- $org_type = 'enterpriseChange';
|
|
|
- break;
|
|
|
- case 1:
|
|
|
- $org_type = 'governmentChange';
|
|
|
- break;
|
|
|
- default:
|
|
|
-
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- $list = CurrentcyFileType::where('type', $org_type)->where('active', 1)->select();
|
|
|
- if (!$list || count($list) <= 0) {
|
|
|
- return json(['msg' => '缺少附件', 'code' => 500]);
|
|
|
- }
|
|
|
- $error_msg = "";
|
|
|
- foreach ($list as $k => $v) {
|
|
|
- if ($v['must'] == 1) {
|
|
|
- $count = TalentCommonFile::where('mainId', $id)->where('typeId', $v['id'])->count();
|
|
|
- if ($count == 0) {
|
|
|
- if (strlen($error_msg) == 0) {
|
|
|
- $error_msg = "以下为必传附件:";
|
|
|
- }
|
|
|
- $error_msg .= $v['name'] . ";";
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if (strlen($error_msg) > 0) {
|
|
|
- return json(['msg' => $error_msg, 'code' => 500]);
|
|
|
- }
|
|
|
+ //20220918增加根据不同的企业类型显示不同的信息变更界面|20221014废弃使用filetype
|
|
|
+ /* switch ($ep->special) {
|
|
|
+ case 0:
|
|
|
+ $org_type = 'enterpriseChange';
|
|
|
+ break;
|
|
|
+ case 1:
|
|
|
+ $org_type = 'governmentChange';
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ $list = CurrentcyFileType::where('type', $org_type)->where('active', 1)->select();
|
|
|
+ if (!$list || count($list) <= 0) {
|
|
|
+ return json(['msg' => '缺少附件', 'code' => 500]);
|
|
|
+ }
|
|
|
+ $error_msg = "";
|
|
|
+ foreach ($list as $k => $v) {
|
|
|
+ if ($v['must'] == 1) {
|
|
|
+ $count = TalentCommonFile::where('mainId', $id)->where('typeId', $v['id'])->count();
|
|
|
+ if ($count == 0) {
|
|
|
+ if (strlen($error_msg) == 0) {
|
|
|
+ $error_msg = "以下为必传附件:";
|
|
|
+ }
|
|
|
+ $error_msg .= $v['name'] . ";";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (strlen($error_msg) > 0) {
|
|
|
+ return json(['msg' => $error_msg, 'code' => 500]);
|
|
|
+ } */
|
|
|
if ($obj['checkState'] == 3) {
|
|
|
$obj['checkState'] = 5;
|
|
|
$state = 5;
|
|
@@ -512,9 +569,127 @@ class Api extends EnterpriseController {
|
|
|
$ecr = EnterpriseRecord::find($id);
|
|
|
$ep = EnterpriseApi::getOne($ecr['mainId']);
|
|
|
$streetList = DictApi::selectByParentCode('street');
|
|
|
+ $ecr["special"] = $ep["special"];
|
|
|
$ecr['oldStreetName'] = $streetList[$ecr['oldStreet']];
|
|
|
$ecr['newStreetName'] = $streetList[$ecr['newStreet']];
|
|
|
//20220918增加根据不同的企业类型显示不同的信息变更界面
|
|
|
+ $time = "2022-10-14 23:59:59";
|
|
|
+ //营业执照
|
|
|
+ if (!$ecr["oldImgurl"]) {
|
|
|
+ $ecr["oldImgurl"] = $ep["imgurl"];
|
|
|
+ }
|
|
|
+ if ($ecr["oldImgurl"]) {
|
|
|
+ $pathinfo = pathinfo($ecr["oldImgurl"]);
|
|
|
+ if (in_array($pathinfo["extension"], ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["oldImgurl_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!$ecr["newImgurl"]) {
|
|
|
+ //兼容旧filetype
|
|
|
+ if (strtotime($ecr["createTime"]) < strtotime($time)) {
|
|
|
+ $where = [];
|
|
|
+ $where[] = ["mainId", "=", $id];
|
|
|
+ $where[] = ["api", "=", "businessLicense"];
|
|
|
+ $where[] = ["active", "=", 1];
|
|
|
+ $_uploadFile = TalentCommonFile::alias("tcf")->leftJoin("new_currency_filetype ft", "ft.id=tcf.typeId")->where($where)->order("createTime desc")->find();
|
|
|
+ if ($_uploadFile) {
|
|
|
+ $ecr["newImgurl"] = $_uploadFile["url"];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($ecr["newImgurl"]) {
|
|
|
+ $pathinfo = pathinfo($ecr["newImgurl"]);
|
|
|
+ if (in_array($pathinfo["extension"], ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["newImgurl_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //备案表
|
|
|
+ if (!$ecr["oldBeian"]) {
|
|
|
+ $ecr["oldBeian"] = $ep["beian"];
|
|
|
+ }
|
|
|
+ if ($ecr["oldBeian"]) {
|
|
|
+ $pathinfo = pathinfo($ecr["oldBeian"]);
|
|
|
+ if (in_array($pathinfo["extension"], ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["oldBeian_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!$ecr["newBeian"]) {
|
|
|
+ //兼容旧filetype
|
|
|
+ if (strtotime($ecr["createTime"]) < strtotime($time)) {
|
|
|
+ $where = [];
|
|
|
+ $where[] = ["mainId", "=", $id];
|
|
|
+ $where[] = ["api", "=", "businessBeian"];
|
|
|
+ $where[] = ["active", "=", 1];
|
|
|
+ $_uploadFile = TalentCommonFile::alias("tcf")->leftJoin("new_currency_filetype ft", "ft.id=tcf.typeId")->where($where)->order("createTime desc")->find();
|
|
|
+ if ($_uploadFile) {
|
|
|
+ $ecr["newBeian"] = $_uploadFile["url"];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($ecr["newBeian"]) {
|
|
|
+ $pathinfo = pathinfo($ecr["newBeian"]);
|
|
|
+ if (in_array($pathinfo["extension"], ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["newBeian_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //行业领域
|
|
|
+ if (!$ecr["oldDomainImg"]) {
|
|
|
+ $ecr["oldDomainImg"] = $ep["domainImg"];
|
|
|
+ }
|
|
|
+ if ($ecr["oldDomainImg"]) {
|
|
|
+ $pathinfo = pathinfo($ecr["oldDomainImg"]);
|
|
|
+ if (in_array($pathinfo["extension"], ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["oldDomainImg_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!$ecr["newDomainImg"]) {
|
|
|
+ //兼容旧filetype
|
|
|
+ if (strtotime($ecr["createTime"]) < strtotime($time)) {
|
|
|
+ $where = [];
|
|
|
+ $where[] = ["mainId", "=", $id];
|
|
|
+ $where[] = ["api", "=", "businessDomain"];
|
|
|
+ $where[] = ["active", "=", 1];
|
|
|
+ $_uploadFile = TalentCommonFile::alias("tcf")->leftJoin("new_currency_filetype ft", "ft.id=tcf.typeId")->where($where)->order("createTime desc")->find();
|
|
|
+ if ($_uploadFile) {
|
|
|
+ $ecr["newDomainImg"] = $_uploadFile["url"];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($ecr["newDomainImg"]) {
|
|
|
+ $pathinfo = pathinfo($ecr["newDomainImg"]);
|
|
|
+ if (in_array($pathinfo["extension"], ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["newDomainImg_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //开户许可证
|
|
|
+ if (!$ecr["oldBankImg"]) {
|
|
|
+ $ecr["oldBankImg"] = $ep["bankImg"];
|
|
|
+ }
|
|
|
+ if ($ecr["oldBankImg"]) {
|
|
|
+ $pathinfo = pathinfo($ecr["oldBankImg"]);
|
|
|
+ if (in_array($pathinfo["extension"], ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["oldBankImg_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!$ecr["newBankImg"]) {
|
|
|
+ //兼容旧filetype
|
|
|
+ if (strtotime($ecr["createTime"]) < strtotime($time)) {
|
|
|
+ $where = [];
|
|
|
+ $where[] = ["mainId", "=", $id];
|
|
|
+ $where[] = ["api", "=", "businessBank"];
|
|
|
+ $where[] = ["active", "=", 1];
|
|
|
+ $_uploadFile = TalentCommonFile::alias("tcf")->leftJoin("new_currency_filetype ft", "ft.id=tcf.typeId")->where($where)->order("createTime desc")->find();
|
|
|
+ if ($_uploadFile) {
|
|
|
+ $ecr["newBankImg"] = $_uploadFile["url"];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($ecr["newBankImg"]) {
|
|
|
+ $pathinfo = pathinfo($ecr["newBankImg"]);
|
|
|
+ if (in_array($pathinfo["extension"], ["jpeg", "jpg", "png", "gif"])) {
|
|
|
+ $ecr["newBankImg_is_img"] = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
switch ($ep->special) {
|
|
|
case 0:
|
|
|
$tagList = DictApi::selectByParentCode('enterprise_tag');
|
|
@@ -530,13 +705,10 @@ class Api extends EnterpriseController {
|
|
|
$ecr['newEnterpriseTypeName'] = $typeList[$ecr['newEnterpriseType']];
|
|
|
$ecr['oldIndustryFieldNewName'] = $industryFieldNew[$ecr['oldIndustryFieldNew']];
|
|
|
$ecr['newIndustryFieldNewName'] = $industryFieldNew[$ecr['newIndustryFieldNew']];
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
return view("", ['ecr' => $ecr]);
|
|
|
break;
|
|
|
case 1:
|
|
|
- return view("to_detail1", ['ecr' => $ecr]);
|
|
|
+ return view("", ['ecr' => $ecr]);
|
|
|
break;
|
|
|
default:
|
|
|
|