delete(); } public static function getWeChatMaterials($batch_id) { return self::where('batch_id', $batch_id)->orderBy('sort_no', 'asc')->get(); } public static function getWeChatMaterial($materialId) { $result = self::where('id', $materialId)->first(); return $result ? $result->toArray() : []; } }