|
@@ -203,6 +203,16 @@ class ModelService:
|
|
|
file.flush()
|
|
|
file.close()
|
|
|
|
|
|
+ @staticmethod
|
|
|
+ def app_log_log(userID, UID):
|
|
|
+ file_path = '/'.join((BASE_DIR, 'static/app_log.log'))
|
|
|
+ file = open(file_path, 'a+')
|
|
|
+ file.write("username:" + userID + "; time:" + time.strftime(
|
|
|
+ "%Y-%m-%d %H:%M:%S", time.localtime()) + "; " + "; uid:" + UID)
|
|
|
+ file.write('\n')
|
|
|
+ file.flush()
|
|
|
+ file.close()
|
|
|
+
|
|
|
|
|
|
def notify_alexa_delete(userID, UID):
|
|
|
url = 'https://www.zositech.xyz/deviceStatus/delete'
|