|
@@ -213,6 +213,15 @@ class ModelService:
|
|
file.flush()
|
|
file.flush()
|
|
file.close()
|
|
file.close()
|
|
|
|
|
|
|
|
+ @staticmethod
|
|
|
|
+ def add_tmp_log(info):
|
|
|
|
+ file_path = '/'.join((BASE_DIR, 'static/tmp_test.log'))
|
|
|
|
+ file = open(file_path, 'a+')
|
|
|
|
+ file.write("info:" + str(info))
|
|
|
|
+ file.write('\n')
|
|
|
|
+ file.flush()
|
|
|
|
+ file.close()
|
|
|
|
+
|
|
|
|
|
|
def notify_alexa_delete(userID, UID):
|
|
def notify_alexa_delete(userID, UID):
|
|
url = 'https://www.zositech.xyz/deviceStatus/delete'
|
|
url = 'https://www.zositech.xyz/deviceStatus/delete'
|