|
@@ -134,10 +134,45 @@ class Auth extends BaseController
|
|
|
if(empty($temp)){
|
|
|
return redirect("/");
|
|
|
}
|
|
|
+ $ep = EnterpriseApi::getOne(session('temp')['uid']);
|
|
|
if($this->request->isPost()){
|
|
|
+ $response_object = new \StdClass();
|
|
|
+ $data = [
|
|
|
+ 'name' => \StrUtil::getRequestDecodeParam($this->request,'name'),//单位名称
|
|
|
+ 'idCard' => \StrUtil::getRequestDecodeParam($this->request,'idCard'),//统一社会信用代码
|
|
|
+ 'agentName' => \StrUtil::getRequestDecodeParam($this->request,'agentName'),//人才联络员
|
|
|
+ 'legal' => \StrUtil::getRequestDecodeParam($this->request,'legal'),//法人
|
|
|
+ 'street' => \StrUtil::getRequestDecodeParam($this->request,'street'),//镇街
|
|
|
+ 'address' => \StrUtil::getRequestDecodeParam($this->request,'address'),//地址
|
|
|
+ 'type' => intval($this->request['type']),
|
|
|
+ 'enterpriseTag' => \StrUtil::getRequestDecodeParam($this->request,'enterpriseTag'),//单位标签
|
|
|
+ 'enterpriseType' => \StrUtil::getRequestDecodeParam($this->request,'enterpriseType'),//单位类型
|
|
|
+ 'agentEmail' => \StrUtil::getRequestDecodeParam($this->request,'agentEmail'),//邮箱
|
|
|
+ 'ephone' => \StrUtil::getRequestDecodeParam($this->request,'ephone'),//单位电话
|
|
|
+ 'industryFieldNew' => \StrUtil::getRequestDecodeParam($this->request,'industryFieldNew'),//产业领域
|
|
|
+ 'industryFieldOld' => \StrUtil::getRequestDecodeParam($this->request,'industryFieldOld'),//行业领域
|
|
|
+ 'bankCard' => \StrUtil::getRequestDecodeParam($this->request,'bankCard'),//银行
|
|
|
+ 'bank' => \StrUtil::getRequestDecodeParam($this->request,'bank'),//开户行
|
|
|
+ 'bankNetwork' => \StrUtil::getRequestDecodeParam($this->request,'bankNetwork')//网点
|
|
|
+ ];
|
|
|
+ try {
|
|
|
+ $data['id'] = $ep->id;
|
|
|
+ validate(\app\common\validate\Enterprise::class)->batch(true)->scene('check_common')->check($data);
|
|
|
+ $data['checkState'] = 1;
|
|
|
+ $ep->update($data);
|
|
|
|
|
|
+ $response_object->code = 200;
|
|
|
+ $response_object->msg = '修改成功';
|
|
|
+ return \StrUtil::back($response_object,"Register.epCallBack");
|
|
|
+
|
|
|
+ }catch (ValidateException $e){
|
|
|
+ $error = $e->getError();
|
|
|
+ $response_object->code = 500;
|
|
|
+ $response_object->msg = array_pop($error);
|
|
|
+ return \StrUtil::back($response_object,"Register.epCallBack");
|
|
|
+ }
|
|
|
}
|
|
|
- $ep = EnterpriseApi::getOne(session('temp')['uid']);
|
|
|
+
|
|
|
$msg = session('temp')['msg'];
|
|
|
return view("",['msg' => $msg, 'ep' => $ep]);
|
|
|
}
|