|
@@ -348,7 +348,8 @@ class Auth extends BaseController {
|
|
return \StrUtil::back($response_object, "Register.epCallBack");
|
|
return \StrUtil::back($response_object, "Register.epCallBack");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- return view("", ["msg" => $msg]);
|
|
+ $medicalCommunities = Db::table("nhc_medical_community")->where("status", 1)->order("num asc,createTime asc")->select()->toArray();
|
|
|
|
+ return view("", ["msg" => $msg, "medicalCommunities" => $medicalCommunities]);
|
|
}
|
|
}
|
|
|
|
|
|
public function enterprise_edit() {
|
|
public function enterprise_edit() {
|
|
@@ -452,7 +453,7 @@ class Auth extends BaseController {
|
|
$data['id'] = $ep->id;
|
|
$data['id'] = $ep->id;
|
|
if ($ep->special == 0) {
|
|
if ($ep->special == 0) {
|
|
$idCardName = "营业执照";
|
|
$idCardName = "营业执照";
|
|
- if ($data["type"] == 1) {
|
|
+ if ($data["type"] == CommonConst::ENTERPRISE_NORMAL) {
|
|
if ($data["agencyType"] == 1) {
|
|
if ($data["agencyType"] == 1) {
|
|
validate(\app\common\validate\Enterprise::class)->batch(true)->scene('change')->check($data);
|
|
validate(\app\common\validate\Enterprise::class)->batch(true)->scene('change')->check($data);
|
|
if (!$data["domainImg"] && !$ep->domainImg) {
|
|
if (!$data["domainImg"] && !$ep->domainImg) {
|
|
@@ -474,17 +475,19 @@ class Auth extends BaseController {
|
|
$response_object->msg = '开户许可证/基本存款账户信息不能为空';
|
|
$response_object->msg = '开户许可证/基本存款账户信息不能为空';
|
|
return \StrUtil::back($response_object, "Register.epCallBack");
|
|
return \StrUtil::back($response_object, "Register.epCallBack");
|
|
}
|
|
}
|
|
- } else if ($data["type"] == 2) {
|
|
+ } else if ($data["type"] == CommonConst::ENTERPRISE_JC) {
|
|
|
|
|
|
validate(\app\common\validate\Enterprise::class)->batch(true)->scene('jc_change')->check($data);
|
|
validate(\app\common\validate\Enterprise::class)->batch(true)->scene('jc_change')->check($data);
|
|
- } else if ($data["type"] == 3) {
|
|
+ } else if ($data["type"] == CommonConst::ENTERPRISE_WJ) {
|
|
|
|
|
|
validate(\app\common\validate\Hospital::class)->batch(true)->scene('change')->check($data);
|
|
validate(\app\common\validate\Hospital::class)->batch(true)->scene('change')->check($data);
|
|
$idCardName = "医疗机构执业许可证";
|
|
$idCardName = "医疗机构执业许可证";
|
|
- } else {
|
|
+ } else if ($data["type"] == CommonConst::ENTERPRISE_GJ) {
|
|
|
|
|
|
validate(\app\common\validate\School::class)->batch(true)->scene('change')->check($data);
|
|
validate(\app\common\validate\School::class)->batch(true)->scene('change')->check($data);
|
|
$idCardName = "办学许可证、法人证书或登记证书";
|
|
$idCardName = "办学许可证、法人证书或登记证书";
|
|
|
|
+ } else {
|
|
|
|
+ throw new ValidateException("未知注册类型");
|
|
}
|
|
}
|
|
if (!$data["imgurl"] && !$ep->imgurl) {
|
|
if (!$data["imgurl"] && !$ep->imgurl) {
|
|
$response_object->code = 500;
|
|
$response_object->code = 500;
|