فهرست منبع

设备获取证书BUG 修改3

chenshibin 4 سال پیش
والد
کامیت
54b0da2eb0
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      Controller/IotCoreController.py

+ 7 - 0
Controller/IotCoreController.py

@@ -87,6 +87,13 @@ class IotCoreView(View):
                                                   thing_name=res[1]['ThingName'],
                                                   token_iot_number=token_iot_number
                                                   )
+                res = {
+                    'certificateId': res[0]['certificateId'],
+                    'certificatePem': res[0]['certificatePem'],
+                    'publicKey': res[0]['publicKey'],
+                    'privateKey': res[0]['privateKey'],
+                    'endpoint': res[0]['endpoint']
+                }
                 return response.json(0, {'res': res})
             else: