getMessage()); return false; } } /** * @notes 编辑意见反馈记录 * @param array $params * @return bool * @author BD * @date 2024/06/06 01:11 */ public static function edit(array $params): bool { Db::startTrans(); try { FeedbackRecord::where('id', $params['id'])->update([ ]); Db::commit(); return true; } catch (\Exception $e) { Db::rollback(); self::setError($e->getMessage()); return false; } } /** * @notes 删除意见反馈记录 * @param array $params * @return bool * @author BD * @date 2024/06/06 01:11 */ public static function delete(array $params): bool { return FeedbackRecord::destroy($params['id']); } /** * @notes 获取意见反馈记录详情 * @param $params * @return array * @author BD * @date 2024/06/06 01:11 */ public static function detail($params): array { return FeedbackRecord::findOrEmpty($params['id'])->toArray(); } }