|
@@ -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')
|