删除不要文件

This commit is contained in:
杨志
2026-01-06 13:58:03 +08:00
parent cb7ad9a4b7
commit 0f1bf1ca02
13 changed files with 8 additions and 868 deletions

View File

@@ -111,6 +111,11 @@ class MatchService
return [];
}
// 转换为数组(如果返回的是对象)
if (is_object($user)) {
$user = $user->toArray();
}
// 构建简历数据结构
$resume = [
'user_id' => $userId,
@@ -160,7 +165,7 @@ class MatchService
private function filterPositionsFromDb(array $resume): array
{
$query = Db::name('no_notice_position')
->where('deleted_at', null); // 排除已删除的岗位
->whereNull('deleted_at'); // 排除已删除的岗位
// 计算年龄
$age = 0;