$params['id']]); return true; } catch (\Exception $e) { self::setError($e->getMessage()); return false; } } /** * 详情 * @param string $id * @return bool * @author L * @data 2024/6/29 10:30 */ public static function detail(string $id): bool { try { $result = InterviewJob::where('id', $id)->findOrEmpty()->toArray(); if (empty($result)) { throw new \Exception('岗位不存在'); } $result['attention'] = json_decode($result['attention']); self::$returnData = $result; return true; } catch (\Exception $exception) { self::setError($exception->getMessage()); return false; } } public static function delete($params) { InterviewJob::destroy($params['id']); } }