add:1.企业实名认证时即做人脸识别上传校验,返回人脸识别地址后发短信通知公司法人做人脸识别。

This commit is contained in:
chenbo 2023-09-07 16:42:35 +08:00
parent 1959359a45
commit 20abbed208

View File

@ -199,13 +199,15 @@ class CompanyController extends BaseAdminController
];
$res = app(JunziqianController::class)->EnterpriseCertification($data);
if ($res->success == true) {
Db::name('company')->where('id', $params['id'])->update(['master_email' => $res->data,'is_authentication'=>1]);
$email = substr(uniqid(),2,5).$res->data;
// 企业人脸上传
$company['master_email'] = $res->data; // 法人邮箱
$company['master_email'] = $email; // 法人邮箱
$faceCreateRe = CompanyLogic::originationFaceCreate($company);
if ($faceCreateRe !== true) {
return $this->fail($faceCreateRe);
}
// 修改法人邮箱和公司认证状态
Db::name('company')->where('id', $params['id'])->update(['master_email' => $email,'is_authentication'=>1]);
return $this->success('认证成功',[],1, 1);
// return $this->success('系统认证中,请稍后刷新页面查看', ['email' => $res->data], 1, 1);
} else {