BeforeRender方法 Action事件 Init方法Before方法 如果返回值为error,则检查error是否为nil,如果不为nil,则输出错误信息如果返回值为string,则将string写到body