def __init__(self, name = '微信管理'): adminAction.__init__(self, name) aboutObj = about().getOne('wxtoken,wxappid,wxsecret', {}) self.appid = aboutObj['wxappid'] self.secret = aboutObj['wxsecret'] self.url_access_token = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s" % (self.appid, self.secret)
def __init__(self, name = ''): wxAction.__init__(self, name) aboutObj = about().getOne('wxtoken', {}) self.token = aboutObj['wxtoken']