add:1.企业实名认证时即做人脸识别上传校验,返回人脸识别地址后发短信通知公司法人做人脸识别。
This commit is contained in:
parent
1959359a45
commit
20abbed208
@ -199,13 +199,15 @@ class CompanyController extends BaseAdminController
|
|||||||
];
|
];
|
||||||
$res = app(JunziqianController::class)->EnterpriseCertification($data);
|
$res = app(JunziqianController::class)->EnterpriseCertification($data);
|
||||||
if ($res->success == true) {
|
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);
|
$faceCreateRe = CompanyLogic::originationFaceCreate($company);
|
||||||
if ($faceCreateRe !== true) {
|
if ($faceCreateRe !== true) {
|
||||||
return $this->fail($faceCreateRe);
|
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('认证成功',[],1, 1);
|
||||||
// return $this->success('系统认证中,请稍后刷新页面查看', ['email' => $res->data], 1, 1);
|
// return $this->success('系统认证中,请稍后刷新页面查看', ['email' => $res->data], 1, 1);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user