整理线上配置

main
RogerWork 9 months ago
parent aa9df02521
commit e097656611
  1. 1
      update/consumers.py

@ -23,6 +23,7 @@ class UpdateConsumer(WebsocketConsumer):
print(cinema_update_status.get(ip, None))
if data.get('ip', False):
ip = data['ip']
print('ws发送消息前', cinema_update_status)
self.send(json.dumps({'status': {'ip': ip, 'result': cinema_update_status.get(ip, None)}}))
else:
self.send(text_data)

Loading…
Cancel
Save