|
@@ -798,7 +798,14 @@ async def update_bz_visible(
|
|
|
query = query.filter(TpPatternWSList.id==zb)
|
|
|
info = query.first()
|
|
|
info.visible=body['visible']
|
|
|
+
|
|
|
db.commit()
|
|
|
+ if zb_id_list:
|
|
|
+ try :
|
|
|
+ pattern_id = info.pattern_id
|
|
|
+ await manager.broadcast(pattern_id, db, WebSocket)
|
|
|
+ except:
|
|
|
+ pass
|
|
|
return {"code": 200, "msg": "查询成功", "data": None
|
|
|
}
|
|
|
except Exception as e:
|