58b3b324 by 冯轩

Merge branch 'feature/CHINARPA-5092'

2 parents 4e23f1f3 52864fbd
......@@ -10,7 +10,7 @@ def aes_decrypt_cbc(data, key, iv):
try:
cipher = AES.new(key.encode(), AES.MODE_CBC, iv.encode())
res = cipher.decrypt(b64decode(data))
res = res.decode('utf-8').replace('\x0e', '').replace('\u007', '')
res = res.decode('utf-8').replace(r'\x0e', '').replace(r'\u007', '')
except Exception as e:
res = ''
return res
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!