新增检测身份证号是否已被实名认证

This commit is contained in:
2023-03-17 13:34:22 +08:00
parent 7d57d2f94a
commit c3d68e6aca
3 changed files with 18 additions and 2 deletions
+10
View File
@@ -77,4 +77,14 @@ class UserDoctorInfo extends Model
{
return self::where($params)->update($data);
}
/**
* 获取是否存在
* @param array $params
* @return bool
*/
public static function getExists(array $params): bool
{
return self::where($params)->exists();
}
}