(self, request, *args, **kwargs)
return response
未授权的响应
未授权的响应
未授权的响应
def unauthorization_response(self, request, *args, **kwargs):
        """未授权的响应"""
        response = self.response
        if response and callable(response):
            response = response(request, *args, **kwargs)
        elif not response:
            oauth_uri = request.wechat.oauth_uri
            response = redirect(oauth_uri, permanent=False)
        return response
def unauthorization_response ( self , request , * args , * * kwargs ) : response = self . response if response and callable ( response ) : response = response ( request , * args , * * kwargs ) elif not response : oauth_uri = request . wechat . oauth_uri response = redirect ( oauth_uri , permanent = False ) return response