(
        self, openid, data, url=None, appid=None, pagepath=None)
return self.app.client.message.send_template(
            openid, self.template_id, data, url=url, mini_program=miniprogram)
发送服务号模板消息
发送服务号模板消息
发送服务号模板消息
def _send_service(
        self, openid, data, url=None, appid=None, pagepath=None):
        """发送服务号模板消息"""
        miniprogram = dict(
            appid=appid,
            pagepath=pagepath
        ) if appid else None
        return self.app.client.message.send_template(
            openid, self.template_id, data, url=url, mini_program=miniprogram)
def _send_service ( self , openid , data , url = None , appid = None , pagepath = None ) : miniprogram = dict ( appid = appid , pagepath = pagepath ) if appid else None return self . app . client . message . send_template ( openid , self . template_id , data , url = url , mini_program = miniprogram )