def daily_sign():
    """每日签到"""
    data = sign.daily_sign(openid)
    if data:
        return wechat.response_news(data)
    else:
        content = app.config['NOT_SIGN_TIME_TEXT']
        return wechat.response_text(content)
Ejemplo n.º 2
0
def daily_sign():
    """每日签到"""
    data = sign.daily_sign(openid)
    if data:
        return wechat.response_news(data)
    else:
        content = app.config['NOT_SIGN_TIME_TEXT']
        return wechat.response_text(content)
def bus_routes():
    """公交信息"""
    return wechat.response_news(app.config['BUS_ROUTES_NEWS'])
def academic_calendar():
    """校历"""
    return wechat.response_news(app.config['ACADEMIC_CALENDAR_NEWS'])
Ejemplo n.º 5
0
def bus_routes():
    """公交信息"""
    return wechat.response_news(app.config['BUS_ROUTES_NEWS'])
Ejemplo n.º 6
0
def academic_calendar():
    """校历"""
    return wechat.response_news(app.config['ACADEMIC_CALENDAR_NEWS'])