def get_reseller_info():
reseller_id = request.headers.get('Aps-Instance-Id')
is_new = g.endpoint == ApplicationList.__name__.lower()
reseller_name = set_name_for_reseller(reseller_id)
oauth = get_oauth()
return ResellerInfo(id=reseller_id, name=reseller_name, is_new=is_new, auth=oauth)
评论列表
文章目录