add:1.企业实名认证时即做人脸识别上传校验,返回人脸识别地址后发短信通知公司法人做人脸识别。
This commit is contained in:
parent
681087341d
commit
b31b69a4d0
@ -200,6 +200,12 @@ 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]);
|
Db::name('company')->where('id', $params['id'])->update(['master_email' => $res->data,'is_authentication'=>1]);
|
||||||
|
// 企业人脸上传
|
||||||
|
$company['master_email'] = $res->data; // 法人邮箱
|
||||||
|
$faceCreateRe = CompanyLogic::originationFaceCreate($company);
|
||||||
|
if ($faceCreateRe !== true) {
|
||||||
|
return $this->fail($faceCreateRe);
|
||||||
|
}
|
||||||
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 {
|
||||||
|
@ -133,7 +133,7 @@ class CompanyLogic extends BaseLogic
|
|||||||
TaskScheduling::create($scheduling);
|
TaskScheduling::create($scheduling);
|
||||||
|
|
||||||
// 企业人脸校验上传
|
// 企业人脸校验上传
|
||||||
self::originationFaceCreate($data);
|
// self::originationFaceCreate($data);
|
||||||
Db::commit();
|
Db::commit();
|
||||||
return true;
|
return true;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
@ -155,18 +155,11 @@ class CompanyLogic extends BaseLogic
|
|||||||
'master_phone' => $data['master_phone'],
|
'master_phone' => $data['master_phone'],
|
||||||
'id' => $data['id'],
|
'id' => $data['id'],
|
||||||
];
|
];
|
||||||
$sms = [
|
|
||||||
'mobile' => $data['master_phone'],
|
|
||||||
'name' => $data['master_name'],
|
|
||||||
'code' => 'api/Hetong/toFaceCreate?id=' . $data['id'],
|
|
||||||
'scene' => 'FACE_CREATE',
|
|
||||||
'type' => ''
|
|
||||||
];
|
|
||||||
$smsRes = SmsLogic::contractUrl($sms);
|
|
||||||
// 公司数据合法性校验
|
// 公司数据合法性校验
|
||||||
$checkCompany = self::companyCheck($organizationFaceCreateData);
|
$checkCompany = self::companyCheck($organizationFaceCreateData);
|
||||||
if ($checkCompany !== true){
|
if ($checkCompany !== true){
|
||||||
throw new Exception($checkCompany);
|
return $checkCompany;
|
||||||
}
|
}
|
||||||
|
|
||||||
$res = app(JunziqianController::class)->organizationFaceCreate($data);
|
$res = app(JunziqianController::class)->organizationFaceCreate($data);
|
||||||
@ -183,11 +176,12 @@ class CompanyLogic extends BaseLogic
|
|||||||
];
|
];
|
||||||
$smsRes = SmsLogic::contractUrl($sms);
|
$smsRes = SmsLogic::contractUrl($sms);
|
||||||
if ($smsRes != true) {
|
if ($smsRes != true) {
|
||||||
throw new Exception(SmsLogic::getError());
|
return SmsLogic::getError();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Exception($res->msg);
|
return $res->msg;
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
private static function companyCheck($company) {
|
private static function companyCheck($company) {
|
||||||
if (empty($company)) {
|
if (empty($company)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user