在做重定向时url没有改变。响应结果200
原
http://192.168.1.160:5000/stb/bind/02:8B:02:C1:B4:DA/?page=1
重定向后
http://192.168.1.160:5000/stb/bind/02:8B:02:C1:B4:DA/?page=1
def post(self, mac):
checked_user = request.form.get('data_sn', '')
if checked_user:
add = Stb.query.filter(Stb.mac == mac).first()
add.bind_user = checked_user
db.session.commit()
return redirect(url_for('epg.list', _external=True))
heesoon
11 years, 6 months ago