示例#1
0
def play():
    global AMB_ID
    if request.method == 'POST':
        try:
            AMB_ID = request.form['id']
            AMBC.switch(AMB_ID)
            AMBC.get().start()
        except Exception as e:
            AMB_ID = -1
            LOGGER.logError(e)
    return redirect(url_for('.index'))