This method specifies a rapid colloidal gold immunochromatographic detection method for morphine and codeine in food. This method is suitable for liquid foods formed by blending, preparing or adding seasonings, hot pot bases, spicy hotpot bases or other edible soups; Semi-solid foods formed by blending, blending or adding other seasonings, soy sauce; solid foods blended, blended or added with spices, compound seasonings, etc., edible vinegar (including seasonings based on vinegar) Rapid determination of morphine and codeine.