瀏覽代碼

修改addOrUpdate11

tanghongbin 4 年之前
父節點
當前提交
aa960b1ce8
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      Controller/EquipmentManagerV3.py

+ 6 - 2
Controller/EquipmentManagerV3.py

@@ -57,16 +57,20 @@ class EquipmentManagerV3(View):
         View_Password = self.decode_pwd(View_Password)
         Type = request_dict.get('Type', None)
         ChannelIndex = request_dict.get('ChannelIndex', None)
+
+        file_path = '/'.join((BASE_DIR, 'static/test.log'))
+        file = open(file_path, 'a+')
+        file.write(UID)
+
         if all([UID, NickName, View_Account, Type, ChannelIndex]):
             tko = TokenObject(token)
+            file.write('in all------------------------------')
             response.lang = tko.lang
             if tko.code == 0:
                 userID = tko.userID
                 re_uid = re.compile(r'^[A-Za-z0-9]{20}$')
                 if re_uid.match(UID):
                     try:
-                        file_path = '/'.join((BASE_DIR, 'static/test.log'))
-                        file = open(file_path, 'a+')
                         file.write(UID)
                         file.write('------unEnter--')
                         file.write('\n')