# coding: utf-8
from flask import request

def is_wechat():
    ua = request.headers['User-Agent'].lower()
    return 'micromessenger' in ua


def get_useragent():
    """ 获取request的useragent """
    return request.headers.get('User-Agent')


210299aaa4e9c6b699a0f70ef8ae02800b7cb8d3
<mask token>

<mask token>


def is_wechat():
    ua = request.headers['User-Agent'].lower()
    return 'micromessenger' in ua


<mask token>

<mask token>


def is_wechat():
    ua = request.headers['User-Agent'].lower()
    return 'micromessenger' in ua


def get_useragent():
    """ 获取request的useragent """
    return request.headers.get('User-Agent')

from flask import request


def is_wechat():
    ua = request.headers['User-Agent'].lower()
    return 'micromessenger' in ua


def get_useragent():
    """ 获取request的useragent """
    return request.headers.get('User-Agent')

# coding: utf-8
from flask import request

def is_wechat():
    ua = request.headers['User-Agent'].lower()
    return 'micromessenger' in ua


def get_useragent():
    """ 获取request的useragent """
    return request.headers.get('User-Agent')

