Selaa lähdekoodia

filter Pj1101080259 in room/control

chenhaiyang 4 vuotta sitten
vanhempi
commit
1ec7dd217e
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      app/api/routers/space.py

+ 5 - 1
app/api/routers/space.py

@@ -22,10 +22,14 @@ async def get_space_command(
         timestamp: str = Query(None, min_length=14, max_length=14, alias='time'),
         method: int = Query(3),
 ):
+    if project_id == 'Pj1101080259':
+        flag = 0
+    else:
+        flag = 1
     response = {
         'projectId': project_id,
         'roomId': space_id,
-        'flag': 1,
+        'flag': flag,
         'time': timestamp,
         'method': method,
     }