|
@@ -391,11 +391,38 @@ class Api extends EnterpriseController {
|
|
|
$record->newBank = $data['bank'];
|
|
|
$record->newBankNetwork = $data['bankNetwork'];
|
|
|
} else {
|
|
|
- $fields = array_filter(explode(",", $record->modify_fields));
|
|
|
- for ($i = 0; $i < count($fields); $i++) {
|
|
|
- $key = lcfirst(substr($fields[$i], 3));
|
|
|
- $record[$fields[$i]] = $data[$key]; //仅可修改选择的字段
|
|
|
+ /* 注释变更驳回如果恢复,这段要去掉 */
|
|
|
+ $record->newAgencyType = $data['agencyType'];
|
|
|
+ $record->newName = htmlspecialchars($data['name']);
|
|
|
+ $record->newIdCard = htmlspecialchars($data['idCard']);
|
|
|
+ if ($data["agencyType"] == 1) {
|
|
|
+ $record->newIndustryFieldNew = $data['industryFieldNew'];
|
|
|
+ $record->newIndustryFieldOld = $data['industryFieldOld'];
|
|
|
+ } else {
|
|
|
+ $record->newIndustryFieldNew = null;
|
|
|
+ $record->newIndustryFieldOld = null;
|
|
|
}
|
|
|
+ $record->newStreet = $data['street'];
|
|
|
+ $record->newAddress = $data['address'];
|
|
|
+ $record->newLegal = $data['legal'];
|
|
|
+ $record->newEphone = $data['ephone'];
|
|
|
+ $record->newAgentName = $data['agentName'];
|
|
|
+ $record->newAgentEmail = $data['agentEmail'];
|
|
|
+ $record->newAgentPhone = $data['agentPhone'];
|
|
|
+ $record->newEnterpriseTag = $data['enterpriseTag'];
|
|
|
+ $record->newOrganizationTag = $data['organizationTag'];
|
|
|
+ $record->newInstitutionTag = $data['institutionTag'];
|
|
|
+ $record->newEnterpriseType = $data['enterpriseType'];
|
|
|
+ $record->newBankCard = $data['bankCard'];
|
|
|
+ $record->newBank = $data['bank'];
|
|
|
+ $record->newBankNetwork = $data['bankNetwork'];
|
|
|
+ /* 注释变更驳回如果恢复,这段要去掉 */
|
|
|
+
|
|
|
+ /* 注释变更驳回$fields = array_filter(explode(",", $record->modify_fields));
|
|
|
+ for ($i = 0; $i < count($fields); $i++) {
|
|
|
+ $key = lcfirst(substr($fields[$i], 3));
|
|
|
+ $record[$fields[$i]] = $data[$key]; //仅可修改选择的字段
|
|
|
+ } */
|
|
|
}
|
|
|
if (!$record["newImgurl"]) {
|
|
|
if (strtotime($record["createTime"]) < strtotime($this->compatible_time)) {
|
|
@@ -456,7 +483,8 @@ class Api extends EnterpriseController {
|
|
|
$files = $this->request->file();
|
|
|
if ($files) {
|
|
|
$uploadapi = new UploadApi();
|
|
|
- $modify_files = array_filter(explode(",", $record->modify_files));
|
|
|
+ //注释变更驳回$modify_files = array_filter(explode(",", $record->modify_files));
|
|
|
+ $modify_files = ["newImgurl", "newBankImg", "newDomainImg", "newTypeImg", "newBeian"];
|
|
|
if (strtotime($record->createTime) < strtotime($this->compatible_time)) {
|
|
|
//旧typeid需要转换成新的禁用文件格式
|
|
|
$oldtypes = ["1161965644164075522" => "newImgurl", "1518753449987148467" => "newImgurl", "1518328155588131269" => "newBankImg", "1518926324960220206" => "newBankImg",
|