|
@@ -83,6 +83,8 @@ import com.ym.mec.common.page.QueryInfo;
|
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
|
import com.ym.mec.common.tenant.TenantContextHolder;
|
|
|
import com.ym.mec.im.ImFeignService;
|
|
|
+import com.ym.mec.thirdparty.user.realname.RealnameAuthenticationPluginContext;
|
|
|
+import com.ym.mec.thirdparty.user.realname.provider.LinkfaceRealnameAuthenticationPlugin;
|
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
|
import com.ym.mec.util.date.DateUtil;
|
|
|
import com.ym.mec.util.idcard.IdcardValidator;
|
|
@@ -129,6 +131,9 @@ public class TeacherServiceImpl extends BaseServiceImpl<Integer, Teacher> imple
|
|
|
@Autowired
|
|
|
private TenantInfoService tenantInfoService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private RealnameAuthenticationPluginContext realnameAuthenticationPluginContext;
|
|
|
+
|
|
|
@Override
|
|
|
public BaseDAO<Integer, Teacher> getDAO() {
|
|
|
return teacherDao;
|
|
@@ -721,6 +726,8 @@ public class TeacherServiceImpl extends BaseServiceImpl<Integer, Teacher> imple
|
|
|
throw new BizException("身份证校验失败");
|
|
|
}
|
|
|
|
|
|
+ realnameAuthenticationPluginContext.getRealnameAuthenticationPlugin(LinkfaceRealnameAuthenticationPlugin.getName()).verify(realName, idcardNo);
|
|
|
+
|
|
|
Date date = new Date();
|
|
|
|
|
|
teacher.setIdcardBackImg(idcardBackImg);
|