Эх сурвалжийг харах

alexa更新【删除状态】接口

tanghongbin 4 жил өмнө
parent
commit
166a394f62

+ 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: