(cls, app, menuid=None)
return rv
发布菜单
        :type app: wechat_django.models.WeChatApp
发布菜单
        :type app: wechat_django.models.WeChatApp
发布菜单 : type app : wechat_django . models . WeChatApp
def publish(cls, app, menuid=None):
        """
        发布菜单
        :type app: wechat_django.models.WeChatApp
        """
        data = cls.menus2json(app, menuid)
        rv = app.client.menu.create(data)
        app.ext_info["current_menus"] = data
        app.save()
        return rv
def publish ( cls , app , menuid = None ) : data = cls . menus2json ( app , menuid ) rv = app . client . menu . create ( data ) app . ext_info [ "current_menus" ] = data app . save ( ) return rv