Explorar el Código

更正条件判断

locky hace 4 años
padre
commit
bdea34ad09
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Controller/IotCoreController.py

+ 1 - 1
Controller/IotCoreController.py

@@ -41,7 +41,7 @@ class IotCoreView(View):
 
         if operation == 'createKeysAndCertificate':
             return self.create_keys_and_certificate(request_dict, response, request)
-        if operation == 'requestPublishMessage':
+        elif operation == 'requestPublishMessage':
             return self.request_publish_message(request_dict, response, request)
         elif operation == 'thingRegroup':
             return self.thing_regroup(request_dict, response, request)