删除判断
This commit is contained in:
parent
8b4c7cc17a
commit
1668c5382c
@ -650,11 +650,7 @@ class DoctorAuthService extends BaseService
|
||||
// 删除认证失败字段
|
||||
$params = array();
|
||||
$params['doctor_id'] = $user_info['client_user_id'];
|
||||
$res = DoctorIdenFail::del($params);
|
||||
if (!$res){
|
||||
Db::rollBack();
|
||||
return fail(HttpEnumCode::SERVER_ERROR);
|
||||
}
|
||||
DoctorIdenFail::del($params);
|
||||
}
|
||||
|
||||
Db::commit();
|
||||
@ -1153,20 +1149,12 @@ class DoctorAuthService extends BaseService
|
||||
// 删除认证失败字段
|
||||
$params = array();
|
||||
$params['doctor_id'] = $user_info['client_user_id'];
|
||||
$res = DoctorIdenFail::del($params);
|
||||
if (!$res){
|
||||
Db::rollBack();
|
||||
return fail(HttpEnumCode::SERVER_ERROR);
|
||||
}
|
||||
DoctorIdenFail::del($params);
|
||||
|
||||
// 删除简介修改记录表
|
||||
$params = array();
|
||||
$params['doctor_id'] = $user_info['client_user_id'];
|
||||
$res = DoctorIntroductionRecord::del($params);
|
||||
if (!$res){
|
||||
Db::rollBack();
|
||||
return fail(HttpEnumCode::SERVER_ERROR);
|
||||
}
|
||||
DoctorIntroductionRecord::del($params);
|
||||
}
|
||||
|
||||
// 新增医生简介修改记录表
|
||||
@ -1190,8 +1178,6 @@ class DoctorAuthService extends BaseService
|
||||
return fail(HttpEnumCode::SERVER_ERROR);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Db::commit();
|
||||
} catch (\Exception $e) {
|
||||
Db::rollBack();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user