Greenhouses are not only suitable for the growth and development of vegetables and fruits, but also the main "place" for breeding pests. The temperature and humidity in greenhouses are much higher than the outside world, and the space is also more closed and obstructed, which is easy to breed some common small pests, such as whitefly, aphids, leaf miners, etc. The generation and probability of diseases and insect pests are also relatively increased, causing a great threat to crops. Fruit flies in fruit and vegetable greenhouses have serious frequent generation alternations, and it is difficult to control them. For some vegetables, such as tomatoes, cucumbers, peppers, bitter gourds, etc., and some fruits, such as grapes, kiwi, strawberries, blueberries, etc., fruit fly is the main pest that reduces the quality and yield.