def all_profile(): ''' 获取用户信息 :return: ''' is_basic = str_to_num(request.argget.all('is_basic', 1)) data = {} s, r = get_user_all_info(user_id=current_user.str_id, is_basic=is_basic) if not s: data = {'msg': r, 'msg_type': "w", "http_status": 400} else: data["user"] = r return data
def all_profile(): """ 获取用户信息 :return: """ is_basic = str_to_num(request.argget.all('is_basic', 1)) data = {} s, r = get_user_all_info(user_id=current_user.str_id, is_basic=is_basic, current_user_isauth=current_user.is_authenticated) if not s: data = {'msg': r, 'msg_type': "w", "custom_status": 400} else: data["user"] = r return data