Explorar o código

alexa更新【删除状态】接口

tanghongbin %!s(int64=4) %!d(string=hai) anos
pai
achega
166a394f62
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      Service/ModelService.py

+ 3 - 2
Service/ModelService.py

@@ -140,7 +140,7 @@ class ModelService:
 
     @staticmethod
     def del_eq_info(userID, uid):
-        notify_alexa_delete(uid)
+        notify_alexa_delete(userID, uid)
         ei_qs = Equipment_Info.objects.filter(userID_id=userID, devUid=uid)
         ei_qs.delete()
         # ei_count = ei_qs.count()
@@ -169,9 +169,10 @@ class ModelService:
             print(repr(e))
 
 
-def notify_alexa_delete(UID):
+def notify_alexa_delete(userID, UID):
     url = 'https://www.zositech.xyz/deviceStatus/delete'
     data = {
+        'userID': userID,
         'UID': UID
     }
     try: